Skip to content

feat: null resolve variants, free-form reasons, and forgery scenarios - #457

Merged
toddbaert merged 2 commits into
mainfrom
feat/resolve-null-variant
Nov 30, 2026
Merged

toddbaert merged 2 commits into
mainfrom
feat/resolve-null-variant

Conversation

@toddbaert

@toddbaert toddbaert commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Aligns the resolve scenarios with the ADR amendment: null variants and free-form reasons. Also adds forgery coverage.

  • null variant: uses the default variant, or the code default if there is none
  • reasons: reserved-reason scenarios dropped; a variant with DEFAULT or DISABLED keeps its value
  • forgery: a context value shaped like a resolve result is plain data, not a result

Part of open-feature/flagd#2090

@toddbaert
toddbaert requested a review from a team as a code owner November 27, 2026 19:01
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The targeting fixtures and scenarios now expect computed DEFAULT and DISABLED reasons to be retained. They also cover null-variant fallback results and resolve-shaped context data.

Changes: Resolve targeting expectations

Layer / File(s) Summary
Computed reason expectations
flags/custom-ops.json, gherkin/targeting.feature
The fixture is renamed, and scenarios expect computed DEFAULT and DISABLED reasons to be retained. The comments describe reasons as free-form, and the previous scenario about metadata retention for computed reserved reasons is removed.
Null-variant fallback expectations
flags/custom-ops.json, gherkin/targeting.feature
Three fixtures and scenarios cover null variants with configured or code-default fallback values. The scenarios check reasons, error codes, and metadata.
Resolve-shaped context data
gherkin/targeting.feature
Scenarios check that context objects shaped like resolve results remain plain data and produce the default value with an ERROR reason.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related PRs

  • open-feature/flagd-testbed#448: Adds resolve operator scenarios and fixtures that PR #457 extends with null variants, free-form reasons, and resolve-shaped context data.

Suggested reviewers: aepfli, leakonvalinka

Merge Risk: Minimal · up to 5f92e

This change updates the shared test fixtures and scenarios to match the amended resolve behavior. It adds cases for null variants and for context values shaped like resolve results. No merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names three changes that appear in the summaries: null resolve variants (new fixtures), free-form reasons (reserved-reason expectations replaced with DEFAULT/DISABLED retention), and forgery…
Description check Passed The description states that it aligns resolve scenarios with an ADR amendment and covers null variants, free-form reasons, and forgery coverage. Each point matches the file summaries, which describe n…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names three changes that appear in the summaries: null resolve variants (new fixtures), free-form reasons (reserved-reason expectations replaced with DEFAULT/DISABLED retention), and forgery scenarios (context-data checks for forged resolve-result objects). It is specific and single-sentence, though it is a little long at 9 words and uses a conventional-commit prefix.

Full details: Description check

Explanation

The description states that it aligns resolve scenarios with an ADR amendment and covers null variants, free-form reasons, and forgery coverage. Each point matches the file summaries, which describe null-variant fallback cases, computed DEFAULT/DISABLED reasons retained, and forged resolve-result context data.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0e0e3305-fb13-4a07-88b9-2953b3e12d51
Commits

Reviewing files that changed from the base of the PR and between 024b616 and 5f92eb0.

Files selected for processing: 1

  • gherkin/targeting.feature

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@toddbaert toddbaert changed the title feat: null resolve variants and free-form reasons feat: null resolve variants, free-form reasons, and forgery scenarios Nov 27, 2026
@toddbaert
toddbaert merged commit 833c05c into main Nov 30, 2026
5 checks passed
aepfli added a commit that referenced this pull request Nov 30, 2026
Brings in what main added to gherkin/ since this branch was cut: the
@resolve scenarios (#448, #457), the single-argument if (#453), the
int64/uint64 fractional float rows (#456) and the unchanged-flag change
event (#455).

Signed-off-by: Simon Schrottner <[email protected]>
aepfli added a commit that referenced this pull request Dec 1, 2026
Brings in what main added to gherkin/ since this branch was cut: the
@resolve scenarios (#448, #457), the single-argument if (#453), the
int64/uint64 fractional float rows (#456) and the unchanged-flag change
event (#455).

Signed-off-by: Simon Schrottner <[email protected]>
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.

2 participants