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

🧹 Remove copied code #2072

Merged
merged 1 commit into from
Dec 19, 2023
Merged

🧹 Remove copied code #2072

merged 1 commit into from
Dec 19, 2023

Conversation

jeremyf
Copy link
Contributor

@jeremyf jeremyf commented Dec 19, 2023

The overrides are no longer necessary. In reviewing the diff between
what I'm removing and what is in the double_combo branch; the major
change was adding an operator for the reduce function. The breaking
problem was that the method signature of one of the copied methods has
changed in Hyrax 5.0.

@jeremyf jeremyf added the major-ver for release notes label Dec 19, 2023
The overrides are no longer necessary.  In reviewing the diff between
what I'm removing and what is in the `double_combo` branch; the major
change was adding an operator for the `reduce` function.  The breaking
problem was that the method signature of one of the copied methods has
changed in Hyrax 5.0.

The removal considers that Hyrax::Group is of two different classes:

- In Hyrax, it is a plain old Ruby object
- In Hyku, it is descended from ActiveRecord::Base

The two classes have different instantiation parameters.  Hence the
introduction of `Hyrax::Group.new` in this code.
@jeremyf jeremyf force-pushed the rework-permission-query branch from 808c83a to 75d519f Compare December 19, 2023 19:34
@jeremyf jeremyf merged commit 2c64fa3 into hyrax-5-upgrade Dec 19, 2023
2 of 3 checks passed
@jeremyf jeremyf deleted the rework-permission-query branch December 19, 2023 19:37
@kirkkwang kirkkwang mentioned this pull request Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
major-ver for release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants