Comments

bogdan.racz’s picture

Assigned: Unassigned » bogdan.racz
bogdan.racz’s picture

Added a patch for removing the checkbox for updating disabled modules, also removed it from the schema configuration file.
Please review.

ifrik’s picture

Status: Active » Needs review
bogdan.racz’s picture

Assigned: bogdan.racz » Unassigned

Status: Needs review » Needs work

The last submitted patch, 2: remove-update-checkbox-disable-modules-2470145-2.patch, failed testing.

bogdan.racz’s picture

Assigned: Unassigned » bogdan.racz
Status: Needs work » Active
bogdan.racz’s picture

I am currently working on it.

bogdan.racz’s picture

Issue tags: +drupaldevdays
bogdan.racz’s picture

I 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

bogdan.racz’s picture

Status: Active » Needs review
bogdan.racz’s picture

Title: Update manager displays tickbox for disabled modules » Update manager displays checkbox for disabled extensions
bogdan.racz’s picture

ifrik’s picture

Thanks 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.

bogdan.racz’s picture

I have also found a connected issue: https://www.drupal.org/node/2338167

Regarding 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.

bogdan.racz’s picture

StatusFileSize
new118.32 KB

I have also attached a screenshot.

celdia’s picture

I have applied the patch.
It's gone. Ok.

k4v’s picture

Status: Needs review » Reviewed & tested by the community

The patch looks fine to me.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

This 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!

  • alexpott committed a16cbda on 8.0.x
    Issue #2470145 by rbmboogie: Update manager displays checkbox for...
David_Rothstein’s picture

Title: Update manager displays checkbox for disabled extensions » (Rollback) Update manager displays checkbox for disabled extensions
Priority: Normal » Critical
Status: Fixed » Active

This 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.

David_Rothstein’s picture

Status: Active » Needs review
StatusFileSize
new5.08 KB

Here'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.

Status: Needs review » Needs work

The last submitted patch, 21: update-manager-rollback-2470145-21.patch, failed testing.

Status: Needs work » Needs review

  • xjm committed 1c614c6 on 8.0.x
    Revert "Issue #2470145 by rbmboogie: Update manager displays checkbox...
xjm’s picture

Title: (Rollback) Update manager displays checkbox for disabled extensions » Fix text for update manager checkbox for disabled extensions
Assigned: bogdan.racz » Unassigned
Priority: Critical » Normal
Status: Needs review » Needs work

I'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!

David_Rothstein’s picture

Status: Needs work » Needs review
Issue tags: +Needs backport to D7
StatusFileSize
new2.91 KB
ifrik’s picture

Issue summary: View changes
Status: Needs review » Needs work
StatusFileSize
new34.89 KB

I 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.

johnpicozzi’s picture

Working on updating the Patch at DrupalConLA... Patch to come.

johnpicozzi’s picture

Status: Needs work » Needs review
StatusFileSize
new3.45 KB

Here is a new patch... Needs Review, wasn't sure if I should work to change the 'disabled' variable in the twig file to 'uninstalled'

ifrik’s picture

I'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".

David_Rothstein’s picture

"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.

travis-bradbury’s picture

I updated the template to use "Installed"/"Uninstalled" instead of "Enabled"/"Uninstalled".

ifrik’s picture

Status: Needs review » Needs work

Hi 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.

David_Rothstein’s picture

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

Yes, although that distinction of "install" vs "enable" is not used consistently - see also #2543066: "Install new module" and "Install new theme" links are confusing

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.

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.

David_Rothstein’s picture

Status: Needs work » Needs review
StatusFileSize
new2.91 KB

Reuploading #26 for review.

ieguskiza’s picture

Assigned: Unassigned » ieguskiza
Issue tags: +DUGBE0609
ieguskiza’s picture

Assigned: ieguskiza » Unassigned

Although 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.

xito’s picture

Assigned: Unassigned » xito
xito’s picture

Status: Needs review » Reviewed & tested by the community

According with the comments of this issue, I verified the patch 26 and I confirm that it updates the text on the tickbox.

ifrik’s picture

Thanks 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.)

xito’s picture

Assigned: xito » Unassigned
alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 6352680 and pushed to 8.0.x. Thanks!

  • alexpott committed 6352680 on 8.0.x
    Issue #2470145 by David_Rothstein, rbmboogie, tbradbury, johnpicozzi,...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

David_Rothstein’s picture

Version: 8.0.x-dev » 7.x-dev
Status: Closed (fixed) » Patch (to be ported)

For the backport I guess we just want to clarify that it's disabled/uninstalled (rather than only disabled).

  • xjm committed 1c614c6 on 8.1.x
    Revert "Issue #2470145 by rbmboogie: Update manager displays checkbox...
  • alexpott committed a16cbda on 8.1.x
    Issue #2470145 by rbmboogie: Update manager displays checkbox for...
  • alexpott committed 6352680 on 8.1.x
    Issue #2470145 by David_Rothstein, rbmboogie, tbradbury, johnpicozzi,...
talhaparacha’s picture

Status: Patch (to be ported) » Needs review
StatusFileSize
new1.41 KB

Backported to D7. Just improved the tickbox label wording as per #45.

darol100’s picture

Status: Needs review » Reviewed & tested by the community

@talhaparacha, good job.

This looks good to me changing it to RCTB.

darol100’s picture

@talhaparacha, good job.

This looks good to me changing it to RCTB.

ifrik’s picture

Thanks a lot for fixing this, as well as for backporting it.

David_Rothstein’s picture

Status: Reviewed & tested by the community » Needs work
-    '#title' => t('Check for updates of disabled modules and themes'),
+    '#title' => t('Check for updates of disabled or uninstalled modules and
+      themes'),

This 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?

David_Rothstein’s picture

Status: Needs work » Needs review
StatusFileSize
new1.4 KB

I 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.

Status: Needs review » Needs work

The last submitted patch, 52: fix_text_for_update-2470145-52.patch, failed testing.

David_Rothstein’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 52: fix_text_for_update-2470145-52.patch, failed testing.

David_Rothstein’s picture

Status: Needs work » Needs review
darol100’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new1.03 KB

The errors seem unrelated to this patch. I have added an interdiff between 47 and 52.

This shouldn't be broken onto multiple lines, since it's a basic translatable string.

@David_Rothstein, I did not know that can cause problems.

I think this patch is good to go moving to RTCB.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 52: fix_text_for_update-2470145-52.patch, failed testing.

David_Rothstein’s picture

Status: Needs work » Reviewed & tested by the community

Thanks. 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.

  • David_Rothstein committed aa232a2 on 7.x
    Issue #2470145 by David_Rothstein, rbmboogie, tbradbury, johnpicozzi,...
David_Rothstein’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: +7.44 release notes, +String change in 7.44

Committed to 7.x - thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

David_Rothstein’s picture

Issue tags: -7.44 release notes, -String change in 7.44 +7.50 release notes, +String change in 7.50

Changing tags since the release that includes this will probably be labeled Drupal 7.50 to indicate it contains some big changes.