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

IQSS/9431-support checksum alg in direct uploads #9482

Merged
merged 13 commits into from
Jun 20, 2023

Conversation

qqmyers
Copy link
Member

@qqmyers qqmyers commented Mar 28, 2023

What this PR does / why we need it:This PR addresses in two ways:

  • it adds a new API endpoint to retrieve the name of the configured fixity algorithm, and
  • it updates the direct upload javascript to use that API and then use the specified algorithm for direct uploads via the normal UI. (not the dvwebloader which is in a separate repo).

Which issue(s) this PR closes:

Closes #9431

Special notes for your reviewer: fairly straight forward, just wasn't implemented (support for direct upload may predate the multiple algorithm implementation?). Also include minor code cleanup/recommended fixes from my IDE in the direct upload javascript.

Suggestions on how to test this: Do direct upload via the UI with various fixity algorithms specified and assure that those uploads use the correct algorithm. Try the new api/files/fixityAlgorithm call and verify it returns the current algorithm.

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:
new api call documented, older admin call to update the alg on existing files also improved.

@qqmyers qqmyers added the Size: 3 A percentage of a sprint. 2.1 hours. label Mar 28, 2023
@qqmyers qqmyers added the GDCC: QDR of interest to QDR label Apr 17, 2023
@coveralls
Copy link

Coverage Status

Coverage: 20.184% (-0.0003%) from 20.184% when pulling 8a9e317 on QualitativeDataRepository:QDR/checksumalg into e4961fe on IQSS:develop.

Copy link
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't test the actual fix but I did check that http://localhost:8080/api/files/fixityAlgorithm responds and improved the docs a bit. I'm approving this.

@kcondon kcondon self-assigned this Jun 20, 2023
@kcondon kcondon merged commit 8a293c9 into IQSS:develop Jun 20, 2023
@pdurbin pdurbin added this to the 5.14 milestone Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GDCC: QDR of interest to QDR Size: 3 A percentage of a sprint. 2.1 hours.
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Direct upload in the UI doesn't follow :FileFixityChecksumAlgorithm
4 participants