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

Automatically expand stages that have reviews in progress. #4671

Conversation

jrobbins
Copy link
Collaborator

@jrobbins jrobbins commented Jan 7, 2025

This is a step toward supporting more fine-grained SLO measurements. Now that feature owners need to explicitly re-request reviews that were marked NEEDS_WORK, it is important that they can easily notice such reviews on the feature detail page.

Previously, the only open stage accordion sections were for the stage that the user had marked as active, or the stage containing a gate mentioned in the URL. Now, the app will also automatically expand any section that has a gate in an active review state, or a mixed combination of PREPARING and APPROVED gates.

In this PR:

  • Add the conditional logic and helper functions
  • Add unit tests

@jrobbins jrobbins requested a review from KyleJu January 7, 2025 20:14
@jrobbins jrobbins merged commit e5a0b02 into main Jan 7, 2025
7 checks passed
@jrobbins jrobbins deleted the 20250107-automatically-expand-stages-that-have-reviews-in-progress branch January 7, 2025 22:18
@jrobbins
Copy link
Collaborator Author

jrobbins commented Jan 7, 2025

This relates to #4634.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants