Skip to content

Conversation

@cwaldren-ld
Copy link
Contributor

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

This PR updates the FlagDetail struct returned by all_flags_detail to contain prerequisite relations for flags.

@cwaldren-ld cwaldren-ld force-pushed the cw/sdk-693-client-prereq-references branch from 354d42a to 245b206 Compare October 18, 2024 23:53
}

let detail = evaluate(store.to_store(), &flag, context, None);
let event_recorder = DirectPrerequisiteRecorder::new(key.clone());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Could save a clone and take a reference, then give it back after we're done.. but seems not worth it.

@cwaldren-ld cwaldren-ld force-pushed the cw/sdk-693-client-prereq-references branch from ab366ee to aeb94ce Compare October 19, 2024 00:04
));
}

#[test]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We didn't have any all_flags_detail tests (that I could find), so added some basic ones here.

@cwaldren-ld cwaldren-ld force-pushed the cw/sdk-693-client-prereq-references branch from 7ba4a7d to 97becaf Compare October 21, 2024 22:40
@cwaldren-ld cwaldren-ld changed the title feat: support prerequisite references in all_flags_detail [draft] feat: support prerequisite relation data in all_flags_detail Oct 21, 2024
@cwaldren-ld cwaldren-ld marked this pull request as ready for review October 21, 2024 22:45
@cwaldren-ld cwaldren-ld requested a review from a team as a code owner October 21, 2024 22:45
@cwaldren-ld cwaldren-ld merged commit d0ad003 into main Oct 24, 2024
6 checks passed
@cwaldren-ld cwaldren-ld deleted the cw/sdk-693-client-prereq-references branch October 24, 2024 22:13
cwaldren-ld pushed a commit that referenced this pull request Oct 25, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.3.0](2.2.1...2.3.0)
(2024-10-24)


### Features

* support prerequisite relation data in all_flags_detail
([#99](#99))
([d0ad003](d0ad003))

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

3 participants