-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes the Single Use Link delete button. #6990
base: main
Are you sure you want to change the base?
Conversation
Test Results 13 files ±0 13 suites ±0 2h 46m 7s ⏱️ - 5m 8s For more details on these failures, see this check. Results for commit e06b8da. ± Comparison against base commit 5b03f59. This pull request removes 366 and adds 366 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
I cannot replicate the problem on either dev or pg nurax. I'm seeing a DELETE request and 200 response in the browser's network log. |
9a023dc
to
e06b8da
Compare
Summary
Fixes the link by forcing the method to be
DELETE
(it was defaulting toGET
, causing a routing error), allowing it to perform without expecting a redirect (the#destroy
controller action has no directive for redirect, just ahead :ok
response), and aonclick
alert response because clickingDelete
produces no affirmation to the user.Guidance for testing, such as acceptance criteria or new user interface behaviors:
Type of change (for release notes)
notes-bugfix
Bug FixesChanges proposed in this pull request:
remote=true
to link.method="DELETE"
to link.@samvera/hyrax-code-reviewers