Skip to content

Allow to disable module via installer using enable_modules = all #14143

@PascalBrouwers

Description

@PascalBrouwers

When installing via the installer you can use the options disable_modules and enable_modules
How it works now is that you need to list all modules in the enable_modules list if you want to be able to disable a module for install.

Preconditions

  1. Magento 2.4

Steps to reproduce

  1. Use a cli command to install magento with option enable_modules = all and disable_module
bin/magento setup:install --base-url=http://magento.local/ \
--db-host=localhost --db-name=magento --db-user=root --db-password=root \
--admin-firstname=admin --admin-lastname=admin [email protected] \
--admin-user=admin --admin-password=example@password1 --language=en_US \
--use-rewrites=1 --backend-frontname admin \
--enable-modules='all' --disable-modules='Magento_Sitemap'

Expected result

  1. Install should not able modules listed in disable_modules. Eg. Magento_Sitemap

Actual result

  1. Install ignores disable_modules when option enable_modules = all is used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: SetupEvent: mm19inIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P3May be fixed according to the position in the backlog.Progress: doneReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.stale issue

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions