-
Notifications
You must be signed in to change notification settings - Fork 6
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
918 ability to freeze datasets or version #941
Conversation
…aset and freeze dataset
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor UI comments:
-
When looking at a version, the pill with the version number next to the title pushes the tabs to the right. Try switching between current and a version and look at the tabs.
-
When loading the dataset page, we always show the notification showing with version we are viewing. So by default it shows "Viewing dataset version current unreleased." Do we always want to pop this up? (Testing on the delete branch, maybe it's just there).
-
Want to try and remove the gray lines below every version? You have enough white space. Not sure it is needed.
-
When looking at a specific version there is a little arrow that shows up to the right of the tabs. It's like the tabs think there is one more tab to the right.
|
Good catch. I fixed this bug. Now when it's latest version, I'm not showing any notification. |
This looks good to me. @longshuicy you might want to resolve the conflicts. You can do it before emerging too. You might get some more conflicts :) |
* fix bug with get/delete a specific version of dataset; frontend delete button is working * dataset versioning styling * public dataset versioning styling * delete thumbnail and vis endpoint considering versioning * might be a bug deleting thumbnails * switch the order * write utility funcitons to help manage delete * backend delete is configured * frontend delete wired in correctly * delete modal color and prompt updated * add docstrings * add last modified * add specific pytest * add visualization tests to dataset versioning * add more pytest after deleting the latest dataset
* first draft of the versioning documentation * update documentation * wording
A question about datasets and the dataset status. I created a dataset and went through a few versions, each one adding file, metadata etc. I took the latest version and I made it 'public.' The latest version is visible on the public page, but none of the previous versions. It also looks like once a dataset is frozen, its no longer able to be shared or have its status changed. Does this seem like something that we might want users to be able to do? I could imagine a case where someone might decide they want to show previous versions to users. Or not? |
Something else I noticed. I have a dataset with 5 versions plus latest. For the latest, I changed the dataset from 'PUBLIC' to 'PRIVATE.' On the 'public' page, version 5 is no longer visible. Should an older version show up on the 'public' page if it was made public, but a later version is not? |
I created an issue: #1110 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marking approved. Made a comment about public datasets and previous versions that will be resolved in a later issue, so this one is good to go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me
This PR includes features to "release" a dataset. Once dataset is released, the dataset document will be moved to a new collection "freeze_datasets" with additional fields: frozen flag to indicate released; a version number.
Then the "dataset" and "freeze_datasets" collection are joined using mongo view to provide the combined list of datasets for client/frontend consumption. Similar concept with file, folder, metadata, visualization and thumbnails. Details please refer to the diagrams.
Backend change:
frozen_version_num
fieldFrontend change see screenshots:
Todos:
- Visualization- Thumbnail- Public datasets