Update the dashboard to use the new batch endpoint for archive and mute.

Review Request #12716 — Created Nov. 8, 2022 and submitted

Information

Review Board
release-6.x

Reviewers

The way the dashboard currently does batch operations is to iterate
through the entire list of checked items and do an API call for each
one. This works OK but is quite inefficient, and our new batch view
allows doing it all in a single HTTP request.

This change moves the visibility operations (archive, mute, and
unarchive/unmute) over to that new endpoint.

  • Did a bunch of tests with various dashboard states and saw that
    visibility was always changed appropriately.
  • Ran unit tests.
  • Ran js-tests.
Summary ID
Update the dashboard to use the new batch endpoint for archive and mute.
The way the dashboard currently does batch operations is to iterate through the entire list of checked items and do an API call for each one. This works OK but is quite inefficient, and our new batch view allows doing it all in a single HTTP request. This change moves the visibility operations (archive, mute, and unarchive/unmute) over to that new endpoint. Testing Done: - Did a bunch of tests with various dashboard states and saw that visibility was always changed appropriately. - Ran unit tests. - Ran js-tests.
769a066285aa62bfab59f3f3f5f7d2a86caf060c
maubin
  1. Ship It!
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-6.x (9891da7)