Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Conversation

@drichelson
Copy link
Contributor

No description provided.

List<FeatureRequestEvent> prereqEvents = new ArrayList<>();
JsonElement value = evaluate(user, featureStore, prereqEvents);
return new EvalResult(value, prereqEvents);
if (isOn()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

What's this change about?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I moved all flag eval logic into the FeatureFlag class. This enables us to call flag.evaluate() in the client's allFLags() method without additional logic around on/off behavior. Also, from an OO perspective it makes more sense: the object contains the data + the behavior.

@jkodumal
Copy link
Contributor

jkodumal commented Aug 4, 2016

LGTM, but would like to know what that one change was about...

sendFlagRequestEvent(featureKey, user, defaultValue, defaultValue, null);
return defaultValue;
}
if (featureFlag.isOn()) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jkodumal this logic was moved into the FeatureFlag.evaluate method.

@jkodumal
Copy link
Contributor

jkodumal commented Aug 4, 2016

👍

@drichelson drichelson merged commit a7b102a into v2 Aug 4, 2016
@drichelson drichelson deleted the dr/evenMoreV2 branch August 4, 2016 17:28
eli-darkly added a commit that referenced this pull request May 10, 2018
summary events (3): retry event posting once on exception or 5xx error
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants