Problem/Motivation
I have a continuous integration script with uses this module to delete old revisions. Often I have thousands of revisions, and the output of my script looks like:
> [notice] Processing revision: 4320366
> [notice] Processing revision: 4322126
> [notice] Processing revision: 4323886
> [notice] Processing revision: 4325646
> [notice] Processing revision: 4327406
> [notice] Processing revision: 4329166
> [notice] Processing revision: 4330926
> [notice] Processing revision: 4332686
Which goes on for pages and pages and pages. I have no idea if there are a few left, or thousands.
I would like to have more feedback, something like:
> [notice] Processing revision: 4320366 of node 1234567 (566 of 8566)
> [notice] Processing revision: 4322126 of node 1234567 (567 of 8566)
> [notice] Processing revision: 4323886 of node 1234567 (568 of 8566)
> [notice] Processing revision: 4325646 of node 1234568 (569 of 8566)
> [notice] Processing revision: 4327406 of node 1234569 (570 of 8566)
> [notice] Processing revision: 4329166 of node 1234569 (571 of 8566)
> [notice] Processing revision: 4330926 of node 1234569 (572 of 8566)
> [notice] Processing revision: 4332686 of node 1234569 (573 of 8566)
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #2
alberto56 commentedComment #3
alberto56 commentedComment #4
robert ngoI've made a patch for this. Please check it out.
However, I changed the message a bit to include the title, too.
Would adding the dry-run flag and the language of the revision be more meaningful? And the repeating of "Provision" is not really needed.
What if we change it to:
Comment #5
robert ngoComment #7
robert ngoUpdate patch with test.
Comment #8
robert ngoUpdate patch with new message:
Without Dry-run:

With Dry-run:

Test failed on PHP 7.4 most likely caused by Drupal test running PHPUnit 9.x (see #3222004: phpunit.xml is using a deprecated schema) which requires a newer `phpunit.xml`.
The failed tests on PHP 7.4 seem to be irrelevant.
Please review,
Thanks
Comment #9
robert ngoComment #10
adriancidThanks for the patch @Robert Ngo