Skip to content

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

Merged
merged 5 commits into from
Jul 22, 2025

Conversation

JimmyChoiMDB
Copy link
Collaborator

@JimmyChoiMDB JimmyChoiMDB commented Jul 17, 2025

Description

  • Change tooltip to 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 indexes
image

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

Open Questions

Dependents

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)

@JimmyChoiMDB JimmyChoiMDB requested a review from a team as a code owner July 17, 2025 16:25
@github-actions github-actions bot added the fix label Jul 17, 2025
@JimmyChoiMDB JimmyChoiMDB added the no release notes Fix or feature not for release notes label Jul 17, 2025
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') ? (
Copy link
Collaborator

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)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

sounds good, fixed

@JimmyChoiMDB JimmyChoiMDB requested a review from gribnoysup July 18, 2025 16:59
Copy link
Collaborator

@gribnoysup gribnoysup left a 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;
Copy link
Collaborator

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

Copy link
Collaborator Author

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

Copy link
Member

@Anemy Anemy left a 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!

Co-authored-by: Rhys <[email protected]>
@JimmyChoiMDB JimmyChoiMDB merged commit b1e7351 into main Jul 22, 2025
28 of 29 checks passed
@JimmyChoiMDB JimmyChoiMDB deleted the COMPASS-9378 branch July 22, 2025 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix no release notes Fix or feature not for release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants