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

fix(decision): Logs produced by the various decision services. #180

Merged
merged 3 commits into from
Nov 14, 2019

Conversation

mikeproeng37
Copy link
Contributor

Summary

  • Fixes where and how we log various messages during the decision making process:
    1. Gets rid of the No decision made error and instead returns the decision and err of the last decision maker
    1. Logs debug messages in both feature experiment service as well as rollout service for clarity
    1. Only logs (debug) bucketing ID if it is different from the user ID
    1. Refactored the rollout_service_test to use suites

Tests

  • Unit

@@ -50,7 +50,8 @@ func (f CompositeFeatureService) GetDecision(decisionContext FeatureDecisionCont
if err != nil {
cfLogger.Debug(fmt.Sprintf("%v", err))
}
if featureDecision.Variation != nil && err == nil {

if featureDecision.Variation != nil && featureDecision.Variation.FeatureEnabled && err == nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems wrong - why only return the decision if the feature is enabled?

@mikeproeng37 mikeproeng37 removed their assignment Nov 14, 2019
@mikeproeng37 mikeproeng37 requested review from pawels-optimizely and removed request for mjc1283 November 14, 2019 17:42
@mikeproeng37 mikeproeng37 merged commit b1b3e98 into master Nov 14, 2019
@mikeproeng37 mikeproeng37 deleted the mng/fix-bucketing-logs branch November 14, 2019 19:36
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