Repository navigation
🔥 Drop the Hyrax overrides Hyrax d5ee8e6 ships - #409
Conversation
There was a problem hiding this comment.
🔵 Needs a closer look
Upstream replacements could not be independently verified in this snapshot, and the concurrent-import staging check remains outstanding.
0 open findings
What changed in this PR
Removes local Hyrax workarounds now supplied by Hyrax d5ee8e6 through prerequisite PR #408, preserving behavior while reducing overrides.
Changes:
- Removes flexible-form isolation and batch-upload required-field overrides.
- Removes the file-set metadata schema lookup override.
- Deletes the two form decorator specs.
| File | Description |
|---|---|
| spec/forms/hyrax/forms/resource_form_decorator_spec.rb | Removes form-isolation decorator tests. |
| spec/forms/hyrax/forms/batch_upload_form_decorator_spec.rb | Removes batch required-field decorator tests. |
| app/helpers/hyrax/attributes_helper_decorator.rb | Delegates metadata schema resolution to upstream. |
| app/forms/hyrax/forms/resource_form_decorator.rb | Delegates per-build form isolation to upstream. |
| app/forms/hyrax/forms/batch_upload_form_decorator.rb | Delegates required-field lookup to upstream. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
c0e7941 to
cc020e1
Compare
07c5a09 to
3565ad5
Compare
|
Answering the review's note: "Upstream replacements could not be independently verified in this snapshot, and the concurrent-import staging check remains outstanding." Copilot can't see the
Evidence: the two deleted form specs passed with the knapsack overrides unapplied on d5ee8e6 before they were removed; the full suite passes on this branch; and a file set's show page renders all its filled profile fields (screenshot in the description, #207). The concurrent Bulkrax import (#311) needs GoodJob with more than one thread, so it stays on the staging checklist. |
cc020e1 to
8596fb0
Compare
3565ad5 to
12a1530
Compare
|
Amazing to see these removed! |
Hyrax d5ee8e6 (samvera/hyrax#7702) renamed with_locale to with_query_params and carries the whole query string across display URL redirects itself, so the override no longer runs. The redirect controller specs still pass against stock Hyrax and stay as regression checks. Assisted by: Opus 5.5
Hyrax d5ee8e6 includes samvera/hyrax#7680: each flexible form is built from its own subclass, and the batch upload form reads its required fields from a built form. These overrides did the same in the knapsack. Their specs passed with the overrides unapplied before they were removed. Ref: - #399 Assisted by: Opus 5.5
Hyrax d5ee8e6 includes samvera/hyrax#7677: with Wings off, a Solr document's hydra_model resolves through Valkyrie, so a file set's show page renders its profile fields without the knapsack resolving the model itself. Ref: - #399 - #207 Assisted by: Opus 5.5
12a1530 to
108fd00
Compare
Test Results 4 files ± 0 4 suites ±0 51s ⏱️ -2s Results for commit 108fd00. ± Comparison against base commit 7159730. This pull request removes 4738 tests. |
Story
Refs
🔥 Drop the redirect query-string override Hyrax now ships
2004c90
Hyrax d5ee8e6 (samvera/hyrax#7702) renamed with_locale to
with_query_params and carries the whole query string across display
URL redirects itself, so the override no longer runs.
The redirect controller specs still pass against stock Hyrax and stay as
regression checks.
Assisted by: Opus 5.5
🔥 Drop the flexible form race overrides Hyrax now ships
ea6ad20
Hyrax d5ee8e6 includes samvera/hyrax#7680: each flexible form is built
from its own subclass, and the batch upload form reads its required
fields from a built form. These overrides did the same in the
knapsack. Their specs passed with the overrides unapplied before they
were removed.
Ref:
Assisted by: Opus 5.5
🔥 Drop the hydra_model override Hyrax now ships
108fd00
Hyrax d5ee8e6 includes samvera/hyrax#7677: with Wings off, a Solr
document's hydra_model resolves through Valkyrie, so a file set's show
page renders its profile fields without the knapsack resolving the
model itself.
Ref:
Assisted by: Opus 5.5
Expected Behavior Before Changes
The knapsack carried its own copies of three Hyrax fixes: carrying the whole query string across display URL redirects, building each flexible form from a per-build subclass so concurrent Bulkrax imports don't strip each other's fields (#311), and resolving
hydra_modelthrough Valkyrie so a file set's show page renders its profile fields (#207).Expected Behavior After Changes
Same behavior, from Hyrax itself: samvera/hyrax#7702, #7680 and #7677 are in Hyrax d5ee8e6, which #408 brings in. The knapsack's copies are gone.
Screenshots / Video
A file set's show page still renders its filled profile fields (Title, File size, Type of file), not only Title (#207)
Notes
i407-bump-hyku-bulkrax-10); retarget tomainonce ⬆️ Bump Hyku to main and Bulkrax to 10 #408 merges.