Azure / Azure/cosmos-explorer

creating Mongo fixed collection but still having shardKey in payload

Open
#1,011 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
131
Forks
67
Avg merge
3d 13h
Merged PRs (30d)
10

Description

While creating fixed collection (Unsharded 20GB limit) in both MongoDB v3.6, v4.0 accounts, request payload still includes ShardKey even through the input box is hidden already.
This behavior leads users always creating partitioned collection no matter which sharding option they opt-in.
Request payload should remove "shardKey" property, thus allows Portal-Data Explorer creating fixed collection in specified database.

![image](https://user-images.githubusercontent.com/45855145/132365752-6b29d4bd-0a4d-4924-9d5d-1aec6fa85253.png)

Contributor guide

Open the contributing guide

Research direction

Start at the Data Explorer's MongoDB collection-creation flow and reproduce the fixed-collection request for the MongoDB v3.6 and v4.0 accounts described in the issue. Confirm that the payload omits the shardKey property when the sharding option is disabled, and verify that a fixed collection is created in the specified database.

Written by the indexing model from the issue text.

Assessment

Tech stack
mongodb, typescript
Domain
databases, frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.