Skip to content

Conversation

@cwaldren-ld
Copy link
Contributor

@cwaldren-ld cwaldren-ld commented Jul 12, 2023

Adds bucketing logic to be used in evaluation engine.

Buckets are computed based on a hash value comprised of context attributes and prefixes derived from flag rules.

@cwaldren-ld cwaldren-ld marked this pull request as ready for review July 12, 2023 20:33
@cwaldren-ld cwaldren-ld requested review from a team and kinyoklion July 12, 2023 20:33
@cwaldren-ld cwaldren-ld changed the title feat: add bucketing logic feat: context bucketing logic Jul 12, 2023

tl::expected<std::pair<ContextHashValue, RolloutKindLookup>, Error> Bucket(
Context const& context,
AttributeReference const& by_attr,
Copy link
Member

Choose a reason for hiding this comment

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

I assume this is handled elsewhere, maybe in parsing, but when bucketBy is omitted entirely it is also "key".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, it's in the parser.

@cwaldren-ld cwaldren-ld merged commit 91c3d48 into evaluator Jul 13, 2023
@cwaldren-ld cwaldren-ld deleted the cw/bucketing branch July 13, 2023 19:29
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