Download & Extend

D8UX: Batch API for the Modules page

Project:Drupal core
Version:8.x-dev
Component:system.module
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work
Issue tags:Batch API, d8ux, modules page, Usability

Issue Summary

To help make the modules page less intrusive, we should stick the Batch API on there so that the form submit doesn't seemingly take forever to load.

Screenshot of Batch API Modules page.png

AttachmentSizeStatusTest resultOperations
batchapi-modulespage.patch1.62 KBIdleFAILED: [[SimpleTest]]: [MySQL] Unable to apply patch batchapi-modulespage.patch. This may be a -p0 (old style) patch, which is no longer supported by the testbots.View details | Re-test
modulesprogress.png5.72 KBIgnored: Check issue status.NoneNone

Comments

#1

Can you elaborate more?

#2

If you have a large number of contributed modules on your site, and you're enabling/disabling some, it can sometimes take up to 15 seconds for the form submission to process. This greatly impedes the user, and generally makes them scared of enabling or disabling modules. It also makes them worried that their site broke during the operation while they are waiting for the page to load. You can easily see this effect if you're enabling/disabling a large number of modules, or installing a new module that has a large install process (like Views or Panels).

By adding the Batch API to the modules page submission, we give the user direct feedback on how their process is taking place. It also lets them know that their site isn't breaking when it is enabling/disabling the modules. The provided patch at #0 just sticks the basics into the Batch API. It would be great to give the user feedback on a module by module basis as to whether it was enabled/disabled successfully.

#3

Status:needs work» needs review
AttachmentSizeStatusTest resultOperations
modules.patch3.16 KBIdleFAILED: [[SimpleTest]]: [MySQL] 34,464 pass(es), 12 fail(s), and 321 exception(es).View details | Re-test

#4

Status:needs review» needs work

The last submitted patch, modules.patch, failed testing.

nobody click here