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-15240: Redirect to new waterfall from legacy waterfall #8782

Merged
merged 5 commits into from
Mar 8, 2025

Conversation

minnakt
Copy link
Contributor

@minnakt minnakt commented Mar 3, 2025

DEVPROD-15240

Description

Currently, if you visit evergreen.mongodb.com with the setting to redirect to Spruce enabled, it automatically redirects to the old Project Health page. We should redirect to the new Waterfall or Project Health page based on a user's preferences to introduce friction and encourage users to use the new page.

Also updates the value of "Open Page in New UI" links in the same way.

Testing

  • On staging

@minnakt minnakt marked this pull request as ready for review March 3, 2025 22:26
@minnakt minnakt requested review from a team March 3, 2025 22:26
Comment on lines 622 to 631
newUILink := fmt.Sprintf("%s/commits/%s", uis.Settings.Ui.UIv2Url, project.Identifier)

u := gimlet.GetUser(r.Context())
if u != nil {
usr, ok := u.(*user.DBUser)
if ok {
if usr.BetaFeatures.SpruceWaterfallEnabled {
newUILink = fmt.Sprintf("%s/project/%s/waterfall", uis.Settings.Ui.UIv2Url, project.Identifier)
}
}
Copy link
Contributor

@sophstad sophstad Mar 4, 2025

Choose a reason for hiding this comment

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

Can we make the default the waterfall page and only redirect to the commits page if they're not opted in to the beta? Since the beta period will be ending ~this week I think that will facilitate moving everyone to the waterfall (and simplify this cleanup by making the if statement deletable).

Also might we need to check if the admin feature is enabled, so that turning off the beta will automatically work without making more changes?

Copy link
Contributor Author

@minnakt minnakt Mar 4, 2025

Choose a reason for hiding this comment

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

I can reverse the if-statements! I'm a bit confused about the admin feature condition; on the frontend we implemented it so that if the admin feature is disabled, it turns off the waterfall page. It seems like we might be doing the opposite here which could be confusing

Another option if you want is to increase friction and just always link people to the new Waterfall page, which might annoy them, but that's okay

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(to clarify I'm just not sure what to do with admin settings, but I can definitely access them here in uis.Settings.Ui.BetaFeatures.SpruceWaterfallEnabled!)

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks, good point. Makes sense to me.

@minnakt minnakt requested a review from sophstad March 4, 2025 22:35
@minnakt minnakt changed the title DEVPROD-15240: Redirect to new waterfall if opted in to beta test DEVPROD-15240: Redirect to new waterfall from legacy waterfall Mar 8, 2025
@minnakt minnakt merged commit 48bd8ed into evergreen-ci:main Mar 8, 2025
10 checks passed
@minnakt minnakt deleted the DEVPROD-15240 branch March 8, 2025 17:09
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.

3 participants