Open Don-Isdale opened 6 years ago
Editing of dataset values : meta and namespace :
There is currently an edit option in the left panel Datasets : Datasets : change name of block. We could add an option to open an edit dialog from there, or alternatively we could edit in-situ in the right panel : Dataset (components/panel/manage-dataset.hbs).
add .namespace to the display (right panel : Dataset) (as mentioned in comments above)
edit meta using a json editor, e.g. https://github.com/offirgolan/ember-cli-jsoneditor https://github.com/nucleartide/ember-json-editor https://github.com/Glavin001/ember-jsoneditor (etc ... that is just the first 3 from a quick good google search)
add an API for updating those 2 attributes, given a dataset ID and the new value.
meta json editor : use the ownership information (referring to the Public / Mine filters in the explorer as an example) to disable editing a dataset or block not owned by the logged-in user, to avoid being logged out by the API. This was done by kieranongh in b988cc6 and c5b462e The above comment (14Jan) was done by kieranongh in these commits : * 2a423d9 Make editor read-only * 84aa308 Set editor in panel to View only * 4e5d446 Updated package.json for modal * 1724981 Include modal library, put JSON editor inside modal
* | | 151aa0d Initialise JSON to an empty object, editor didn't like undefined
* | e87fe79 Save JSON to database with buttons
|/
* 64746cd Include a JSON editor for metadata
(from : git log --oneline --abbrev-commit --graph 64746cd^..2a423d9)
From discussion on #dev, 2013Aug13 : gabriel [2:05 PM] ... the Type field displayed in the right panel ... don [2:07 PM] those datasets should all be type : linear ... currently blank ... don [2:09 PM] this might be more informative than type : "tags": [ "90kMarkers" ... gabriel [2:10 PM] i was thinking a type field for the user to know what it is... as it is, there's no clear indication of what is genetic map, what is genome, etc ... we should indicate things like "Genetic map", "Physical genome" etc [2:05 PM] don [2:10 PM] if the blocks of a dataset all had the same namespace, then could show namespace there gabriel 2:11 PM namespace should also be in that panel i think yes