-
Notifications
You must be signed in to change notification settings - Fork 4
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
Feature/edan verifier utility #531
base: develop
Are you sure you want to change the base?
Conversation
* WIP commit for EDAN Verifier utility * cleaned out legacy code prior to refactor * limiting returned EDAN records to 1, otherwise throw error * fix issues with ARK ids not being outputted if also set to preferred * added basic determination of DPO vs. EDAN subject sources * support for name comparisons * support for updating Packrat units from EDAN
* using WorkflowEngine for running the EDAN verifier (WorkflowVerifier) * full support of query params for configuring verifier (accepts: objectId, limit, returnFile, detailedLogs) * HTTP response includes hyperlink for downloading the report * added 'Name' property to WorkflowReport to assist in filename creation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your first PR! What a great milestone!
- The changes to server/tests/jest.config.js must not be committed. Doing so will disable regression tests from being run, by default, by other users, and by GitHub CI.
- We don't add server/db/sql/models/Packrat.mwb.bak to our source tree.
- server/utils/verifiers/VerifierBase.ts's replacePackratUnit() is doing the wrong thing. Instead of updating Unit records, it needs to update Subject.idUnit (i.e point the subject at the right unit).
- I've asked a number of inline questions/provided feedback.
} | ||
|
||
// if identifier exists in our database (value & type) then store it | ||
const identifiers: DBAPI.Identifier[] | null = await DBAPI.Identifier.fetchFromIdentifierValue(content); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused by the intention of this code. fetchFromIdentifierValue
is going to get all identifiers that match the specified value ... this may include matches for identifiers with the same value, but applied to other system objects, and/or of random identifier types. In other words, identifiers are not guaranteed to have a unique value....
…ithsonian/dpo-packrat into feature/EDAN-verifier-utility
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove server/db/sql/models/Packrat.mwb.bak
from this PR.
008e5d6
to
aa7535c
Compare
Creation of EDAN verifier utility.