-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Connect My Computer: Keeping compatibility promise #31951
Merged
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
1d75e91
Add server version to cluster
gzdunek d90a3b6
Add components to display compatibility promise
gzdunek f0a570b
Show compatibility promise on status page
gzdunek bfacfa0
Show compatibility promise on setup page
gzdunek 7b50dad
Rename `serverVersion` -> `proxyVersion`, make all places to use `mak…
gzdunek 29c16c5
Move `UpgradeAgentSuggestion` to a new file, make it stateless
gzdunek c5c7755
Return `isAgentCompatible` instead of `isNonCompatibleAgent` from con…
gzdunek 3c5823f
Add // DELETE IN comments
gzdunek 8f0b2d4
Improve copies
gzdunek c4d4744
Add a story for too old client in Setup
gzdunek 1a8f4b1
Extract CONNECT_MY_COMPUTER_RELEASE_MAJOR_VERSION
gzdunek 5312c24
Run prettier
gzdunek b97a21f
Fix license
gzdunek 02d3218
Show an error on the CMC icon when the agent is not compatible
gzdunek 4983018
Always say "version" before the version number
gzdunek a4d609b
Adjust tests
gzdunek 3dd2c53
Drop "if you wish" from the copies
gzdunek 2f78da2
Merge branch 'master' into gzdunek/cmc-compatibility-promise
gzdunek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This made me realize: if the agent has been configured but it wasn't started because it's no longer compatible with the proxy, maybe we could display a warning indicator in the icon?
It should be a matter of doing this but please double check this:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! We should definitely show it on the icon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realized that in an ideal world, the error indicator would only show up if autostart was prevented due to incompatibility issues. Otherwise if you configure the agent, stop it and compatibility issues occur in the future, you're going to see the error indicator even though you're not actively using the agent.
Anyways, I think we can keep it as it is, at least it'll nudge those users towards an upgrade of Connect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it would be better, but IMO it's still not bad, at least users will be more aware that they are using an incompatible version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran into another issue with the indicator.
isAgentCompatible
looks atrootCluster.proxyVersion
, but this information is not immediately available. So if I configure my agent and then restart the app, the indicator will show a warning color until the app fetches detailed information about the cluster.I think we should be able to fix this by replacing
isAgentCompatible
withagentCompatibility
that can be one of three values: compatible, incompatible, unknown. I'll attempt to fix it next week.Also, during the review I forgot that differentiating between success & error states with just color is usually not enough for users with red-green confusion.
Screen.Recording.2023-09-22.at.15.57.05.mov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I didn't think of it 😞
👍
As for colors, probably we should use an icon? I can take a look at it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, an icon would be a good solution.