Skip to content

Comments

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

Merged
kcondon merged 2 commits intoIQSS:developfrom
QualitativeDataRepository:IQSS/7817_compare_against_orig_in_replace
Apr 23, 2021
Merged

Compare against mimetype of orig file in replace (if ingested)#7818
kcondon merged 2 commits intoIQSS:developfrom
QualitativeDataRepository:IQSS/7817_compare_against_orig_in_replace

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
@djbrooke djbrooke added this to the 5.5 milestone Apr 27, 2021
@qqmyers qqmyers deleted the IQSS/7817_compare_against_orig_in_replace branch May 17, 2024 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect warning when replacing unpublished, ingested .xlsx

4 participants