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

DANS - Multifile edit #11271

Open
wants to merge 18 commits into
base: develop
Choose a base branch
from

Conversation

qqmyers
Copy link
Member

@qqmyers qqmyers commented Feb 17, 2025

What this PR does / why we need it: Analogous to the mutli-file delete endpoint, this PR adds an API call allowing updates to the metadata of several files at once, for reasons of efficiency with large numbers of files.

Which issue(s) this PR closes:

  • Closes #

Special notes for your reviewer:

Suggestions on how to test this: A new test in DatasetsIT covers the basics. You should be able to add some files, submit a json array of file metadata objects (see example in the native api docs) and see all the requested changes. This should work on a draft version or starting from a published version (where it will create a new draft). Sending in a file id that doesn't exist, or one in a different dataset, or trying to restrict a file that's already restricted, etc. should result in an error (400). Not having edit perms on the dataset should result in 403.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?: included.

Additional documentation:

@coveralls
Copy link

coveralls commented Feb 17, 2025

Coverage Status

coverage: 22.717% (-0.03%) from 22.747%
when pulling 58e5468 on GlobalDataverseCommunityConsortium:DANS-multifile-edit
into d3cba3f on IQSS:develop.

@qqmyers qqmyers added Size: 3 A percentage of a sprint. 2.1 hours. GDCC: DANS related to GDCC work for DANS labels Feb 19, 2025
@qqmyers qqmyers marked this pull request as ready for review February 19, 2025 14:55
qqmyers added a commit to QualitativeDataRepository/dataverse that referenced this pull request Feb 20, 2025
qqmyers added a commit to QualitativeDataRepository/dataverse that referenced this pull request Feb 20, 2025
qqmyers added a commit to QualitativeDataRepository/dataverse that referenced this pull request Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GDCC: DANS related to GDCC work for DANS Size: 3 A percentage of a sprint. 2.1 hours.
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants