Skip to content

Autoload patches with flickwerk #116

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 11 commits into from
May 15, 2025
Merged

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Nov 21, 2024

This moves all the patches to core Solidus or the main app to places where they will be picked up by solidus_support.

@mamhoff mamhoff force-pushed the autoload-decorators branch 2 times, most recently from 705a799 to c9473a5 Compare November 21, 2024 16:51
@mamhoff mamhoff force-pushed the autoload-decorators branch 4 times, most recently from 33d98bf to 641392a Compare January 16, 2025 11:14
@mamhoff
Copy link
Contributor Author

mamhoff commented Jan 16, 2025

This has the work from solidusio/solidus_support#94 and should pass once #120 is merged.

@mamhoff mamhoff force-pushed the autoload-decorators branch from 641392a to 48bbc38 Compare January 16, 2025 13:04
@mamhoff mamhoff marked this pull request as ready for review January 22, 2025 13:28
@tvdeyen tvdeyen force-pushed the autoload-decorators branch from 48bbc38 to 6a13b13 Compare February 11, 2025 16:16
@mamhoff mamhoff force-pushed the autoload-decorators branch from 6a13b13 to 0f3abb8 Compare February 11, 2025 16:42
@mamhoff mamhoff force-pushed the autoload-decorators branch from 0f3abb8 to a71f58f Compare May 14, 2025 14:31
mamhoff added 3 commits May 15, 2025 09:49
This also tries require'ing `solidus_frontend` before we load the
patch. Otherwise `flickwerk` does not find the patch in lib/frontend
(because by the time it looks for the files, `solidus_frontend` is not
yet loaded).
We don't need to keep a whole file for a single line of ActionView
configuration.
@mamhoff mamhoff force-pushed the autoload-decorators branch from a71f58f to e000fb0 Compare May 15, 2025 07:51
mamhoff and others added 8 commits May 15, 2025 10:09
Newer versions of Alchemy do not accidentally load the Admin Base
Controller in an initializer, so for new Alchemy versions this will be
handled by Flickwerk. In order versions though, the
`Spree::Admin::BaseController` is loaded to early in the startup process
and thus we need to load the patch manually.
This brings flickwerk support
@mamhoff mamhoff force-pushed the autoload-decorators branch from e000fb0 to 121791b Compare May 15, 2025 08:11
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

NICE!

@tvdeyen tvdeyen changed the title Autoload decorators Autoload patches with flickwerk May 15, 2025
@tvdeyen tvdeyen merged commit e9d89a3 into AlchemyCMS:main May 15, 2025
37 checks passed
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