Repository navigation
Conversation
An FDv2 partial payload now notifies change listeners only for keys that are new or whose data changed. Identical data does not notify. Generated-by: termag
…services Add flag change listener commands to the browser and react services. Add the experiment-exposure-change capability to browser, react, and vue. Set the streaming option to match the harness initial connection mode, so that a change listener does not promote polling to streaming. Generated-by: termag
|
@launchdarkly/js-sdk-common size report |
|
@launchdarkly/js-client-sdk-common size report |
|
@launchdarkly/js-client-sdk size report |
| if (changed.length > 0) { | ||
| this.handleFlagChanges(changed, 'init'); | ||
| } | ||
| } else if (type === 'partial') { |
There was a problem hiding this comment.
question: do we have guarantees that flag delivery will send partial update if and only if the flag is updated somehow? Or more conservatively, there may be a reason for the sdk to re-evaluate the flag?
This reverts commit d43e9af. The harness no longer requires that an FDv2 partial payload with identical data gives no notification. Generated-by: termag
Summary
The browser, react, and vue contract test services now support the "experiment exposure change" harness suite. Browser and react get the flag change listener commands and the
flag-change-listenerscapability, the same as vue already has. All three reportexperiment-exposure-change. There is no SDK change. All 9 cases of the suite pass on all three SDKs.Additional context
experiment-exposure-changecapability.main. Identical partial data happens in production: when a context's big segment membership changes, Flag Delivery sends every dependent flag again in anxfer-changespayload at unchanged versions. SDK-3688 keeps that finding.manual. The test services now setstreamingto match the harness initial connection mode, so the polling synchronizer cases keep polling.streaming: falsealone does not work: the SDK turns a configuredstreamingmode intoone-shot. Open question: is the promotion inmanualmode intended?Related tickets
Opened from termag