Closed (fixed)
Project:
Revisions Bulk Operations
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Apr 2026 at 15:44 UTC
Updated:
12 May 2026 at 11:40 UTC
Jump to comment: Most recent
Comments
Comment #2
anybodyMight be a nice novice task to learn to write tests in Drupal?
Comment #5
sapnil_biswas commentedAdded the functional test, marking this for review
Comment #6
anybodyThanks @sapnil_biswas sadly they seem to fail?
Could you please also add permission tests (separate tests per permissions - testing with AND without each permission and in useful combinations)?
And a generic test like this please in addition: https://git.drupalcode.org/project/existing_values_autocomplete_widget/-...
Maybe you'd also like to take over #3586292: Fix cspell, phpcs, phpstan, eslint and make everything green required?
Comment #7
sapnil_biswas commentedSorry for the inconvenience, I will get them fixed and then start with the https://www.drupal.org/project/revisions_bulk_operations/issues/3586292
Comment #8
anybody@sapnil_biswas thanks, tests are still failing.
Furthermore I think not all permission conditions are tested, for example not being able to access the revisions at all if the user does not have 'view page revisions' permission? Even if this is more or less part of core, we should ensure that we don't break that permission in the module. Also check the other involved permission to ensure they are tested in all useful combinations.
Also please add a test to delete all revisions at once, currently only deleting 1 revision is tested, right?
Also please test selecting no revision and clicking the delete button to work as expected, NOT deleting any revision and showing an error message.
Thanks! We're close to the finish line :)
Comment #9
sapnil_biswas commentedThanks for the review and feedback, @anybody. Once i get the #3586292: Fix cspell, phpcs, phpstan, eslint and make everything green required I will this one fixed asap
Comment #10
anybody@sapnil_biswas the CI issue is now merged :) You can proceed.
Comment #11
sapnil_biswas commented@anybody, it's green now. Please have a look when you have time
Comment #12
anybody@grevil please do the final review.
Comment #13
grevil commentedGreat tests, thanks! @anybody I made one comment for you.
Comment #14
anybodyAgreed! Here's the text, as similar in core:
"At least one revision must be selected."
Comment #15
anybodyPlease do it here, that's fine for me.
Comment #16
anybody@sapnil_biswas thanks for your work here, now you know the module, you may also be able to resolve this one finally? #3581727: Improve the module page, README.md and add screenshots
Comment #17
sapnil_biswas commented@anybody, I have updated the text as required. I will looking forward to #3581727 now
Comment #18
anybodyComment #19
grevil commentedGreat stuff, thanks @sapnil_biswas!
Comment #20
grevil commented