Skip to content

Add precomputed assignment fixtures#12

Draft
leoromanovsky wants to merge 1 commit into
mainfrom
leo.romanovsky/precomputed-flutter-fixtures
Draft

Add precomputed assignment fixtures#12
leoromanovsky wants to merge 1 commit into
mainfrom
leo.romanovsky/precomputed-flutter-fixtures

Conversation

@leoromanovsky
Copy link
Copy Markdown
Collaborator

Motivation

Flutter and other precompute-based clients need shared fixtures that validate the /precompute-assignments response shape and the SDK side effects that happen after local typed evaluation. The existing fixtures cover UFC evaluator behavior, but not the client-side precomputed assignment contract used by mobile and browser SDKs.

Changes

This adds a new precomputed/ fixture area with documentation and two initial cases. The cases cover successful typed assignments for boolean, string, integer, float, and object values, plus exposure/flagevaluation emission counts. They also cover doLog: false, unknown variation isolation, type mismatch defaults, and missing-flag defaults.

Decisions

The precomputed fixtures are separate from evaluation-cases/ because they validate a different contract: client SDKs consume an already-evaluated assignment payload instead of evaluating UFC locally. Each case includes context, precompute response, typed evaluations, and expected emission counts so downstream SDKs can run deterministic tests without Datadog credentials.

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