-
Notifications
You must be signed in to change notification settings - Fork 14
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
Refactor getAllExperimentConditions function for proper readability #2171
base: dev
Are you sure you want to change the base?
Conversation
backend/packages/Upgrade/src/api/services/ExperimentAssignmentService.ts
Outdated
Show resolved
Hide resolved
backend/packages/Upgrade/src/api/services/ExperimentAssignmentService.ts
Outdated
Show resolved
Hide resolved
backend/packages/Upgrade/src/api/services/ExperimentAssignmentService.ts
Outdated
Show resolved
Hide resolved
backend/packages/Upgrade/src/api/services/ExperimentAssignmentService.ts
Outdated
Show resolved
Hide resolved
backend/packages/Upgrade/src/api/services/ExperimentAssignmentService.ts
Show resolved
Hide resolved
backend/packages/Upgrade/src/api/services/ExperimentAssignmentService.ts
Outdated
Show resolved
Hide resolved
backend/packages/Upgrade/src/api/services/ExperimentAssignmentService.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you check the logic of allWithinSubjectsSites
and allWithinSubjectsTargets
? It is getting iterated over all filtered experiment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also fix the return type of getAllMonitoredDecisionPointLog
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you fix the return type of getFactorialCondition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
allWithinSubjectsSites and allWithinSubjectsTargets are getting iterated on filtered experiments after processing experiment pools.
filteredExperiments = this.processExperimentPools( filteredExperiments, mergedIndividualAssignment, groupEnrollments, experimentUser );
This PR focus on adding helper functions for getAllExperimentConditions and reduce the complexity of the code. I have also added comments for better understanding.