Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Users cannot view plan until merge review has been submitted #829

Closed
parkerabercrombie opened this issue Aug 4, 2023 · 8 comments · Fixed by #1136
Closed

Users cannot view plan until merge review has been submitted #829

parkerabercrombie opened this issue Aug 4, 2023 · 8 comments · Fixed by #1136
Assignees
Labels
clipper tt-06 Clipper issues related to TT-06 feedback clipper Requests from the Europa Clipper project feature New feature or request

Comments

@parkerabercrombie
Copy link

parkerabercrombie commented Aug 4, 2023

See the comments below. This was reported as a bug, but we converted it to a feature request. The request is to allow for viewing a plan in the UI that is currently undergoing review (and is thus locked).

Version

1.7.0

Describe the feature

If a user initiates a merge review but does not complete the review (e.g. closes the browser) then when another user attempts to open the plan they see the merge review UI instead of the plan contents.

Reproduction

Create a merge request, and open the merge review UI.
Reload the Aerie browser tab and navigate to the plan. Merge review UI appears instead of the plan content.

@parkerabercrombie parkerabercrombie added the bug Something isn't working label Aug 4, 2023
@camargo
Copy link
Member

camargo commented Aug 4, 2023

@parkerabercrombie This was by design. When a merge review is started, the plan is intentionally locked in the database to prevent edits to the plan until the merge review is complete. This is to prevent the plan from getting out of sync with the review.

That said, instead of locking the plan we could potentially make it read-only in the UI since we now have better permission infrastructure. That would require a little more design tho. I can change this to a feature request if that is more what you are going for.

@parkerabercrombie
Copy link
Author

Thanks @camargo. Ideally users would be able to view the plan before the merge request was processed (e.g. an instrument team submitted a merge request but the main plain owner is on a long lunch break, and now no one can see the plan until they get back). Please convert to a feature request, but let me gather some more info from the thread test conductors on how much this impacted operations, to inform priority.

@camargo camargo added feature New feature or request clipper Requests from the Europa Clipper project and removed bug Something isn't working labels Aug 4, 2023
@camargo camargo transferred this issue from NASA-AMMOS/aerie Aug 4, 2023
@joswig
Copy link
Collaborator

joswig commented Sep 27, 2023

Related to ECGDSITD-532

Preliminary design is that users with merge permissions would still initially see the merge view.
Users without merge permissions would initially see the plan in read only view.
All users would be able to switch between views

@joswig joswig added the clipper tt-06 Clipper issues related to TT-06 feedback label Sep 27, 2023
@joswig joswig added the next Near term candidates label Nov 6, 2023
@joswig
Copy link
Collaborator

joswig commented Feb 2, 2024

An option is to move the merge request view to a new endpoint, and then leverage the read only views created for plan snapshot when a merge request is open

@lklyne
Copy link
Contributor

lklyne commented Mar 5, 2024

Based on @cohansen and I's discussion, here's a few proposed improvements:

Update the nav in the merge request to "Merge review: name of plan from name of branch"

Image

In a locked plan with an active merge request, show a callout to open the merge review

Image

In the merge requests modal, add a link to open the merge review

Image

@cohansen
Copy link
Contributor

cohansen commented Mar 6, 2024

Screenshot 2024-03-06 at 1 19 00 PM
Screenshot 2024-03-06 at 1 19 12 PM
Screenshot 2024-03-06 at 1 19 27 PM

@lklyne
Copy link
Contributor

lklyne commented Mar 7, 2024

Looks good @cohansen!

  • Is the 1 in the first screenshot a link to the target plan? Its tough to tell the link styling apart from the text. Not sure if that's our default link style or maybe an issue with the screenshot and github compression. Could consider adding an underline or underline on hover.
  • Probably ok to ignore, but a nice polish item would be to add 0.5-1rem (8 / 16px) of additional padding between the "open merge request" button and the branch name.

@lklyne
Copy link
Contributor

lklyne commented Mar 7, 2024

Also now that i'm looking at this I wonder if "view merge request" would make more sense? Could "open" be confused with "initiate merge request" to someone less familiar with the process?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clipper tt-06 Clipper issues related to TT-06 feedback clipper Requests from the Europa Clipper project feature New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

6 participants