Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup wizard: Show module dependencies on requirements page #4864

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

sukhwinder33445
Copy link
Contributor

fixes #4850

@cla-bot cla-bot bot added the cla/signed label Jul 5, 2022
@sukhwinder33445 sukhwinder33445 requested a review from nilmerg July 5, 2022 13:11
@sukhwinder33445 sukhwinder33445 added the bug Something isn't working label Jul 5, 2022
@sukhwinder33445 sukhwinder33445 self-assigned this Jul 5, 2022
Copy link
Member

@nilmerg nilmerg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plus what we discussed :)

modules/setup/application/forms/ModulePage.php Outdated Show resolved Hide resolved
modules/setup/library/Setup/ModuleDependencyWizard.php Outdated Show resolved Hide resolved
modules/setup/library/Setup/ModuleDependencyWizard.php Outdated Show resolved Hide resolved
@sukhwinder33445 sukhwinder33445 force-pushed the show-module-dependencies-on-requirments-page branch 5 times, most recently from 035104c to 20208a4 Compare July 26, 2022 12:28
@sukhwinder33445 sukhwinder33445 force-pushed the show-module-dependencies-on-requirments-page branch from 6b2819a to a2c019e Compare July 26, 2022 13:09
@sukhwinder33445 sukhwinder33445 requested a review from nilmerg July 26, 2022 13:11
modules/setup/application/forms/ModulePage.php Outdated Show resolved Hide resolved
modules/setup/library/Setup/ModuleDependency.php Outdated Show resolved Hide resolved
modules/setup/library/Setup/ModuleDependency.php Outdated Show resolved Hide resolved
use Icinga\Module\Setup\Requirement\SetRequirement;
use Icinga\Module\Setup\Requirement\WebModuleRequirement;

class ModuleDependency
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this work? It's not a page nor a wizard.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setup-requirements.phtml (line 12) gets the wizard and calls getRequirements().
The class ModuleDependency contains only this method, i.e. if no SetupWizard is provided for the current module (e.g. Cube), this class returns module and lib dependencies.

* Also accept array with two values
* evaluate() returns true if `$version` is not defined
@sukhwinder33445 sukhwinder33445 force-pushed the show-module-dependencies-on-requirments-page branch 2 times, most recently from 4633c02 to 2e8cc09 Compare September 6, 2022 13:29
@sukhwinder33445 sukhwinder33445 force-pushed the show-module-dependencies-on-requirments-page branch from f4c3c9c to 136ebab Compare September 6, 2022 15:00
@nilmerg
Copy link
Member

nilmerg commented Nov 2, 2022

Note to myself:

Module "director" could not be enabled. An error occured:
WARNING: Module "director" can't be enabled. Module has unmet dependencies
Module "incubator" has been successfully enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cla/signed
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Setup wizard fails to enable modules with dependencies
2 participants