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

New API: Add api end point to move datasets #4405

Closed
kcondon opened this issue Jan 10, 2018 · 4 comments
Closed

New API: Add api end point to move datasets #4405

kcondon opened this issue Jan 10, 2018 · 4 comments
Assignees
Labels
Type: Feature a feature request

Comments

@kcondon
Copy link
Contributor

kcondon commented Jan 10, 2018

We frequently get support requests to move datasets. Adding an API endpoint to do this would be empower end users to do this.

@mheppler
Copy link
Contributor

Related/duplicate of #2226 from 2015-06-01.

@djbrooke
Copy link
Contributor

Questions from backlog grooming:

@kcondon
Copy link
Contributor Author

kcondon commented Jan 10, 2018

Note: we currently move a dataset by updating the owner_id in the dvobject table to be the new parent dv and the indexing the moved dataset:

Move dataset, id=16 to dataverse, id=6:
update dvobject set owner_id=6 where id=16;
Index dataset:
curl http://localhost:8080/api/admin/datasets/16

Note: when moving dataverses (another ticket) you do not need to move their child datasets directly but you do need to reindex them.

@sekmiller sekmiller removed their assignment Feb 1, 2018
sekmiller added a commit that referenced this issue Feb 1, 2018
Also reorganize test file.
@scolapasta scolapasta removed their assignment Feb 5, 2018
@kcondon kcondon self-assigned this Feb 6, 2018
sekmiller added a commit that referenced this issue Feb 7, 2018
sekmiller added a commit that referenced this issue Feb 8, 2018
for when guestbook does not appear in target dataverse
@sekmiller
Copy link
Contributor

Slight change in process for datasets with guestbooks being moved to a dataverse where that guestbook is not available. The user is warned that the guestbook is not in the target dataverse and that she may use 'forceMove=true' to complete the move. The guestbook is then removed from the dataset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature a feature request
Projects
None yet
Development

No branches or pull requests

7 participants