Skip to content
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 Wings migration of based_near attribute in to_resource #6922

Merged
merged 8 commits into from
Oct 16, 2024

Conversation

laritakr
Copy link
Contributor

@laritakr laritakr commented Oct 11, 2024

Fixes

Re: based_near attribute:

  • Native Valkyrie objects contain a URI string, not an RDF::URI
  • Fedora contains Hyrax::ControlledVocabularies::Location objects

When using wings to lazy migrate between resources & fedora works, we were previously storing the location as an RDF::URI in Valkyrie.

Summary

Updates the behavior of the based_near attribute in the to_resource method to return values consistent with native objects.

Guidance for testing, such as acceptance criteria or new user interface behaviors:

  • When using lazy migration from a fedora work, the value of based_near in the subsequent valkyrie work should contain a URI string.

Type of change (for release notes)

bug fix

Detailed Description

This PR modifies the behavior of the based_near attribute in the to_resource method. We now return values consistent with what would be seen in native objects.

Changes proposed in this pull request:

  • when calling to_resource on a fedora object object, the based_near attribute will be a URI string.

@samvera/hyrax-code-reviewers

Notes

Related bug ticket #6926 for going the other direction.

- Native Valkyrie objects contain a URI string, not an RDF::URI
- Fedora contains Hyrax::ControlledVocabularies::Location objects

Modifies the behavior of the `based_near` attribute in the `to_resource`
and `from_resource` methods. When using wings to convert between
resources & fedora works, we were previously storing the RDF::URI in
Valkyrie. This PR updates the behavior to consistently return values
consistent with what would be seen in native objects.
@laritakr laritakr added the notes-bugfix Release Notes: Fixed a bug label Oct 11, 2024
Copy link

github-actions bot commented Oct 11, 2024

Test Results

    17 files      17 suites   2h 18m 43s ⏱️
 6 714 tests  6 417 ✅ 297 💤 0 ❌
13 198 runs  12 802 ✅ 396 💤 0 ❌

Results for commit 3d679fd.

♻️ This comment has been updated with latest results.

laritakr and others added 4 commits October 11, 2024 18:47
This may still be needed, but this doesn't work correctly.
A ticket has been created for this bug if this is something that is
ever needed.

#6926
@laritakr laritakr changed the title Fixes Wings migration of based_near attribute in to_resource & from_resource Fixes Wings migration of based_near attribute in to_resource Oct 16, 2024
@laritakr laritakr marked this pull request as ready for review October 16, 2024 18:39
@orangewolf orangewolf merged commit ce352d3 into main Oct 16, 2024
22 checks passed
@orangewolf orangewolf deleted the migrate_based_near branch October 16, 2024 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes-bugfix Release Notes: Fixed a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants