Skip to content

The bin/magento setup:upgrade Command will Enable Non-Enabled modules #25

@magento-engcom-team

Description

@magento-engcom-team

Preconditions

  1. Magento installed via composer --create-project method, confirmed 2.1.3, 2.1.5, 2.1.6

Steps to reproduce

  1. Create a new module in app/code ($ pestle.phar magento2:generate:module AbcCorp Testbed 0.0.1
  2. Run php bin/magento setup:upgrade
  3. Examine app/etc/config.php

Expected result

  1. AbcCorp_Testbed should not appear in app/etc/config.php

Actual result

  1. AbcCorp_Testbed appears in app/etc/config.php, and is enabled

It's a reasonable developer expectation that setup:update should not enable modules that were not previously enabled. This bug came from real world interactions with working developers who hit this bug. This bug caused unexpected Setup Upgrade code to run, and resulted in lost real world working billable hours.

Original Report: magento/magento2#9516 by @astorm

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions