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

Compare against mimetype of orig file in replace (if ingested) #7818

Conversation

qqmyers
Copy link
Member

@qqmyers qqmyers commented Apr 22, 2021

What this PR does / why we need it: Updates the replace command to compare the mimetype of the replacement file with the mimetype of the original file (if it exists because of ingest) rather than the type of the generated tabular file.

Which issue(s) this PR closes:

Closes #7817

Special notes for your reviewer:

Suggestions on how to test this: Try to replace an ingested file without using the 'force' parameter (UI or API) and it should work if the original and replacement file are the same type (e.g. csv or .xlsx). Other file types (text, pdf, gif, ...) shouldn't be affected.

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?:

Additional documentation:

@kcondon kcondon self-assigned this Apr 23, 2021
@kcondon kcondon merged commit 3b98994 into IQSS:develop Apr 23, 2021
IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from QA 🔎✅ to Done 🚀 Apr 23, 2021
@djbrooke djbrooke added this to the 5.5 milestone Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Incorrect warning when replacing unpublished, ingested .xlsx
4 participants