Skip to content
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

fix(connections, web): handle flex clusters without deployment COMPASS-9008 #6741

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

gribnoysup
Copy link
Collaborator

@gribnoysup gribnoysup commented Feb 21, 2025

We noticed that some flex clusters are not displayed in compass-web correctly, the reason seems to be that flex replaced both serverless and shared tier clusters (at least that's my guess, it's hard to validate to be honest).

It seems like if cluster was shared tier, we're able to build the metadata for it because the cluster looks like a replica set with associated deployment (although because we're not accounting for it actually being flex, we use it subtly wrong in some cases), but serverless clusters don't have a deployment, our code wasn't expecting that and so clusters would be just filtered out when listed due to the error when building the metadata.

I scanned through the mms codebase and seems to me that the flex handling in really close to serverless, so this patch maps flex explicitly in the metrics metadata and changes the places that are checking against it accordingly

Before After
image image

@github-actions github-actions bot added the fix label Feb 21, 2025
@gribnoysup gribnoysup added no release notes Fix or feature not for release notes and removed fix labels Feb 21, 2025
@github-actions github-actions bot added the fix label Feb 21, 2025
Copy link
Contributor

@syn-zhu syn-zhu left a comment

Choose a reason for hiding this comment

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

Main thing I just wanted to clarify, after this change, existing Flex clusters which already work with the current code will continue to work? E.g. https://cloud-dev.mongodb.com/v2/66ce1716209aca269796919b#/flex/explorer/Flex

@gribnoysup
Copy link
Collaborator Author

gribnoysup commented Feb 24, 2025

@syn-zhu they will, of course! As I mentioned, they do work right now, but there are actually subtle issues there, for example the performance advisor link is not built correctly (although still works), automation agent requests would be using the wrong id (but we're lucky that no features using it are applied to flex), this PR deals with those too by properly hadling all flex clusters, not only accidentally handling those that match old shared tier

@gribnoysup gribnoysup marked this pull request as ready for review February 24, 2025 13:15
@gribnoysup gribnoysup added the no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion) label Feb 24, 2025
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 no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants