Skip to content

refac: findValidatedForcedDecision method moved to decision service#730

Merged
zashraf1985 merged 6 commits into
masterfrom
mnoman/ValidateForcedDecisionMove
Jan 14, 2022
Merged

refac: findValidatedForcedDecision method moved to decision service#730
zashraf1985 merged 6 commits into
masterfrom
mnoman/ValidateForcedDecisionMove

Conversation

@mnoman09
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

7 participants