Bulk select on page "Suspended and expired users" in the admin area

Bug #1740329 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Wishlist
Robert Lyon

Bug Description

On /admin/users/suspended.php

When you have a large number of people in that list, you have to select them all individually to delete or reactivate. It would be good to have a "Select all / None" option like on the "User search".

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/8391

Robert Lyon (robertl-9)
Changed in mahara:
milestone: none → 18.04.0
status: Confirmed → In Progress
Revision history for this message
Robert Lyon (robertl-9) wrote :

Will also tidy up the table to look more like the 'User search' one

Changed in mahara:
assignee: nobody → Robert Lyon (robertl-9)
Revision history for this message
Niranjan (niranjan528) wrote :

Environment to be tested: Master
Browser to be tested: Any browser

Precondition:

1. A user with 'Site admin' access exists.
2. Normal users ‘User one’, ‘User two’,‘User three’, ‘User four’, ‘User five’ & ‘User six’ exist and all these users are suspended users.
3. Normal users ‘User seven’, ‘User eight’, ‘User nine’, ‘User ten’, ‘User eleven’ & ‘User twelve' exist and all these users are expired users.

Note: All the user accounts are created via a ‘CSV’ file.

Steps to reproduce:

1. Log in as ‘Site admin’.
2. Navigate to Administration menu > Users > Suspended and expired users.
3. Select the ‘Expired users’ from the ‘Show’ drop-down menu.
4. Click the ‘All’ button.

Expected result: All the expired users are selected.

5. Click the ‘None’ button.

Expected result: Nobody is selected.

6. Select the users ‘User seven’, ‘User eight’ & ‘User nine’.
7. Click the ‘Delete users’ button.

Expected result: A pop-up with a message ‘Are you sure you want to delete the selected users?’ is displayed.

8. Click the ‘Yes’ button.

Expected result: All the selected expired users are deleted.

9. Select the ‘Expired users’ from the ‘Show’ drop-down menu.

Expected result: You only see ‘User ten’, ‘User eleven’ & ‘User twelve'.

10. Click the ‘All’ button.

Expected result: All the remaining expired users are selected.

11. Click the ‘Delete users’ button.

Expected result: A pop-up with a message ‘Are you sure you want to delete the selected users?’ is displayed.

12. Click the ‘Yes’ button.

Expected result: All the selected expired users are deleted.

13. Select the ‘Expired users’ from the ‘Show’ drop-down menu.

Expected result: There should not be any more ‘Expired users’ in the list.

14. Select the ‘Suspended users’ from the ‘Show’ drop-down menu.
15. Click the ‘All’ button.

Expected result: All the suspended users are selected.

16. Click the ‘Unsuspend users’ button.

Expected result: All the suspended users are not suspended any more.

17. Select the ‘Suspended users’ from the ‘Show’ drop-down menu.

Expected result: There should not be any more ‘Suspended users’ in the list.

18. Navigate to Administration menu > Users > User search

Expected result:

1.‘User seven’, ‘User eight’, ‘User nine’, ‘User ten’, ‘User eleven’ & ‘User twelve' are not visible as these users were deleted.
2. ‘User one’, ‘User two’,‘User three’, ‘User four’, ‘User five’ & ‘User six’ exist on the User search page.

19. Click on the ‘User one’ username.

Expected result: Account settings page is displayed without a suspension message.

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/8391
Committed: https://git.mahara.org/mahara/mahara/commit/bb74d1e87ee0132ebe7b3b86c9d41cbc0161e719
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit bb74d1e87ee0132ebe7b3b86c9d41cbc0161e719
Author: Robert Lyon <email address hidden>
Date: Fri Dec 29 15:19:41 2017 +1300

Bug 1740329: Adding all/none selector for suspended users page

Also tidying up the table / layout to be more like user search page

behatnotneeded

Change-Id: I1c7e880d0ff6bc658ac4c21f5f04138fcf8c7b5c
Signed-off-by: Robert Lyon <email address hidden>

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
tags: added: nominatedfeature
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.