Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I advised neclimdul to restart from Steven's comments because that issue got derailed soon. Things got a bit complex soon so I took over. Read that issue for more information but now it seems that things work right.
This patch presumes http://drupal.org/node/84546
Comment | File | Size | Author |
---|---|---|---|
#11 | dependencies_17.patch | 19.41 KB | asimmonds |
#10 | dependencies_16.patch | 19.44 KB | asimmonds |
#8 | dependencies_15.patch | 19.25 KB | asimmonds |
#6 | dependencies_14.patch | 19.31 KB | asimmonds |
#3 | dependencies.patch_13.txt | 19.16 KB | neclimdul |
Comments
Comment #1
chx CreditAttribution: chx commentedNeclimdul observed that the confirm screen failed to preserve already switched on modules.
Comment #2
rstamm CreditAttribution: rstamm commentedchanged to nicer colors.
fixed handling of required modules in throttle column
based on #1
Comment #3
neclimdulAfter some discussion with chx, we move the code from _validate to _submit and remove the global variable and use POST instead.
Also, I simplified the throttle code by reusing the disable processing to just disable the throttle on the core modules. I would like some feedback on the useability of this.
Comment #4
webchickadding to my queue
Comment #5
rstamm CreditAttribution: rstamm commentedthrottle column is consistent
looks very good
Comment #6
asimmonds CreditAttribution: asimmonds commentedFound one little bug, the $current_module_list should be generated *after* the installation of new modules.
Comment #7
asimmonds CreditAttribution: asimmonds commentedIf we have a module with a number of dependant modules, for this example I'll take views.
Views has the views_rss, views_theme_wizard and views_ui modules as dependants.
If views is enabled, then views_rss is enabled separately, the views module checkbox is correctly disabled. But now, if views_ui is enabled we will get a confirm page asking to enable views (but it's already enabled...).
Comment #8
asimmonds CreditAttribution: asimmonds commentedIn system_modules_submit(), should merge in the disabled_modules list before system_module_build_dependencies() is called. I've tested this a few times with different module combinations, hopefully haven't broken anything else.
Comment #9
webchickWow, I'm very impressed! I was expecting to be able to poke all kinds of holes in this. ;)
1. Dependencies are listed before I even go to enable a module, so there are no "surprises" about needing the foo module.
2. Not only are they listed, it's also indicated whether the required module is enabled, disabled or missing. Colours are used for easy scanning, but the words are there too so we maintain accessibility.
3. Tested disabling comment module and enabling forum module -- the system comes up and prompts me that it will enable comment module for me, which works great. Also allows me to opt out of this.
4. I also renamed comment.module to comment.module2, and Forum module's checkbox gets greyed out, since comment.module is missing.
5. When a module is required by another module, the checkbox is greyed out so I can't cause dependency errors.
So yeah, I can't find anything to keep this from being RTBC, and I really tried, believe me. :)
Comment #10
asimmonds CreditAttribution: asimmonds commentedDeselection of the checkboxes in the throttle column was broken.
Comment #11
asimmonds CreditAttribution: asimmonds commentedMinor change
Comment #12
chx CreditAttribution: chx commentedit is RTBC despite you can throttle a module that has a dependency. However, that's for a different patch because the correct way to do it is to move throttle to another tab IMO. It should not be possible to click for throttling a module which is not enabled therefore the throttle tab should only display the enabled modules. And it should be inverted, it should show which modules are enabled when throttle hits. The current is totally counterintuitive. Next issue or this continued.
But, this is feature complete and even fixes a core bug because the throttle uncheck is b0rken in vanilla HEAD, too.
Comment #13
chx CreditAttribution: chx commentedWhy critical? Because we agreed that 5.0 needs this, Dries made an exception for it and contribution modules can't use the fine functionality until it's in.
Comment #14
Steven CreditAttribution: Steven commentedWorks swell. I tweaked the wording of the confirmation dialog box (the description and title were the same) and changed "Dependencies:" to "Depends on: " (to match "Required by: ").
Committed to 5.
Comment #15
(not verified) CreditAttribution: commented