-
Notifications
You must be signed in to change notification settings - Fork 25
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
Bulk edit file tags and description via update_file_metadata() #49
Comments
I've never encountered this use case, but it sounds helpful for your scenario.
|
I'm personally fine to have functionality that's going to be used by a small number of people, and my approach would be to aim to have the client mirror the the native API in its abilities pretty closely, A different approach would be to make it easier to construct native API queries from scratch using the client so that we don't have to code everything but it's more readily accessible. I don't know how hard that would be, but when I wrote API functionality (for downloading .zip files) locally it required quite a bit of code duplication from dataverse library. |
In open source we scratch our own itches and it sounds to me like @adam3smith has one. 😄 Also, this is a real use case I've talked to @sbarbosadataverse about, perhaps when I gave an API talk a few months back: "As a user or curator, I have a list of files on dataverse and want to add tags and descriptions from a spreadsheet to them." |
FWIW, for now I have implemented this in our local curation package -- it works pretty great (there's a bulk function further down). The other thing I noticed while writing this is that existing file-handling functions like |
get_file_metadata()
functions
a suggested code or documentation change, improvement to the code, or feature request:
User story: As a user or curator, I have a list of files on dataverse and want to add tags and descriptions from a spreadsheet to them.
While it may be(?) possible to update file metadata as part of
update_dataset
, that's quite messy (and I'm not 100% sure it's even possible -- couldn't get it to work). The native API offers a nice set of functions for this, that I think we should implement using the above-noted functions:http://guides.dataverse.org/en/latest/api/native-api.html#updating-file-metadata
Thoughts?
The text was updated successfully, but these errors were encountered: