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.
Problem/Motivation
\Drupal\entity_usage\Form\BatchUpdateForm::submitForm() attempts to create a batch operation for every single available entity. For large sites, the submit form takes too long to build these operations resulting in a timeout.
Proposed resolution
Reduce the time needed to generate batches in BatchUpdateForm::submitForm() so it can be used on large sites.
Remaining tasks
- Write a patch
- Review
- Commit
User interface changes
The time needed to generate batches in BatchUpdateForm::submitForm() is reduced, so it no longer generates a timeout on large sites.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#4 | entity_usage-batch_update_form_timeout-2936193-4.patch | 11.75 KB | idebr |
#4 | interdiff-2-4.txt | 1017 bytes | idebr |
Comments
Comment #2
idebr CreditAttribution: idebr at ezCompany commentedAttached patch implements the following changes to BatchUpdateForm:
Comment #4
idebr CreditAttribution: idebr at ezCompany commentedUpdated JavaScript test with the new text selectors.
Comment #6
marcoscanoFixed, thanks!