Skip to content

Conversation

@tanderson-ld
Copy link
Contributor

@tanderson-ld tanderson-ld commented Feb 2, 2026

Requirements

  • I have added test coverage for new or changed functionality
  • I have followed the repository's pull request submission guidelines
  • I have validated my changes against all supported platform versions

Note

Medium Risk
Introduces a new FDv2 synchronizer and queues/async delivery behavior; while test-focused, correctness of change set ordering/versioning can affect client initialization and update semantics in tests.

Overview
Adds TestDataV2, a new in-memory, dynamically updatable test data provider that implements the FDv2 Synchronizer API, emitting an initial full ChangeSet followed by incremental partial change sets for update()/delete(), and supporting simulated status events plus an awaitPropagation helper.

Refactors TestData.FlagBuilder to be reusable by TestDataV2 (package-visible constructors and full copy of sampling/migration fields), and tightens TestDataTest expectations around flag versioning; adds comprehensive TestDataV2Test coverage for initialization, updates, deletes, and basic flag config behaviors.

Written by Cursor Bugbot for commit 818327a. This will update automatically on new commits. Configure here.

@tanderson-ld tanderson-ld requested a review from a team as a code owner February 2, 2026 16:10
* @param condition condition to poll; when it returns true, this method returns
* @throws InterruptedException if the current thread is interrupted while waiting
* @throws AssertionError if the condition does not become true before the timeout
*/
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For reviewers: Not sure if these helpers are really warranted, but it seems to make usability better.

@tanderson-ld tanderson-ld changed the title chore: update TestData to implement Synchronizer chore: adds TestDataV2 to implement Synchronizer Feb 2, 2026
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

case INITIALIZING:
default:
// VALID and INITIALIZING do not map to FDv2 status events (same as DataSourceSynchronizerAdapter)
statusResult = null;
Copy link
Member

@kinyoklion kinyoklion Feb 3, 2026

Choose a reason for hiding this comment

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

For valid do we need to have a "none" changeset push?

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.

3 participants