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 override explicit by doing it in the original module in an initializer #6125

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

cjcolvar
Copy link
Member

Resolves #6124

Before this change the overridden helper method was not loading correctly and Blacklight's original implementation was executing causing the return value to be a SolrDocument which led to incorrect urls in the search results. This is probably due to a change in the way zeitwerk autoloading works in Rails 7.2 and only manifests in production environment. It doesn't appear in the development environment because of a reloading workaround that targets the development environment (see #1747). This workaround also fixes the issue in production but it the change in this PR feels like a better solution for this specific problem as well as being more limited in scope.

Copy link
Contributor

@Dananji Dananji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good as far as I can tell 👍

@cjcolvar cjcolvar merged commit ecb7995 into develop Nov 18, 2024
2 checks passed
@cjcolvar cjcolvar deleted the move_override branch November 18, 2024 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants