Edit entry metadata GUI (from Upload page)
This should be a single dialog.
The edits include: comment, references, and datasets.
Users can edit either all entries in an upload or a selected few entries (e.g. by id). (Later we might want to execute the same edits from another page and allow to edit entries by query)
Since you edit potentially many entries and each entry can have different values, the entries that a user edits might already have different values for comment, references, or datasets. So it is unavoidable that the user might change data, she cannot see. Therefore, the GUI has to clarify to the user that
- she is overriding existing comments with the new one
- she is either adding references or replacing all the possible existing references
- she is either adding datasets or replacing all existing datasets
To show some existing values (e.g. to have something to remove/replace), values could be taken from one example entry. The assumption here is that in many cases all entries will have the same value.
In the old system, the user was implicitly creating datasets. Ideally, we would do this more explicit. Similar to the invite user dialog, we could have a create dataset dialog. When you select a dataset, the user should be presented with all "her" datasets. "Her" meaning datasets that she created.
Related to the edit dialog:
-
When changing the name of an upload, the upload edit API should be used and the deprecated PUT uploads/{upload_id}/metadata
should be removed from the API. -
Under publish we need a lift embargo button for published uploads that have embargo_length > 0
-
The EditMembersDialog
sources should be moved tosrc/components/uploads
-
As long as we only offer the EditUserMetadataDialog
only for the UploadPage, we should also move it tosrc/components/uploads