Add Data Sync feature support - #188
Merged
Merged
Conversation
… and functions. Align parameters with other sdks.
…n for DataSync User. Deprecate old GrantToken builders for User.
KGronek-Pubnub
requested review from
Xavrax,
jakub-grzesiowski and
marcin-cebo
as code owners
September 18, 2026 07:25
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
* 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>
KGronek-Pubnub
requested review from
kazydek and
techwritermat
as code owners
September 22, 2026 11:02
techwritermat
approved these changes
Sep 22, 2026
Contributor
Author
|
@pubnub-release-bot release as v10.0.0 |
Contributor
|
🚀 Release successfully completed 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 oldUsersPermissionsandUserPatternsPermissionsGrant methods.