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

refac: findValidatedForcedDecision method moved to decision service #730

Merged
merged 6 commits into from
Jan 14, 2022

Conversation

mnoman09
Copy link
Contributor

@mnoman09 mnoman09 commented Dec 22, 2021

Summary

  • Moves findValidatedForcedDecision method to decision service as validatedForcedDecision

Test plan

All unit test and FSC tests should pass.

reasons: decideReasons,
}
}

Copy link
Contributor

Choose a reason for hiding this comment

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

import logger on line 16 and get_logger on line 35 can be removed.

@coveralls
Copy link

coveralls commented Dec 23, 2021

Coverage Status

Coverage increased (+0.001%) to 97.184% when pulling 712f7ff on mnoman/ValidateForcedDecisionMove into 7d058bf on master.

@msohailhussain msohailhussain changed the title refac: Moves findValidatedForcedDecision method to decision service to remove cyclic dependency refac: findValidatedForcedDecision method moved to decision service Dec 29, 2021
Copy link
Contributor

@msohailhussain msohailhussain left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@jaeopt jaeopt left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@jaeopt jaeopt left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@zashraf1985 zashraf1985 left a comment

Choose a reason for hiding this comment

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

LGTM! with a non binding suggestion.

let variation = null;
let variationKey;
const userId = user.getUserId()
if (config && forcedDecision) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion (non binding): If we move the check for config at the top, we will save a redundant call to getForcedDecision when config is not available.

@zashraf1985 zashraf1985 merged commit a638aae into master Jan 14, 2022
@zashraf1985 zashraf1985 deleted the mnoman/ValidateForcedDecisionMove branch January 14, 2022 18:42
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.

None yet

7 participants