Repository navigation
feat: assert unchanged flags are not part of the change event payload - #455
Merged
toddbaert merged 2 commits intoNov 26, 2026
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Member
|
Thanks! Since the new step needs a binding in every SDK, could you add a tag (e.g. |
Signed-off-by: Aditya Kumar <[email protected]>
Signed-off-by: Aditya Kumar <[email protected]>
adityakumar027
force-pushed
the
feat/unchanging-flag-428
branch
from
November 26, 2026 20:32
1764cca to
817cbf7
Compare
Contributor
Author
|
@toddbaert Done, thanks! The scenario is now tagged |
toddbaert
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: addedunchanging-flag, same shape aschanging-flag(string variantsfoo/bar, no targeting or metadata), so the/changetoggle in Launchpad still round-trips the file. Launchpad only rewriteschanging-flag, sounchanging-flagstays 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-lintpasses. 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.