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
Encapsulate the blacklight config #2083
Conversation
+1 but it seems like we should talk about when to merge this, if we think it's a major version increment. Would it make sense to mark this as a Blacklight 8 feature? |
4b9855f
to
ae3a525
Compare
Now that the 8.0.0.alpha tag is in main, can we revive this PR? |
All values set on Blacklight::Engine.config are actually stored in a class variable on Railtie::Configuration. So these pollute that namespace. All other railties are encapsulating their configs onto a single entry in that scope. This change makes Blacklight do likewise. This probably needs to be a major revision
ae3a525
to
5be0c8e
Compare
Rebasing for CI before merge. |
The OpenStruct linter rule was added in the interim of this PR being opened. There's three approaches available to us:
I think there's an argument for disabling the rule rather than adding yet another |
rubocop/rubocop#10206 is where they added this, and it makes a good point that Ruby 3 basically says "quit it." I'm for option 1, and actually removing that class one day (although I suspect it's gonna be hard :( ) |
Sold @tpendragon. I'll merge after CI. |
@jcoyne or @barmintor, can you create a PR against the release-7.x with appropriate deprecations and a migration path for this change? |
@cbeer I wouldn't know how to do that as |
Ok, I have a proposed deprecation up in #2610 Spoiler: It was kind of awkward. |
All values set on Blacklight::Engine.config are actually stored
in a class variable on Railtie::Configuration. So these pollute
that namespace. All other railties are encapsulating their configs
onto a single entry in that scope. This change makes Blacklight do
likewise.
This probably needs to be a major revision