-
Notifications
You must be signed in to change notification settings - Fork 228
fix(compass-indexes): update tooltip when server version should support search indexes but fetch fails COMPASS-9378 #7122
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
Conversation
can manage your Atlas Search indexes from the Atlas web | ||
Ul, with the CLI, or with the Administration API. | ||
</p> | ||
{semver.gte(serverVersion, '6.0.7') ? ( |
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.
semver will fail if the version can't be parsed (which happens occasionally for compass users), you should wrap this call in a way that handles the failed parsing (you can look at semver usage in this package as a reference)
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.
sounds good, fixed
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.
One note, but not a blocker, looks good otherwise, thanks for the change!
MIN_SEARCH_INDEX_MANAGEMENT_SERVER_VERSION | ||
); | ||
} catch { | ||
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 we might want this to be false
if we couldn't parse the version (usually when we encounter this people are running some unexpected server builds / versions), but I trust you know better. It's also a rare case, so maybe not worth overthinking too much
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 that makes sense, fixed 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.
lgtm! Left one suggestion on a different phrasing to improve readability, not a blocker, fine as is!
packages/compass-indexes/src/components/indexes-toolbar/indexes-toolbar.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Rhys <[email protected]>
Description
Unable to fetch search indexes. This can occur when your cluster does not support search indexes or the listing search indexes request failed.
when server version should support search indexesChecklist
Motivation and Context
Open Questions
Dependents
Types of changes