[COMPASS-4373] Allow updating documents in sharded collections Created: 29/Jul/20  Updated: 23/Mar/22  Resolved: 23/Mar/22

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: 1.21.2
Fix Version/s: 1.24.1

Type: New Feature Priority: Major - P3
Reporter: Rhys Howell Assignee: Unassigned
Resolution: Duplicate Votes: 8
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2020-07-29 at 12.02.45 PM.png    
Issue Links:
Duplicate
duplicates COMPASS-4478 Support for updates in sharded collec... Closed
Related
Documentation Changes: Not Needed
UserVoice Links:

Update on Sharded Cluster (Suggestion)
completed (13 users)


 Description   

Updating a document in a collection sharded on the `bucket` field:

In `compass-crud` this is because our filter query only supplies `_id` and not the shard key: 
https://github.com/mongodb-js/compass-crud/blob/master/src/stores/crud-store.js#L343
I don't think the data service currently gives us the collection's shard key, but we should be able to query it from the config -> collections collection (key object in each document). This ticket involves identifying when we're in a sharded collection/environment, and supplying the shard key in related queries.

Related help ticket: https://jira.mongodb.org/browse/HELP-17211



 Comments   
Comment by Massimiliano Marcon [ 26/Aug/20 ]

Tracking in UserVoice.

Generated at Wed Feb 07 22:36:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.