-
Notifications
You must be signed in to change notification settings - Fork 22
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
UX: Indicate dependencies that are automatically enabled/disabled #164
Comments
@klonos - I'm not sure how we would do this given that all the dependency processing happens within core functions For disabling, we'd somehow have to check whether a module was still required by another module or not before saying it was going to be disabled. Do you have any ideas on how to do this? |
Can we look at how drush handles this? Does it call |
It looks like drush builds its own list unless i'm looking at the wrong spot: https://github.com/drush-ops/drush/blob/b27e30ebabc6a2c3ce56eaeaaa7fa67db7e9ee96/commands/core/drupal/environment_7.inc#L100 I think this feature is really important for practical usability and I'm happy (and have some time available) to work on the strategy we talked about in the dev meeting today which will be:
|
module_disable() functions, and utilize them when enabling and disabling modules to notify the user of dependent and/or required modules that are being disabled/enabled in addition to the named modules. Issue backdrop-contrib#164
Discussion during the Dev meeting on 2024-09-26: https://www.youtube.com/live/uSG6jpHF8dk?si=pqKKtIKEyOhKUJSj&t=760 (I've added this link above) Thank you @elisseck for raising this and for preparing a pull request. I've added an initial comment there but will give a more detailed review shortly. |
- Pull temporary code into its own file includes/dependencies.inc - Make use of bee_instant_message() where appropriate - Add clarity to user message when a dependency of a dependency is disabled - Fix code comment typo abled() -> enabled() - Updated changelog Issue backdrop-contrib#164
- Pull temporary code into its own file includes/dependencies.inc - Make use of bee_instant_message() where appropriate - Add clarity to user message when a dependency of a dependency is disabled - Fix code comment typo abled() -> enabled() - Updated changelog Issue backdrop-contrib#164
- Pull temporary code into its own file includes/dependencies.inc - Make use of bee_instant_message() where appropriate - Add clarity to user message when a dependency of a dependency is disabled - Fix code comment typo abled() -> enabled() - Updated changelog Issue backdrop-contrib#164
- Pull temporary code into its own file includes/dependencies.inc - Make use of bee_instant_message() where appropriate - Add clarity to user message when a dependency of a dependency is disabled - Fix code comment typo abled() -> enabled() - Updated changelog Issue backdrop-contrib#164
When running
bee en devel_generate
, devel is also enabled because it is specified as a dependency for devel_generate 👍🏼 ...that's not being communicated to the user though:I'd like this to be like so instead:
...or:
Similarly when disabling modules that are dependencies for other modules:
Current behaviour:
What I would like to see instead is something like this instead:
In fact, "silently" enabling/disabling module dependencies may be seen as a bug. Drush prompts for this:
The text was updated successfully, but these errors were encountered: