[Issue] Dependency checker does not work properly when enabling modules #38606
Labels
Area: Framework
Component: Module
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: ready for confirmation
Priority: P2
A defect with this priority could have functionality issues which are not to expectations.
Progress: PR in progress
Reported on 2.4.x
Indicates original Magento version for the Issue report.
Reproduced on 2.4.x
The issue has been reproduced on latest 2.4-develop branch
Triage: Dev.Experience
Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
Projects
This issue is automatically created based on existing pull request: #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 (*)
The text was updated successfully, but these errors were encountered: