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

embedded cluster upgrade modal #4398

Merged
merged 5 commits into from
Jan 26, 2024
Merged

Conversation

cbodonnell
Copy link
Contributor

@cbodonnell cbodonnell commented Jan 25, 2024

What this PR does / why we need it:

This PR improves the KOTS UI so that when it loses connection to the API during a cluster upgrade, a separate dialog is shown indicating to the user that the cluster is being updated and that connectivity will be restored once it completes.

https://www.loom.com/share/29a2622f3cec4276aac30b5670dfc35a?sid=b0460ba2-26c5-4cf1-8ed5-dce842a7563f

Screen Shot 2024-01-25 at 11 36 01 AM

Which issue(s) this PR fixes:

https://app.shortcut.com/replicated/story/97393/detect-cluster-update-and-show-a-better-message-when-the-admin-console-goes-down

Special notes for your reviewer:

Steps to reproduce

  1. Install a KOTS app
  2. Upgrade to a newer version that includes an embedded cluster upgrade (k0s version bump)

Does this PR introduce a user-facing change?


Does this PR require documentation?

// version is different from the currently deployed embedded cluster config
RequiresUpgrade bool `json:"requiresUpgrade"`
// State represents the current state of the most recently deployed embedded cluster config
State string `json:"state,omitempty"`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

is there a more appropriate place for these response fields? cluster seems like an OK spot, but i know it's not necessarily meant to be for the "embedded cluster" but rather the "kots downstream cluster"

@cbodonnell cbodonnell marked this pull request as ready for review January 25, 2024 18:15
@cbodonnell cbodonnell requested a review from alicenstar January 25, 2024 18:53
@cbodonnell
Copy link
Contributor Author

@alicenstar tagging you on this PR to see if there's anything on the front-end that you may have feedback on.

@alicenstar
Copy link
Member

@cbodonnell Would you be able to take a Loom showing the full functionality (what the connection error looks like and how the modal pops up)? I am reviewing the front end code now, but it would be easier if I could also see how it functions in the browser.

@cbodonnell
Copy link
Contributor Author

@cbodonnell Would you be able to take a Loom showing the full functionality (what the connection error looks like and how the modal pops up)? I am reviewing the front end code now, but it would be easier if I could also see how it functions in the browser.

@alicenstar Added a loom to the PR description. The new modal is meant to be shown in place of this existing modal, which is displayed when the UI loses connectivity to the API. We instead want to show a nicer message since this downtime is expected during an embedded cluster upgrade.

Screen Shot 2024-01-25 at 2 15 26 PM

@alicenstar
Copy link
Member

@cbodonnell Thank you, that context is helpful! I'm in refinement right now so my review got a bit paused, but it should be over shortly. I do see an interesting pattern in EmbeddedClusterUpgrading that I'd like to examine further.

alicenstar
alicenstar previously approved these changes Jan 25, 2024
Copy link
Member

@alicenstar alicenstar left a comment

Choose a reason for hiding this comment

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

Love to see the front end tests. Looks good - I had just one comment on an odd way of declaring a function in EmbeddedClusterUpgrading if you could take a look.

web/src/components/clusters/EmbeddedClusterUpgrading.tsx Outdated Show resolved Hide resolved
alicenstar
alicenstar previously approved these changes Jan 25, 2024
Copy link
Member

@alicenstar alicenstar left a comment

Choose a reason for hiding this comment

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

Looks great, Craig!

sgalsaleh
sgalsaleh previously approved these changes Jan 25, 2024
@cbodonnell cbodonnell merged commit 6d22994 into main Jan 26, 2024
94 checks passed
@cbodonnell cbodonnell deleted the cbo/sc-97393/cluster-upgrade-ui branch January 26, 2024 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants