Skip to content

feat: assert unchanged flags are not part of the change event payload - #455

Merged
toddbaert merged 2 commits into
open-feature:mainfrom
adityakumar027:feat/unchanging-flag-428
Nov 26, 2026
Merged

toddbaert merged 2 commits into
open-feature:mainfrom
adityakumar027:feat/unchanging-flag-428

Conversation

@adityakumar027

Copy link
Copy Markdown
Contributor

Closes #428

Summary

The "Flag change event" scenario only checks that the modified flag is in the change event payload, so a provider that reports every flag key on every change still passes.

Changes:

  • flags/changing-flag.json: added unchanging-flag, same shape as changing-flag (string variants foo/bar, no targeting or metadata), so the /change toggle in Launchpad still round-trips the file. Launchpad only rewrites changing-flag, so unchanging-flag stays as is.
  • gherkin/events.feature: new separate scenario "Unchanged flag is not part of the change event payload" using the step from the issue: Then the flag with key "unchanging-flag" should not be part of the event payload. It is a separate scenario so SDKs can exclude it until they implement the step. The step should fail on an empty or missing changed-flags list.

npm run gherkin-lint passes. As this repo has no test runner, the scenario itself is run in the SDK repos.

AI disclosure: prepared with AI assistance under the account owner's direction; I own and answer for this PR.

@adityakumar027
adityakumar027 requested a review from a team as a code owner November 26, 2026 08:02
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

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: f54bab26-7b99-4898-8e00-9ff740527654
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@toddbaert

Copy link
Copy Markdown
Member

Thanks! Since the new step needs a binding in every SDK, could you add a tag (e.g. @change-event-excludes-unchanged) and document it in agents.md, so SDKs can opt out until they implement it? I'll align #454 to use the same step and tag.

@adityakumar027
adityakumar027 force-pushed the feat/unchanging-flag-428 branch from 1764cca to 817cbf7 Compare November 26, 2026 20:32
@adityakumar027

Copy link
Copy Markdown
Contributor Author

@toddbaert Done, thanks! The scenario is now tagged @change-event-excludes-unchanged, and the tag is in the capability table and the opt-out examples in agents.md. Rebased on main too.

@toddbaert
toddbaert merged commit 1ad32ee into open-feature:main Nov 26, 2026
4 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.

Assert unchanged flags are not part of the change event payload

2 participants