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

Refactor getAllExperimentConditions function for proper readability #2171

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

ppratikcr7
Copy link
Collaborator

This PR focus on adding helper functions for getAllExperimentConditions and reduce the complexity of the code. I have also added comments for better understanding.

@ppratikcr7 ppratikcr7 self-assigned this Jan 21, 2025
@ppratikcr7 ppratikcr7 changed the title Optimise getAllExperimentConditions function Refactor getAllExperimentConditions function for proper readability Jan 23, 2025
Copy link
Collaborator

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.

Copy link
Collaborator

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?

Copy link
Collaborator

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

Copy link
Collaborator Author

@ppratikcr7 ppratikcr7 Jan 30, 2025

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 );

@ppratikcr7 ppratikcr7 linked an issue Jan 30, 2025 that may be closed by this pull request
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.

Refactor getAllExperimentConditions function
2 participants