Allow Subdoc MutateIn Deletions with a blank path
Description
Environment
None
Gerrit Reviews
None
Release Notes Description
None
Activity
Show:

Jared Casey July 24, 2023 at 3:30 PM
Subdoc mutateIn updated to allow deletes when remove Spec has blank path.
Resolved
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee

Reporter

Story Points
1
Components
Sprint
None
Fix versions
Priority
Instabug
Open Instabug
PagerDuty
PagerDuty Incident
PagerDuty

PagerDuty Incident
Sentry
Linked Issues
Sentry
Linked Issues
Zendesk Support
Linked Tickets
Zendesk Support

Linked Tickets
Created February 10, 2021 at 11:05 PM
Updated July 24, 2023 at 3:30 PM
Resolved July 24, 2023 at 3:30 PM
Instabug
This is a Sync Gateway requirement
Currently as per the RFC Insert, Upsert, Replace, Delete here then it states what behaviour should happen when the user defines a blank path. For replace it will perform a memcached subdocument operation which is a subdocument whole doc set command. For the other operations we don’t allowusers to use the blank path. In SDK2 we did allow blank path for delete, and it mapped to a subdocument whole doc remove command. The reason for allowing this is so that the user can write an xattr/vattr at the same time as deleting the doc.