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: expose prerequisite relations in AllFlags API #463

Merged
merged 5 commits into from
Nov 8, 2024

Conversation

cwaldren-ld
Copy link
Contributor

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

Updates the AllFlags() API to gather and expose prerequisite information for flags.

The prereqs are available via State::Prerequisites(), and are more importantly serialized in the JSON representation of the bootstrap payload.

The implementation strategy was to create a custom IEventProcessor specifically for AllFlags usage. Previously, AllFlags invoked the evaluator with a no-op EventScope, which made event creation a no-op within the eval algorithm.

This change now passes in a PrereqEventRecorder which tracks the top-level prerequisites of each flag.

@cwaldren-ld cwaldren-ld marked this pull request as ready for review October 30, 2024 17:54
@cwaldren-ld cwaldren-ld requested a review from a team as a code owner October 30, 2024 17:54
@cwaldren-ld cwaldren-ld changed the title feat: expose prerequisite relations in AllFlags API [draft] feat: expose prerequisite relations in AllFlags API Nov 1, 2024
@cwaldren-ld cwaldren-ld merged commit 56de5f5 into main Nov 8, 2024
24 checks passed
@cwaldren-ld cwaldren-ld deleted the cw/sdk-701-server-prereqs branch November 8, 2024 22:18
@github-actions github-actions bot mentioned this pull request Nov 8, 2024
cwaldren-ld pushed a commit that referenced this pull request Nov 8, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>launchdarkly-cpp-client: 3.8.1</summary>

##
[3.8.1](launchdarkly-cpp-client-v3.8.0...launchdarkly-cpp-client-v3.8.1)
(2024-11-08)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * launchdarkly-cpp-internal bumped from 0.9.0 to 0.10.0
</details>

<details><summary>launchdarkly-cpp-internal: 0.10.0</summary>

##
[0.10.0](launchdarkly-cpp-internal-v0.9.0...launchdarkly-cpp-internal-v0.10.0)
(2024-11-08)


### Features

* expose prerequisite relations in AllFlags API
([#463](#463))
([56de5f5](56de5f5))
</details>

<details><summary>launchdarkly-cpp-server: 3.8.0</summary>

##
[3.8.0](launchdarkly-cpp-server-v3.7.0...launchdarkly-cpp-server-v3.8.0)
(2024-11-08)


### Features

* expose prerequisite relations in AllFlags API
([#463](#463))
([56de5f5](56de5f5))


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * launchdarkly-cpp-internal bumped from 0.9.0 to 0.10.0
</details>

<details><summary>launchdarkly-cpp-server-redis-source: 2.1.16</summary>

##
[2.1.16](launchdarkly-cpp-server-redis-source-v2.1.15...launchdarkly-cpp-server-redis-source-v2.1.16)
(2024-11-08)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * launchdarkly-cpp-server bumped from 3.7.0 to 3.8.0
</details>

---
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