10000 Test on Rails 8 by jcoyne · Pull Request #3340 · projectblacklight/blacklight · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Test on Rails 8 #3340

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

Merged
merged 1 commit into from
Oct 14, 2024
Merged

Test on Rails 8 #3340

merged 1 commit into from
Oct 14, 2024

Conversation

jcoyne
Copy link
Member
@jcoyne jcoyne commented Sep 26, 2024

No description provided.

@jcoyne jcoyne force-pushed the rails8 branch 5 times, most recently from 508f952 to a15d1f6 Compare September 26, 2024 18:55
@jcoyne jcoyne marked this pull request as ready for review September 26, 2024 19:12
Comment on lines +22 to +23
return unless defined?(Sprockets)

Copy link
Member

Choose a reason for hiding this comment

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

Does this make it impossible to use importmap with propshaft?

Copy link
Member

Choose a reason for hiding this comment

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

Ah, I think I see – the propshaft-compatible parts are first; everything after this line is sprockets-only?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes.

Copy link
Member

Choose a reason for hiding this comment

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

If we do this (which I think makes sense) could we also change the conditionals in the asset generator, just to make it explicit that the importmap generator should run regardless of sprockets/propshaft?

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought this PR does just that. Maybe you can be more specific and help me understand if it's something else you had in mind.

Copy link
Member

Choose a reason for hiding this comment

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

My read of the current logic is that only one generator will ultimately run. What I meant is making it possible for two to run: the importmap generator, as well as one of propshaft/sprockets generators. This isn't the case now, because all of the branches are elsif.

Copy link
Member Author

Choose a reason for hiding this comment

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

We don't need any other generator to run if the importmap generator runs. The importmap generator handles it. In fact if the importmap generator runs, we must not run the sprockets generator as that sets up the javascript with sprockets.

Copy link
Member

Choose a reason for hiding this comment

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

What about installing the blacklight-frontend package, which the propshaft generator handles? If we are doing importmaps (for js) and propshaft (for css), don't we still need to ensure that package is installed in order to bring in the scss to compile?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, the importmap generator handles that.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, I missed that in the changes in this PR! OK, I think this all makes sense.

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.

3 participants
0