Skip to content

fix(remoteconfig) Support Rollout realtime when variant value matches default value of parameter#10009

Draft
athiramanu wants to merge 10 commits into
mainfrom
rollout-realtime
Draft

fix(remoteconfig) Support Rollout realtime when variant value matches default value of parameter#10009
athiramanu wants to merge 10 commits into
mainfrom
rollout-realtime

Conversation

@athiramanu
Copy link
Copy Markdown
Contributor

Updated to detect changes in Rollout experiment metadata. This ensures that if a rollout variant or affected parameter keys
change, the associated config keys are correctly identified as changed, even if the parameter values remain the same.

Screencast: http://go/scrcast/NjI4ODYxNjA3NzY1NjA2NHxlNDRiM2Y5Ni1lNg

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 27, 2026

🦋 Changeset detected

Latest commit: d494b44

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@firebase/remote-config Patch
firebase Patch
@firebase/remote-config-compat Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces support for Remote Config rollouts in the realtime handler. It adds the FirebaseRolloutMetadata interface, updates FetchResponse to include rollout metadata, and updates RealtimeHandler to compare rollout metadata and experiment descriptions when identifying changed keys. Unit tests have also been added to cover these changes. The reviewer suggested adding a defensive check in createRolloutsMap to prevent a potential TypeError if affectedParameterKeys is missing or undefined in the server response.

Comment thread packages/remote-config/src/client/realtime_handler.ts Outdated
@athiramanu athiramanu changed the title Rollout realtime fix(remoteconfig) Support Rollout realtime when variant value matches default value of parameter May 27, 2026
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