-
Notifications
You must be signed in to change notification settings - Fork 124
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
Remove reliance on noid for find #6924
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test Results 17 files ±0 17 suites ±0 2h 19m 42s ⏱️ +59s Results for commit 1c8b933. ± Comparison against base commit 13b6c9e. This pull request removes 267 and adds 267 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
Switches from using noids to using a fallback... look first by id, and then by alternate_identifier instead. I created a work in dassie with VALKYRIE_TRANSITION=true and then I was unable to edit the work because I don’t have an alternative identifier.
laritakr
force-pushed
the
can-can-does-not-rely-on-noids
branch
4 times, most recently
from
October 15, 2024 21:43
25113a7
to
a27e04c
Compare
laritakr
force-pushed
the
can-can-does-not-rely-on-noids
branch
from
October 15, 2024 21:44
a27e04c
to
5bee72d
Compare
orangewolf
approved these changes
Oct 16, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes
Switches valkyrie can-can adapter from using noids to using a fallback... look first by id, and then by alternate_identifier instead.
When creating a work in dassie with VALKYRIE_TRANSITION=true, I was unable to edit the work because it doesn’t have an alternative identifier.
Summary
Switches method of finding a by id in the can-can adapter.
Guidance for testing, such as acceptance criteria or new user interface behaviors:
use VALKYRIE_TRANSITION=true
create a new work (it will be in Valkyrie)
select edit
Work should be found and able to be edited.
Type of change (for release notes)
notes-bugfix
Bug FixesDetailed Description
While we might expect noids to be enabled when using
VALKYRIE_TRANSITION=true
, having it enabled means that we can't create native Valkyrie resources and then edit them. This change allows a simple fallback to find the work, where we first look by id, and then fallback to look by alternative identifier.Changes proposed in this pull request:
@samvera/hyrax-code-reviewers