Closed jsjiang closed 2 months ago
How to test:
proc-link-checker-update
background job - this may or may not produce desired test datasets as we haven't run the link checker related jobs on ezid-stg for a whilehasIssues
and linkIsBroken
fields for a selected test identifiers.Thanks Jing,
I see that there is code to update these values in OpenSearch, also. I'd be curious how you go about testing an item successfully updates values with the link checker.
Maybe we can do something like:
hasIssues
and linkIsBroken
. I can do this pretty easily.Maybe you can point me toward how to run the link checker on stage where the OpenSearch code is currently running. Is it just a proc- daemon that I can start from cdlsysctl
or what is the best way to go about it? Maybe we can just run it overnight and check the next day.
OK. I've updated 5 items to be set to hasIssues: True
and linkIsBroken: True
which is the opposite of what they were before. It is these items:
ark:/13030/m5ps2hw4
ark:/88122/kxxw0099
ark:/88122/yjlx0083
ark:/13030/qt601312m8
doi:10.25345/C59R4D
These are the things I put in for the DB and opensearch:
_id: "ark:/13030/m5ps2hw4" OR _id:"ark:/88122/kxxw0099" OR _id:"ark:/88122/yjlx0083" OR _id: "ark:/13030/qt601312m8" OR _id:"doi:10.25345/C59R4D"
IN ("doi:10.25345/C59R4D", "ark:/13030/m5ps2hw4", "ark:/88122/kxxw0099", "ark:/88122/yjlx0083", "ark:/13030/qt601312m8")
Then after we run the linkChecker it should revert these?
The linkchecker ran last night and tool the steps that re-checked the failures and reset the items with linkIsBroken=1
to linkIsBroken=0
in both the database and in OpenSearch. When it re-checks broken links it also re-checks the hasIssues
flag and reset it. (We tried one with just hasIssues=1
and the link checker doesn't seem to recheck these and neither changed in the DB or in OpenSearch).
I believe we can call this working.
Test passed as part of release https://github.com/CDLUC3/ezid/releases/tag/v3.2.19
The
link checker update
job updates thehasIssues
andlinkIsBroken
fields of an identifier in theezidapp_searchIdentifier
table. Make sure these updates are reflected in the OpenSearch index as well.