Skip to content

data sync - #498

Merged
mohitpubnub merged 62 commits into
masterfrom
CLEN-3438
Sep 8, 2026
Merged

data sync#498
mohitpubnub merged 62 commits into
masterfrom
CLEN-3438

Conversation

@mohitpubnub

@mohitpubnub mohitpubnub commented May 22, 2026

Copy link
Copy Markdown
Contributor

feat(dataSync): Support for dataSync feature.

Added dataSync feature support.

fix(listeners): discard unknown event types

No listener callback will be triggered for event with unknown event types

fix: all events from presence channels will be categorised as presence event

all events from the presence channels will be categorised as presence event

@coderabbitai

coderabbitai Bot commented May 22, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: 610da6e3-400c-45fd-b35b-32753824b998

📥 Commits

Reviewing files that changed from the base of the PR and between 7837888 and 9f531f3.

📒 Files selected for processing (1)
  • .github/workflows/run-tests.yml

Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review.


📝 Walkthrough

Walkthrough

The test workflow now maps three Data Streams secrets to environment variables. It also reports whether DS_SUBSCRIBE_KEY is set before tests run.

Changes

Data Streams workflow configuration

Layer / File(s) Summary
Configure Data Streams test environment
.github/workflows/run-tests.yml
The workflow adds subscription, publish, and secret key variables from GitHub secrets. It reports whether DS_SUBSCRIBE_KEY is set before tests run.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: 🟡 Moderate · up to 9f531

The workflow adds Data Streams credentials for testing, but they remain available across the entire job, increasing exposure if a dependency or action is compromised. Narrow secret scope before merging.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title directly identifies the main change: adding data sync support. It is concise and related to the pull request objective.
Description check ✅ Passed The description explains dataSync support and listener behavior changes. It is related to the changeset and objectives.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch CLEN-3438

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pubnub-ops-terraform

pubnub-ops-terraform commented May 22, 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.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/CODEOWNERS:
- Line 1: The CODEOWNERS entry currently lists "jguz-pubnub" without the
required @ prefix; update the owner token on the same line so it reads
"`@jguz-pubnub`" (i.e., change the token "jguz-pubnub" to "`@jguz-pubnub`") to
ensure GitHub recognizes the user; locate the line containing "*        
`@mohitpubnub` `@parfeon` jguz-pubnub" and add the missing @ before jguz-pubnub.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: f3bb076d-503f-4e28-b5b9-465bfb055e22

📥 Commits

Reviewing files that changed from the base of the PR and between 0ad7d97 and e82c07a.

⛔ Files ignored due to path filters (64)
  • dist/web/pubnub.js is excluded by !**/dist/**, !dist/** and included by none
  • dist/web/pubnub.min.js is excluded by !**/dist/**, !**/*.min.js, !dist/** and included by none
  • dist/web/pubnub.worker.js is excluded by !**/dist/**, !dist/** and included by none
  • dist/web/pubnub.worker.min.js is excluded by !**/dist/**, !**/*.min.js, !dist/** and included by none
  • lib/core/components/request.js is excluded by !lib/** and included by none
  • lib/core/constants/operations.js is excluded by !lib/** and included by none
  • lib/core/endpoints/data_sync/entity/create.js is excluded by !lib/** and included by none
  • lib/core/endpoints/data_sync/entity/get-all.js is excluded by !lib/** and included by none
  • lib/core/endpoints/data_sync/entity/get.js is excluded by !lib/** and included by none
  • lib/core/endpoints/data_sync/entity/patch.js is excluded by !lib/** and included by none
  • lib/core/endpoints/data_sync/entity/remove.js is excluded by !lib/** and included by none
  • lib/core/endpoints/data_sync/entity/update.js is excluded by !lib/** and included by none
  • lib/core/endpoints/data_sync/relationship/create.js is excluded by !lib/** and included by none
  • lib/core/endpoints/data_sync/relationship/get-all.js is excluded by !lib/** and included by none
  • lib/core/endpoints/data_sync/relationship/get.js is excluded by !lib/** and included by none
  • lib/core/endpoints/data_sync/relationship/patch.js is excluded by !lib/** and included by none
  • lib/core/endpoints/data_sync/relationship/remove.js is excluded by !lib/** and included by none
  • lib/core/endpoints/data_sync/relationship/update.js is excluded by !lib/** and included by none
  • lib/core/pubnub-common.js is excluded by !lib/** and included by none
  • lib/core/pubnub-data-sync.js is excluded by !lib/** and included by none
  • lib/core/types/api/data-sync.js is excluded by !lib/** and included by none
  • lib/core/types/transport-request.js is excluded by !lib/** and included by none
  • lib/errors/pubnub-api-error.js is excluded by !lib/** and included by none
  • lib/transport/middleware.js is excluded by !lib/** and included by none
  • lib/types/index.d.ts is excluded by !lib/** and included by none
  • package-lock.json is excluded by !**/package-lock.json, !package-lock.json and included by none
  • src/core/components/request.ts is excluded by none and included by none
  • src/core/constants/operations.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/channel/create.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/channel/get-all.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/channel/get.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/channel/patch.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/channel/remove.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/channel/update.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/entity/create.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/entity/get-all.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/entity/get.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/entity/patch.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/entity/remove.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/entity/update.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/membership/create.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/membership/get-all.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/membership/get.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/membership/patch.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/membership/remove.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/membership/update.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/relationship/create.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/relationship/get-all.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/relationship/get.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/relationship/patch.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/relationship/remove.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/relationship/update.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/user/create.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/user/get-all.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/user/get.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/user/patch.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/user/remove.ts is excluded by none and included by none
  • src/core/endpoints/data_sync/user/update.ts is excluded by none and included by none
  • src/core/pubnub-common.ts is excluded by none and included by none
  • src/core/pubnub-data-sync.ts is excluded by none and included by none
  • src/core/types/api/data-sync.ts is excluded by none and included by none
  • src/core/types/transport-request.ts is excluded by none and included by none
  • src/errors/pubnub-api-error.ts is excluded by none and included by none
  • src/transport/middleware.ts is excluded by none and included by none
📒 Files selected for processing (1)
  • .github/CODEOWNERS

Comment thread .github/CODEOWNERS Outdated
@mohitpubnub
mohitpubnub marked this pull request as ready for review June 25, 2026 08:33
Mohit Tejani and others added 9 commits July 10, 2026 14:57
…y not typinf domain keywords during parameter property inputs,

update method name conventions to align with existing methods.
update parse token to parse dataSync related permissions and projection definitions details.
added more patch operation variants which are supported.
@mohitpubnub
mohitpubnub requested a review from parfeon September 7, 2026 18:49

@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!

@mohitpubnub
mohitpubnub requested a review from parfeon September 8, 2026 06:40
@mohitpubnub mohitpubnub added status: done This issue is considered resolved. javascript labels Sep 8, 2026

@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!

@mohitpubnub
mohitpubnub requested a review from parfeon September 8, 2026 16:07

@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!

@mohitpubnub

Copy link
Copy Markdown
Contributor Author

@pubnub-release-bot release as v13.0.0

@mohitpubnub
mohitpubnub merged commit 10f84a2 into master Sep 8, 2026
10 checks passed
@mohitpubnub
mohitpubnub deleted the CLEN-3438 branch September 8, 2026 16:46
@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

status: done This issue is considered resolved.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants