N°9876 - A non installed extension should not be selected if it is not mandatory - #992
Conversation
|
| Filename | Overview |
|---|---|
| setup/extensionsmap.class.inc.php | Removes automatic mandatory status for remote extensions, but installed remote extensions with dependency issues remain removable in normal mode. |
| setup/wizardsteps/WizStepModulesChoice.php | Refines extension checkbox flags, but the dependency-issue branch preserves default selection for non-installed optional remote extensions and misses the installed-remote removal safeguard. |
| tests/php-unit-tests/unitary-tests/setup/WizStepModulesChoiceTest.php | Adds force-uninstall and mandatory-source coverage but does not cover the two dependency-issue combinations underlying the outstanding findings. |
Reviews (3): Last reviewed commit: "N°9876 - A non installed extension shoul..." | Re-trigger Greptile
There was a problem hiding this comment.
Pull request overview
Prevents optional, non-installed extensions from being selected automatically during setup.
Changes:
- Preserves extension-defined mandatory status.
- Refines force-uninstall selection behavior.
- Updates related flag tests.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
setup/extensionsmap.class.inc.php |
Stops forcing remote extensions to mandatory. |
setup/wizardsteps/WizStepModulesChoice.php |
Adjusts checked and disabled flags. |
tests/php-unit-tests/unitary-tests/setup/WizStepModulesChoiceTest.php |
Updates and expands flag scenarios. |
Suppressed comments (1)
tests/php-unit-tests/unitary-tests/setup/WizStepModulesChoiceTest.php:661
- This scenario does not exercise the newly changed installed/non-uninstallable branch:
installedis false whilemandatoryanduninstallableare true, so execution takes the mandatory branch instead. Configure an installed, optional, non-uninstallable extension so the test verifies that force-uninstall leaves it enabled but checked even when it was not selected.
'An installed extension with force uninstall should be checked and enabled' => [
'aExtensionsOnDiskOrDb' => [
'itop-ext1' => [
'installed' => false,
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
N°9876 - A non installed extension should not be selected if it is not mandatory