Skip to content

feat: Surface engine evaluation reason on flags - #411

Merged
khvn26 merged 1 commit into
mainfrom
feat/surface-evaluation-reason
Aug 7, 2026
Merged

feat: Surface engine evaluation reason on flags#411
khvn26 merged 1 commit into
mainfrom
feat/surface-evaluation-reason

Conversation

@khvn26

@khvn26 khvn26 commented Aug 6, 2026

Copy link
Copy Markdown
Member

Thanks for submitting a PR! Please check the boxes below:

  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature.
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

Closes #410.

Flags now carry a reason field, patched through from the reason field of /flags and /identities responses. It's read optionally, so the key stays absent against an API that predates it.

How did you test this code?

Added test/reason.test.ts, covering the environment-flags path, the identity path, and omission when the API doesn't return a reason.

@khvn26
khvn26 requested a review from a team as a code owner August 6, 2026 18:54
@khvn26
khvn26 requested review from talissoncosta and removed request for a team August 6, 2026 18:54
@khvn26 khvn26 changed the title feat: Surface engine evaluation reason on flags feat: Surface engine evaluation reason on flag Aug 7, 2026
@khvn26 khvn26 changed the title feat: Surface engine evaluation reason on flag feat: Surface engine evaluation reason on flags Aug 7, 2026
@khvn26 khvn26 closed this Aug 7, 2026
@khvn26 khvn26 reopened this Aug 7, 2026
@khvn26
khvn26 merged commit ad513f8 into main Aug 7, 2026
2 checks passed
@khvn26
khvn26 deleted the feat/surface-evaluation-reason branch August 7, 2026 10:04
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.

Surface engine reasons from the SDK API requests

4 participants