Skip to content

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alenakhineika
Copy link
Contributor

@alenakhineika alenakhineika commented Mar 19, 2025

Description

Display notice when connected to an “end-of-life” server.

Checklist

  • New tests and/or benchmarks are included
  • Documentation is changed or added
  • If this change updates the UI, screenshots/videos are added and a design review is requested
  • I have signed the MongoDB Contributor License Agreement (https://www.mongodb.com/legal/contributor-agreement)

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

@kraenhansen kraenhansen force-pushed the COMPASS-9083-eol-server branch from 3e71bad to f5fffe5 Compare May 2, 2025 08:05
@kraenhansen
Copy link
Contributor

I rebased and force-pushed the branch to get a clear diff on GitHub.

Comment on lines +1462 to +1469
if (!serverVersion) {
return true;
}
try {
return semver.satisfies(serverVersion, `<=${getEoLServerVersion()}`);
} catch (e) {
return true;
}
Copy link
Contributor

@kraenhansen kraenhansen May 2, 2025

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.

Comment on lines +1815 to +1821
} else if (isEndOfLifeServer(build.version)) {
dispatch(
showEndOfLifeWarningModal({
connectionId: connectionInfo.id,
serverVersion: build.version,
})
);
Copy link
Contributor

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".

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.

2 participants