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

DEVPROD-11769: Improve waterfall handling for inactive versions #8361

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sophstad
Copy link
Contributor

@sophstad sophstad commented Oct 2, 2024

DEVPROD-11769

Description

  • While investigating the panic linked in the ticket, I noticed that the waterfall resolver failed to properly handle projects with 0 active versions. This PR implements that so that we can list all inactive versions on the new waterfall page.

Testing

  • Added unit tests that fail without these code changes

@sophstad sophstad marked this pull request as ready for review October 2, 2024 20:39
@sophstad sophstad requested review from a team October 2, 2024 20:40
@@ -103,7 +103,8 @@ func GetActiveWaterfallVersions(ctx context.Context, projectId string, opts Wate

// GetAllWaterfallVersions returns all of a project's versions within an inclusive range of orders.
func GetAllWaterfallVersions(ctx context.Context, projectId string, minOrder int, maxOrder int) ([]Version, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there might be a small bug with the revision order number range, when I load the default Spruce waterfall I see 13 inactive versions at the end (which doesn't show up on the main branch). Comparing with the Project Health page, I think these commits might actually be active so they wouldn't end up being collapsed 👀

Screenshot 2024-10-03 at 11 35 22 AM

@sophstad sophstad marked this pull request as draft October 4, 2024 15:34
@sophstad sophstad marked this pull request as ready for review October 7, 2024 15:43
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