Open arielsvn opened 4 years ago
I think the lightest lift would be adding another clause to to the useExperimentDataset
to not delete until the dataset is no longer downloadable.
components/DownloadExperiment.js:60
if (refreshedDataset.is_processed && !refreshedDataset.is_downloadable) {
setDatasetToLocalStorage({ ...emptyDataset });
} else if (!dataset.id) {
setDatasetToLocalStorage({ ...refreshedDataset });
}
And then we can do whatever with that information in the ProcessingExperiment
component to show that it is done and can be downloaded from /datasets/dataset-id-number since it only displays with the entire dataset.
Following up discussion in https://github.com/AlexsLemonade/refinebio-frontend/pull/886#issuecomment-607388072
This is what I was referring to:
To reproduce you can do:
Since the dataset is already processed we don't show anything to the user.
@dvenprasad should we have a "Dataset Processed" badge too? We could have it link to the dataset page where users can download their dataset.