Skip to content

dataSync updates: set operations upsert behaviour - #558

Closed
mohitpubnub wants to merge 9 commits into
masterfrom
CLEN-4005
Closed

mohitpubnub wants to merge 9 commits into
masterfrom
CLEN-4005

Conversation

@mohitpubnub

Copy link
Copy Markdown
Contributor

feat: dataSync set operations now behaves create-or-replace operation.

dataSync set operations are upserts now. added support for optional ttl parameter.

fix: treat 412 as non-retriable in retry policy.

treat 412 as non-retriable in retry policy.

…ional class/classLevel (entityClass/entityClassLevel),relationship/membership participant IDs optional, ifNoneMatch (If-None-Match).
no validation on empty ids in get memberships,relationships,users/channels. to match behaviour across the sdks
@mohitpubnub
mohitpubnub marked this pull request as ready for review December 3, 2026 08:09

@parfeon parfeon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!


return JSON.stringify({
data: {
...(entityClass !== undefined ? { entityClass } : {}),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Header says:

Creation requires entityClass

But here we let it slide with no entityClass

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It means If you want to create an entity then this requires this param.
Because developer can use this same API either for creation or replacement. So for creation purpose this is required. But if not mentioned then this can be a replace operation.

@pubnub-snyk-universal-prd

pubnub-snyk-universal-prd Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@mohitpubnub mohitpubnub closed this Dec 3, 2026
@mohitpubnub
mohitpubnub deleted the CLEN-4005 branch December 3, 2026 11:45
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.

3 participants