Skip to content

feat(destination): optional scope param on getLiveData/buildLiveData#232

Merged
cubehouse merged 1 commit into
mainfrom
feat-getlivedata-scope
Jun 26, 2026
Merged

feat(destination): optional scope param on getLiveData/buildLiveData#232
cubehouse merged 1 commit into
mainfrom
feat-getlivedata-scope

Conversation

@cubehouse

Copy link
Copy Markdown
Member

Adds an optional scope?: ReadonlySet<string> to getLiveData() (final) and buildLiveData(), threaded straight through.

Streaming (push) destinations can pass the published entity ids whose source docs changed this fire, so the build is emit-per-changed-entity instead of a full snapshot. Undefined scope — the default, and every poll/REST destination — builds everything exactly as before; ~50 existing buildLiveData() overrides ignore the new trailing optional param and stay full-snapshot, so no subclass changes.

The collector uses this to restore the legacy .NET push model for Disney and end a park-close data freeze (collector PR linked separately).

  • Param carries only public entity ids — exposes nothing.
  • Contract test added: getLiveData threads its scope through to buildLiveData (and passes undefined when omitted).
  • Full suite green (1247).

🤖 Generated with Claude Code

Adds an optional `scope?: ReadonlySet<string>` to getLiveData() (final) and
buildLiveData(), threaded through unchanged. Lets a streaming (push) destination
build live data for only the entities whose source docs changed this fire
(emit-per-changed-entity) instead of a full-park snapshot. Undefined scope — the
default, and every poll/REST destination — builds everything exactly as before;
~50 existing buildLiveData() overrides ignore the new trailing optional param
and stay full-snapshot, so no subclass changes are needed.

The param carries only public entity ids (no secrets). Contract test added:
getLiveData threads its scope through to buildLiveData (and undefined when
omitted).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KPNw8f4pE63C9hE2Xy4ykt
@cubehouse cubehouse merged commit 302219e into main Jun 26, 2026
4 checks passed
@cubehouse cubehouse deleted the feat-getlivedata-scope branch June 26, 2026 11:22
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.

1 participant