Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
update.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Apr 2015 at 15:08 UTC
Updated:
31 May 2016 at 15:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
bogdan.racz commentedComment #2
bogdan.racz commentedAdded a patch for removing the checkbox for updating disabled modules, also removed it from the schema configuration file.
Please review.
Comment #3
ifrikComment #4
bogdan.racz commentedComment #6
bogdan.racz commentedComment #7
bogdan.racz commentedI am currently working on it.
Comment #8
bogdan.racz commentedComment #9
bogdan.racz commentedI also had to update some tests as they were checking for disabled extensions.
Starting from this issue, while searching for old references regarding the "disabled extensions", I made up a list of the following files I've discovered:
KernelTestBase.php @523
simpletest.module @483
node.module @1307
update.inc @563
I have also found a connected issue: https://www.drupal.org/node/2338167
Comment #10
bogdan.racz commentedComment #11
bogdan.racz commentedComment #12
bogdan.racz commentedComment #13
ifrikThanks rbmboogie,
I've reviewed the user interface and the patch works as intended: There is no checkbox anymore.
I can't review any other functionality of the patch, since I don't know about that system.
Comment #14
bogdan.racz commentedRegarding the issue above, I spoked with alexpott, and for now, until the release I will post a separate patch documenting the deprecated status variable. Moving the discussion into the respective issue.
As for the questions about the references in some files for the "disabled extensions", I think there should be a separate meta issue, for finding/removing all these references.
Comment #15
bogdan.racz commentedI have also attached a screenshot.
Comment #16
celdia commentedI have applied the patch.
It's gone. Ok.
Comment #17
k4v commentedThe patch looks fine to me.
Comment #18
alexpottThis issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed a16cbda and pushed to 8.0.x. Thanks!
Comment #20
David_Rothstein commentedThis needs to be rolled back since it's based on an incorrect assumption about what this checkbox does. (A reasonable assumption, though, given how the checkbox is labeled...)
This feature is not just for checking disabled modules, but uninstalled modules also.
You can easily verify that by installing a version of Drupal 8 from before the patch here was committed and then adding either https://www.drupal.org/node/2302087 (module) or https://www.drupal.org/node/2442867 (theme) to the site's filesystem. With the checkbox checked, Drupal 8 will warn that both of these are outdated.
This behavior makes sense, especially for security issues. Although rare, there have been cases where a module had a security issue that could be exploited simply by having the code in the filesystem.
Comment #21
David_Rothstein commentedHere's a rollback patch.
It would probably be a good idea to follow this up with a separate issue (for both Drupal 8 and Drupal 7) to improve/clarify the wording on this checkbox and other places in the admin interface that use this setting.
Comment #25
xjmI've reverted the earlier patch. Let's rescope this issue to update the text for the checkbox for Drupal 8 rather than removing it. Thanks!
Comment #26
David_Rothstein commentedComment #27
ifrikI can't really review what the patch is doing now, but there is some user interface text on the "Available updates" page that needs changing as well, because the list there refers to "Enabled" and "Disabled" modules.
Comment #28
johnpicozziWorking on updating the Patch at DrupalConLA... Patch to come.
Comment #29
johnpicozziHere is a new patch... Needs Review, wasn't sure if I should work to change the 'disabled' variable in the twig file to 'uninstalled'
Comment #30
ifrikI've only reviewed the user interface text.
On the Settings page, the tick box correctly refers to "uninstalled modules".

On the Available updates page, the UI text correctly refers to "Uninstalled" vs. "Enabled".

Comment #31
David_Rothstein commented"Enabled" vs "Uninstalled" doesn't look right to me. Seems like we either want "Enabled" vs "Disabled" or "Installed" vs "Uninstalled"?
In my earlier patch I tried to just fix the parts where it was very specific about saying "Disabled module" or "Disabled theme" and left the ones where it was using "enabled"/"disabled" a bit more generally. But perhaps it does make sense to move everything over to "installed"/"uninstalled" consistently.
Comment #32
travis-bradbury commentedI updated the template to use "Installed"/"Uninstalled" instead of "Enabled"/"Uninstalled".
Comment #33
ifrikHi David,
The question what the right term is probably goes beyond this issue and therefore should be discussed on a larger level.
In Drupal 7 we had installing (i.e. downloading the module code into the correct directory), enabling it (by ticking the tick box on the Modules page) which creates the appropriate database tables, disabling it (ticking the tickboxes on the Modules page again) which did not remove the data base tables, uninstalling (via the uninstall tab on the Modules page) this removes the database tables. After that it was considered uninstalled, even though the code is still in the directory.
In Drupal 8, the option to disable a module but keep its database tables has been removed. So we are only left with what was described as "uninstalling" in Drupal 7 and that's what it is still called on the both the Extend and the Appearance page.
On the modules page, we also still have the option to "install" a module before it can then enabled on the page. For example a user can install a module with several sub-modules, but only enable one of them. So we are still stuck with that difference.
In a more general understanding, "disabling" would probably be more appropriate for what the "Uninstall" page does, because the module is still in your directory, but that will confuse everybody who knows Drupal 7, and who would not expect to loose their data when they would disable it.
To cut it short: enable - uninstall is a legacy that we probably have to live with, and if it were to be change it needs to be changed at quite a few different places.
Comment #34
David_Rothstein commentedYes, although that distinction of "install" vs "enable" is not used consistently - see also #2543066: "Install new module" and "Install new theme" links are confusing
I agree - especially because of the above let's not change any "enable" to "install" in this patch. Consequently I'm not sure we should change "disable" to "uninstall" in cases where it is displayed right next to "enable", although we could (see my comment in #31).
I think the simplest thing to do here is just change cases where "disabled" is mentioned on its own. Those would be the most confusing. That's what I was trying to do in #26, I believe. "Enabled/disabled" displayed together is not as bad, I don't think.
Comment #35
David_Rothstein commentedReuploading #26 for review.
Comment #36
ieguskiza commentedComment #37
ieguskiza commentedAlthough I can't contribute much to the ongoing discussion, I can confirm that the patch 26 replaces the 'Disabled' references for 'Uninstalled' wherever it is mentioned on its own.
Comment #38
xito commentedComment #39
xito commentedAccording with the comments of this issue, I verified the patch 26 and I confirm that it updates the text on the tickbox.
Comment #40
ifrikThanks David,
for reuploading patch 26.
The checkbox now refers to "uninstalled" modules, which is consistent with the use of the wording on other pages such as on the the Extend page.

The issue I raised in comment #30, has been resolved in a different way previously. The list of checked projects now does not differentiate whether a core module is enabled or not, so there is no potential confusion for site builders anymore either.
Thanks a lot!
(Somewhere along the line, we should have probably updated the issue summary and proposed solution, but that seems to be a bit late now.)
Comment #41
xito commentedComment #42
alexpottCommitted 6352680 and pushed to 8.0.x. Thanks!
Comment #45
David_Rothstein commentedFor the backport I guess we just want to clarify that it's disabled/uninstalled (rather than only disabled).
Comment #47
talhaparacha commentedBackported to D7. Just improved the tickbox label wording as per #45.
Comment #48
darol100 commented@talhaparacha, good job.
This looks good to me changing it to RCTB.
Comment #49
darol100 commented@talhaparacha, good job.
This looks good to me changing it to RCTB.
Comment #50
ifrikThanks a lot for fixing this, as well as for backporting it.
Comment #51
David_Rothstein commentedThis shouldn't be broken onto multiple lines, since it's a basic translatable string.
I also think it should be "disabled and uninstalled" rather than "disabled or uninstalled". That reads more clearly to me (since we're checking updates of both, not either). Anyone else agree/disagree?
Comment #52
David_Rothstein commentedI guess either could be clearer depending on your point of view :) In any case here's a new patch that changes the wording and also fixes the line wrapping.
Comment #54
David_Rothstein commentedComment #56
David_Rothstein commentedComment #57
darol100 commentedThe errors seem unrelated to this patch. I have added an interdiff between 47 and 52.
@David_Rothstein, I did not know that can cause problems.
I think this patch is good to go moving to RTCB.
Comment #59
David_Rothstein commentedThanks. Regarding multiple lines, I'm pretty sure it won't cause problems - just more of a code style thing not to break up single function calls like that.
Bah, the testbot has become unhinged :)
Given the translatable string addition, I'll probably hold this off until after the upcoming release anyway to give translators more time to adjust to it after commit.
Comment #61
David_Rothstein commentedCommitted to 7.x - thanks!
Comment #63
David_Rothstein commentedChanging tags since the release that includes this will probably be labeled Drupal 7.50 to indicate it contains some big changes.