Skip to content

Conversation

nvs119
Copy link
Collaborator

@nvs119 nvs119 commented Oct 2, 2025

Description

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)

openToast,
showConfirmation as showConfirmationModal,
} from '@mongodb-js/compass-components';
import { fetchShardingKeys } from '@mongodb-js/compass-crud';
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should probably move this to data service. We already aggregate indexes state from multiple sources, might as well add another one there instead of exposing this method from crud. Maybe we can have both: an explicit method to fetch shard keys, and also adding this logic to indexes method so that this info is available on the index

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants