Skip to content

Add Data Sync feature support - #188

Merged
KGronek-Pubnub merged 22 commits into
masterfrom
feat/data_sync
Sep 22, 2026
Merged

KGronek-Pubnub merged 22 commits into
masterfrom
feat/data_sync

Conversation

@KGronek-Pubnub

@KGronek-Pubnub KGronek-Pubnub commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

feat(datasync): Add Data Sync feature support.

Add Data Sync feature support.

feat(pam): Grant DataSync permissions on access tokens

Add Data Sync support to GrantToken. Deprecate old UsersPermissions and UserPatternsPermissions Grant methods.

@pubnub-ops-terraform

pubnub-ops-terraform commented Sep 18, 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.

KGronek-Pubnub and others added 5 commits September 18, 2026 09:53
* Add DataSync example snippets and feature-support entry

Adds the doc-pipeline example snippets referenced by the new Go
DataSync documentation, plus the data-sync feature group in
.pubnub.yml so the docs feature-support matrix doesn't crash.

- examples/snippets/api/datasync_example_test.go: 52 Example_* snippets
  covering create/get/get-all/set/update/remove for users, channels,
  memberships, entities, and relationships, plus the DataSync event
  listener, projection channel subscription, and two grant-token
  examples. Every function seeds and cleans up its own running-example
  data (hidden from the rendered snippet via snippet.hide/snippet.show)
  so it is safe to run individually or repeatedly, and every function
  has a deterministic Output comment.
- examples/snippets/api/config_helper.go: adds
  setPubnubExampleDataSyncConfigData, mirroring the existing PAM
  helper, reading DS_PUBLISH_KEY/DS_SUBSCRIBE_KEY/DS_SECRET_KEY.
- .pubnub.yml: registers the data-sync feature group with the 34
  DataSync feature keys already defined in the docs repo's registry.

Note: the entity and relationship examples assume the product and
ProductOwner classes already exist on the DS_* test keyset via the
Admin API. The Go SDK has no method to create classes itself, so if
those classes are missing on that keyset, only those examples will
fail in CI, independent of this change.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* Fix DataSync examples.

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: Kamil Gronek <kamil.gronek@pubnub.com>

@jakub-grzesiowski jakub-grzesiowski left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@KGronek-Pubnub KGronek-Pubnub changed the title Add DataSync functionality Add Data Sync feature support Sep 22, 2026
@KGronek-Pubnub

Copy link
Copy Markdown
Contributor Author

@pubnub-release-bot release as v10.0.0

@KGronek-Pubnub
KGronek-Pubnub merged commit 5091df4 into master Sep 22, 2026
8 checks passed
@KGronek-Pubnub
KGronek-Pubnub deleted the feat/data_sync branch September 22, 2026 11:40
@pubnub-release-bot

Copy link
Copy Markdown
Contributor

🚀 Release successfully completed 🚀

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.

5 participants