Skip to content

Conversation

@mikewilli
Copy link
Contributor

Because

  • Cirrus uses continuous enrollment (i.e., enrollment can't end until the experiment does)
  • Jetstream requires an end for enrollment before the experiment ends for analysis
  • We can't set isEnrollmentPaused to true without prematurely ending the experiment in Cirrus context

This commit

  • Adds an actual_enrollment_end_date field to the NimbusExperiment model
  • uses actual_enrollment_end_date for the serialized enrollmentEndDate in API v6

Copy link
Collaborator

@jaredlockhart jaredlockhart left a comment

Choose a reason for hiding this comment

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

Oh yeah, thank you @mikewilli 👍 Can we safely land this first and then make changes to jetstream or do we need to do it the other way around?

Also there's a better pattern for doing this but we'd need to move a bunch of methods around so we can just do it as a followup.

@mikewilli
Copy link
Contributor Author

Yep, it will be safe for Jetstream this way -- the only thing Jetstream will need to change after this is to remove the isEnrollmentPaused check that we added last half, since it's no longer necessary and will break things for Cirrus experiments.

@mikewilli mikewilli added this pull request to the merge queue Nov 2, 2023
Merged via the queue into mozilla:main with commit cf73478 Nov 2, 2023
@mikewilli mikewilli deleted the 9651-api-enrollment-end-date branch November 2, 2023 13:46
jeddai pushed a commit to jeddai/experimenter that referenced this pull request Nov 6, 2023
… or null (mozilla#9656)

Because

- Cirrus uses continuous enrollment (i.e., enrollment can't end until
the experiment does)
- Jetstream requires an end for enrollment before the experiment ends
for analysis
- We can't set `isEnrollmentPaused` to true without prematurely ending
the experiment in Cirrus context

This commit

- Adds an `actual_enrollment_end_date` field to the NimbusExperiment
model
- uses `actual_enrollment_end_date` for the serialized
`enrollmentEndDate` in API v6
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.

2 participants