Skip to content

Conversation

@kinyoklion
Copy link
Member

No description provided.

@kinyoklion kinyoklion requested a review from a team July 21, 2023 16:11

Rollout() = default;
Rollout(std::vector<WeightedVariation>);
explicit Rollout(std::vector<WeightedVariation>);
Copy link
Member Author

Choose a reason for hiding this comment

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

To prevent infinite template recursion.

data_model::Flag::Rollout::Kind const& kind) {
switch (kind) {
case Flag::Rollout::Kind::kUnrecognized:
// TODO: Should we be preserving the original string.
Copy link
Member Author

Choose a reason for hiding this comment

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

I imagine all strongly typed SDKs have this problem. So I will check some others. I am not super happy with it. (Though generally I don't like having to serialize, but it doesn't seem like there is any real alternative.)

# Inform the test harness of test service's port.
test_service_port: ${{ env.TEST_SERVICE_PORT }}
extra_params: '-skip-from ./contract-tests/sdk-contract-tests/test-suppressions.txt'
build-test:
Copy link
Member Author

Choose a reason for hiding this comment

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

I changed the build names to it is easier to scan them in the PR checks.

}
WriteMinimal(obj, "seed", rollout.seed);
if (rollout.bucketBy.Valid()) {
obj.emplace("bucketBy", rollout.bucketBy.RedactionName());
Copy link
Contributor

@cwaldren-ld cwaldren-ld Jul 21, 2023

Choose a reason for hiding this comment

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

q: Should we be preserving this even if invalid?

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe?

Copy link
Member Author

Choose a reason for hiding this comment

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

I am fine with preserving it, because here we will have some logical value retained. Probably.

@kinyoklion kinyoklion merged commit 0b29ea2 into server-side Jul 21, 2023
@kinyoklion kinyoklion deleted the rlamb/flag-segment-serialization branch July 21, 2023 18:16
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