Switch to draft mode when an admin edits a review request.

Review Request #14038 — Created July 13, 2024 and submitted

Information

Review Board
release-7.x

Reviewers

When an admin is viewing someone else's review request, they now have a
choice between viewing it as if they were a regular user, and seeing
unpublished draft data.

This change makes it so when a new draft is created by the admin, we
switch to the view-draft mode.

Made changes to a review request (setting draft fields, creating
attachments) and saw that the draft banner appeared, the notice about
viewing an unpublished draft appeared, and that the URL in the browser
changed to include the ?view-draft=1 query parameter.

Summary ID
Switch to draft mode when an admin edits a review request.
When an admin is viewing someone else's review request, they now have a choice between viewing it as if they were a regular user, and seeing unpublished draft data. This change makes it so when a new draft is created by the admin, we switch to the view-draft mode. Testing Done: Made changes to a review request (setting draft fields, creating attachments) and saw that the draft banner appeared, the notice about viewing an unpublished draft appeared, and that the URL in the browser changed to include the ?view-draft=1 query parameter.
37e0b65401fed9559db3c248533bb4406e439536
maubin
  1. Ship It!
  2. 
      
chipx86
  1. Ship It!
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-7.x (90629f1)