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

🧹 Make the appropriate link generate #2159

Merged
merged 3 commits into from
Jan 31, 2024

Conversation

kirkkwang
Copy link
Collaborator

This commit will add a decorator to check the human_readable_type of the given object is a Valkyrie migration object (which by convention ends with 'resource') and adjust the generated link accordingly. For example, a GenericWorkResource should generate links like /concern/generic_work_resources/... instead of
/concern/generic_works/....

The models were updated to include the Hyrax::NestedWorks so the Attach Child button would populate the appropriate work types.

Lastly, the Gemfile.lock was updated to include the latest version of Hyrax double_combo branch.

This commit will add a decorator to check the `human_readable_type` of
the given object is a Valkyrie migration object (which by convention
ends with 'resource') and adjust the generated link accordingly.  For
example, a GenericWorkResource should generate links like
`/concern/generic_work_resources/...` instead of
`/concern/generic_works/...`.

The models were updated to include the Hyrax::NestedWorks so the `Attach
Child` button would populate the appropriate work types.

Lastly, the `Gemfile.lock` was updated to include the latest version of
Hyrax `double_combo` branch.
@kirkkwang kirkkwang force-pushed the i35-valkyrize-hyku-link-generation branch from bb2ad8a to 4322d9c Compare January 30, 2024 03:27
@kirkkwang kirkkwang added the patch-ver for release notes label Jan 30, 2024
Using 'human_readable_type' was going to be flemsy.  Instead we are
opting for adding the `valkyrie_bsi` to the index and asking that.
@kirkkwang kirkkwang requested a review from jeremyf January 30, 2024 19:01
@ShanaLMoore ShanaLMoore merged commit adb7393 into i35-valkyrize-hyku Jan 31, 2024
2 of 3 checks passed
@ShanaLMoore ShanaLMoore deleted the i35-valkyrize-hyku-link-generation branch January 31, 2024 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch-ver for release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants