-
Notifications
You must be signed in to change notification settings - Fork 212
feat(connect): end-of-life server COMPASS-9083 #6805
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
base: main
Are you sure you want to change the base?
Conversation
3e71bad
to
f5fffe5
Compare
I rebased and force-pushed the branch to get a clear diff on GitHub. |
if (!serverVersion) { | ||
return true; | ||
} | ||
try { | ||
return semver.satisfies(serverVersion, `<=${getEoLServerVersion()}`); | ||
} catch (e) { | ||
return true; | ||
} |
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 think this should default to false
in case of a missing version or failure.
} else if (isEndOfLifeServer(build.version)) { | ||
dispatch( | ||
showEndOfLifeWarningModal({ | ||
connectionId: connectionInfo.id, | ||
serverVersion: build.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 like that this is mutually exclusive with the "non genuine modal".
Description
Display notice when connected to an “end-of-life” server.
Checklist
Motivation and Context
Types of changes