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

Fixed #19605 Don't static compile disabled modules #19751

Merged

Conversation

shikhamis11
Copy link
Member

@shikhamis11 shikhamis11 commented Dec 13, 2018

Fixed issue #19605 Don't static compile disabled modules

Summary
When running static-content:deploy, there are disabled module content in pub/static.

Examples

Disable modules that have frontend resources.
Run bin/magento setup:static-content:deploy
Observe that pub/static/... contains the resources.

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@magento-engcom-team
Copy link
Contributor

Hi @shikhamis11. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento-engcom-team give me test instance - deploy test instance based on PR changes
  • @magento-engcom-team give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

@milindsingh
Copy link
Member

@orlangur why "Community Insider: Cedcommerce" label is not added automatically by @magento-engcom-team ?

@shikhamis11
Copy link
Member Author

@orlangur may I know why you have added "Progress: on hold" label.

Copy link
Contributor

@orlangur orlangur left a comment

Choose a reason for hiding this comment

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

@shikhamis11 looks really clean and nice!

Please apply some minor review notes and do commit amend + force push.

on hold was to get a small feedback in Slack if there could be some undesired consequences by this change. For example, URL Rewrites are created even for disabled products so that you can enable them later without any collision.

@@ -43,6 +44,13 @@ class Collector implements CollectorInterface
* @var PackageFactory
*/
private $packageFactory;

/**
* Module Manager object
Copy link
Contributor

Choose a reason for hiding this comment

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

Such comment is not really useful, please leave type hint only.

@@ -65,11 +73,13 @@ class Collector implements CollectorInterface
public function __construct(
SourcePool $sourcePool,
FileNameResolver $fileNameResolver,
PackageFactory $packageFactory
PackageFactory $packageFactory,
Manager $moduleManager
Copy link
Contributor

Choose a reason for hiding this comment

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

@shikhamis11
Copy link
Member Author

@orlangur I have made changes please check

Fixed issue magento#19605 Don't static compile disabled modules

Updated Collector.php

Updated Collector.php
@magento-engcom-team magento-engcom-team added this to the Release: 2.3.1 milestone Dec 15, 2018
@magento-engcom-team
Copy link
Contributor

Hi @orlangur, thank you for the review.
ENGCOM-3701 has been created to process this Pull Request

@magento-engcom-team
Copy link
Contributor

Hi @shikhamis11. Thank you for your contribution.
We will aim to release these changes as part of 2.3.1.
Please check the release notes for final confirmation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants