Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for client-side prerequisite events #201

Merged
merged 3 commits into from
Oct 22, 2024

Conversation

cwaldren-ld
Copy link
Contributor

@cwaldren-ld cwaldren-ld commented Oct 14, 2024

This PR updates AllFlagsState to track prerequisite evaluations.

This didn't require modifying the eval module, as it already exposes a PrerequisiteEventRecorder interface with the necessary info.

The AllFlagsState public API allows for fetching a flag's details (FlagState) from the top-level AllFlags object. This struct now has prerequisite information exposed.

Additionally when the AllFlags is marshaled to JSON, it will now contain the prerequisite info for each flag.

@cwaldren-ld cwaldren-ld marked this pull request as ready for review October 18, 2024 20:34
@cwaldren-ld cwaldren-ld requested a review from a team as a code owner October 18, 2024 20:34
@cwaldren-ld cwaldren-ld requested review from kinyoklion and keelerm84 and removed request for kinyoklion October 18, 2024 20:34
@cwaldren-ld cwaldren-ld changed the title feat: Add support for client-side prerequisite events feat: add support for client-side prerequisite events Oct 18, 2024
@@ -67,6 +67,10 @@ type FlagState struct {
// OmitDetails is true if, based on the options passed to AllFlagsState and the flag state, some of the
// metadata can be left out of the JSON representation.
OmitDetails bool

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a new exposed field on the public API, so this PR needs to be a feat.

@cwaldren-ld cwaldren-ld merged commit d9804ec into v7 Oct 22, 2024
19 checks passed
@cwaldren-ld cwaldren-ld deleted the cw/sdk-680-client-prereq-events branch October 22, 2024 21:52
cwaldren-ld pushed a commit that referenced this pull request Oct 23, 2024
🤖 I have created a release *beep* *boop*
---


##
[7.7.0](v7.6.2...v7.7.0)
(2024-10-22)


### Features

* add support for client-side prerequisite events
([#201](#201))
([d9804ec](d9804ec))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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