-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Fix 24666 disabled modules still included less files #27888
Fix 24666 disabled modules still included less files #27888
Conversation
Hi @mrtuvn. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
@mrtuvn: thanks for picking this up! It was determined to be a better solution during the contribution day at Magento Live Europe last year. The original pull request was determined to not being the best possible solution. And the core Magento developers who were there said it would not be accepted. Sorry for not having picked this up myself yet, I simply don't have adequate time at the moment to start figuring out how to make extra tests for that simpler solution. |
sure i will take a try on that approach |
The failing integration test looks like a problem which I fixed before in scope of this issue you are trying to fix, but seems like part of that fix got reverted again by MC-31752 which is slightly annoying. I'll take a quick look to see if we can fix that again ... |
Ok done, PR #27892 fixes the failing integration tests in this PR. |
Hi @ihor-sviziev, thank you for the review.
|
Test failures looks not related to changes from this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mrtuvn,
I just double checked and found that you changed is named "../Decorator/ModuleOutput.php", so it should filter by module output, not by enabled module or not.
I think we can't use accept it as is, instead we need to create similar class in the same namespace, but name it as "../Decorator/ModuleEnabled.php" and use it as decorator in di.xml.
Could you update your PR? Sorry for confusing you.
Added Decorator Filter modules Enabled with test coverage too |
Hi @mrtuvn! Thanks for this great improvement. I'm adding I also added Anyway, thanks again! We look forward to delivering this improvement ASAP. |
daba4a0
to
65ac245
Compare
65ac245
to
4fca34c
Compare
Hi @mrtuvn |
@mrtuvn unfortunately some themes might depends on styles from disabled modules and doing such big change in patch release will be too much. That's why this PR will be targeted to 2.5 |
4fca34c
to
213c069
Compare
@magento run Database Compare, Functional Tests B2B, Unit Tests |
@magento run Functional Tests B2B |
@mrtuvn yes, please re-target your PR to 2.5-develop branch |
213c069
to
5cf97c9
Compare
Done! I have created new one here #31593 |
@mrtuvn no, I meant that you could just change the target branch for this PR, not creating a new one. But anyway, we can close this one if you wish |
Oh i did know that ! Btw let close this |
Hi @mrtuvn, thank you for your contribution! |
Hi @mrtuvn: could you add a link to this PR in your new PR? So people can find the entire discussion which happened here? Thanks! :) |
Description (*)
This PR bring the patch for fix issue modules disabled still include less files. It's should not included in output final style files. Previously styles still included in output final css styles
Use case 1: Disable module example Company_CustomCatalog in app/etc/config.php. But assume accidental add module styles in theme folder in
app/design/frontend/theme/theme_name/Company_CustomCatalog/web/css/source/_module.less
Actually after run deploy output css magento still included Company_CustomCatalog styles in file styles-m.css in pub folder
Related Pull Requests
Keep continue works by @Echron after long inactivity in PR 25183
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)