Open m2-assistant[bot] opened 6 months ago
Hi @engcom-November. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. Hello @adrian-martinez-onestic,
Thank you for the report and collaboration!
Verified this on 2.4-develop. With Module_B being dependent on Module_A, we cannot enable Module_B without enabling Module_A. Hence this issue can be confirmed.
Thank you.
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-11803 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-November. Thank you for verifying the issue.
Issue Available: @engcom-November, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
This issue is automatically created based on existing pull request: magento/magento2#38600: Dependency checker does not work properly when enabling modules
Description (*)
Enabling / disabling modules is prepared to avoid leaving modules status in a inconsistent state, regarding its dependencies declared in composer.json, so:
Given
Module_A
andModule_B
, and a declared relation ofModule_B
=>Module_A
, I should not be able to enableModule_B
without enablingModule_A
, but I am:Technical Details
DependencyChecker
needs to use aPackageInfo
instance that usesFullModuleList
(as already done atConflictChecker::__construct
) in order to work, so constructor is changed to usePackageInfoFactory::create()
implementation which creates PackageInfo instance withFullModuleList
embedded (instead of standardModuleList
).Related Pull Requests
None AFAIK.
Fixed Issues (if relevant)
None AFAIK.
Manual testing scenarios (*)
Module_A
andModule_B
; onlyregistration.php
,module.xml
andcomposer.json
files are required.Before the change:
After the change:
The other case keeps working:
Questions or comments
Contribution checklist (*)