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

Exclusion edge case issue 1404 #2036

Merged
merged 15 commits into from
Nov 8, 2024
Merged

Conversation

RidhamShah
Copy link
Collaborator

@RidhamShah RidhamShah commented Oct 10, 2024

This PR addresses edge cases related to the inclusion and exclusion of Users and Groups already enrolled in an experiment when either a user or a group is added to the exclusion list based on the Assignment Unit and Consistency Rule.

Cases Covered:

  • Group added to the exclusion list:
    • Experiment on Individual Consistency and Individual Assignment Unit:
      • Already enrolled users are not removed.
      • New users will be excluded by the exclusion logic.
    • Experiment on Group Assignment Unit and Individual Consistency:
      • Already enrolled users are not removed.
      • Group enrollment data is removed.
      • New users will be excluded by the exclusion logic.
    • Experiment on Group Assignment Unit and Group Consistency:
      • Already marked users are removed.
      • New users from the group will be excluded by the exclusion logic.
  • User added to the exclusion list:
    • Experiment on Individual Consistency and Individual Assignment Unit:
      • The user is removed.
      • New users will not be excluded.
    • Experiment on Group Assignment Unit and Individual Consistency:
      • The user is excluded.
      • Group enrollment data is removed.
    • Experiment on Group Assignment Unit and Group Consistency:
      • The user is excluded.
      • Group data is removed and the group is excluded.

@Yagnik56 Yagnik56 changed the title Exclusion edge case issuee 1404 Exclusion edge case issue 1404 Oct 10, 2024
@RidhamShah RidhamShah linked an issue Oct 16, 2024 that may be closed by this pull request
@RidhamShah RidhamShah marked this pull request as ready for review October 17, 2024 08:53
@ppratikcr7 ppratikcr7 self-assigned this Oct 22, 2024

// Delete Group Enrollment
if (experimentSegment.experiment.assignmentUnit == ASSIGNMENT_UNIT.GROUP) {
await this.groupEnrollmentRepository.delete({
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why not creating a promise array and pushing this promise in that array?

@danoswaltCL
Copy link
Collaborator

Is this ready? Vivek made comments and then approved, I don't know what that means.

@danoswaltCL danoswaltCL merged commit ec7e559 into dev Nov 8, 2024
14 checks passed
@danoswaltCL danoswaltCL deleted the exclusion-edge-case-issuee-1404 branch November 8, 2024 14: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.

Exclusions Related Discussion: Edge Cases
4 participants