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

Feature: Experiment Archive State #987

Merged
merged 23 commits into from
Oct 26, 2023

Conversation

ppratikcr7
Copy link
Collaborator

This PR contains Archived status feature.

@mfugate1 mfugate1 enabled auto-merge (squash) August 28, 2023 13:16
@ppratikcr7 ppratikcr7 disabled auto-merge August 28, 2023 14:01
@mfugate1 mfugate1 enabled auto-merge (squash) August 28, 2023 14:01
@danoswaltCL
Copy link
Collaborator

This PR contains Archived status feature.

Can we get some more technical overview of the changes that were made to aid review and know how to test? If there is any finalized document that goes over the actual requirements that were decided on after all the years of discussion, can someone point to it?

@ppratikcr7
Copy link
Collaborator Author

ppratikcr7 commented Aug 31, 2023

This PR contains Archived status feature.

Can we get some more technical overview of the changes that were made to aid review and know how to test? If there is any finalized document that goes over the actual requirements that were decided on after all the years of discussion, can someone point to it?

Sure. So we do have a document.

Requirements:

  1. The archived experiments can't be unarchived or changed to a different status.
  2. The experiment will be in read-only mode after being in archived state.
  3. The logs wont get stored for archived experiments, even for the user earlier enrolled in it and had some logs.
  4. The logs gets stored in a new Archived table as a backup.
  5. While updating state to Archived state, we get a confirmation checkbox, until it's checked, the 'Save' button would be disable.
  6. The archived experiments wont be shown on home dashboard experiment list view while the filter is 'All' or any other option except 'Status'. If we select 'Status' option, then we can filter all experiments including 'Archived' using a mat-auto complete search input box.
  7. We cannot directly change state from enrolling to archived. Archived state is allowed only after enrolling state is changed to enrollmentComplete state.

213239091-10d9c46f-04d5-4d27-b08e-9f77299a42f9
Screenshot 2023-08-31 at 2 46 44 PM
Screenshot 2023-08-31 at 2 48 31 PM
Screenshot 2023-08-31 at 2 48 54 PM

@amurphy-cl
Copy link
Collaborator

Thanks Pratik, that all sounds exactly right.

Copy link
Collaborator

@bcb37 bcb37 left a comment

Choose a reason for hiding this comment

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

I've gone over this and it all looks good to me.

@ppratikcr7 ppratikcr7 disabled auto-merge September 1, 2023 08:37
@ppratikcr7
Copy link
Collaborator Author

ppratikcr7 commented Sep 1, 2023

I've gone over this and it all looks good to me.

Thanks @bcb37 for the review, you can also approve this and it would't auto merge as I have disabled the option as Dan had also pointed out in slack. We can wait for multiple approvals before merging if needed.

@danoswaltCL
Copy link
Collaborator

Just a few small comments from me, there's just the one spot in experiment-list with the filters that feels like it could be refactored to be simpler, but as I looked at it I didn't have any good quick suggestions. Chatgpt also didn't give me any good suggestions.

Copy link
Collaborator

@VivekFitkariwala VivekFitkariwala left a comment

Choose a reason for hiding this comment

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

The frontend doesn't need to know that we are storing the query result of the archive state in a different way. We can use the same endpoint to serve the result.

@RidhamShah
Copy link
Collaborator

RidhamShah commented Sep 7, 2023

@VivekFitkariwala Yes, we can merge analysis and achieve branch by giving one more variable to identify which call is sent. I think we made it a different API call because service file functions were very diffenent but now can be manage by if-else.

@VivekFitkariwala
Copy link
Collaborator

The changes look good.

@Yagnik56 Yagnik56 linked an issue Oct 11, 2023 that may be closed by this pull request
@danoswaltCL danoswaltCL merged commit 58f1e63 into dev Oct 26, 2023
8 checks passed
@danoswaltCL danoswaltCL deleted the feature/archive-status-backend-issue30 branch October 26, 2023 17:46
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.

Add Archive status for experiments
6 participants