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

error log message for mismatched accessions is not very helpful #25

Open
graykr opened this issue Jan 8, 2025 · 0 comments
Open

error log message for mismatched accessions is not very helpful #25

graykr opened this issue Jan 8, 2025 · 0 comments
Assignees
Labels
accession record issues related to the accession record error log enhancement issue related to idea to enhance the error log ready to test with aspace

Comments

@graykr
Copy link

graykr commented Jan 8, 2025

For example:

Repository Mismatch Between Resource -- Accession: 336 [ /repositories/3/ ] / [ /repositories/2/accessions/97 ]

This was quite difficult to debug. The number listed is the last component of the record series number, 85/1/336 and the first repository URI is for the American Law Libraries Association Archives (no longer held by UIUC) and the second combines the URI for the ALA Archives repository with the accession's URI. To figure this out, I had to go to https://staff.archivesspace-dev.library.illinois.edu/accessions/97

The error message would be improved if it had more text to explain what it was outputting and also included the Archon id for the collection rather than only the last component of the records series number.

message = "Repository Mismatch Between Resource -- Accession: " +
         arId + " [ " + recordRepoURI + " ] / [ " + accessionURI + " ]\n";

https://github.com/archivesspace/archon-migration/blob/5ab5bc4aed3607a71923ec91e0a515680c361f7b/src/org/nyu/edu/dlts/utils/ASpaceCopyUtil.java#L2287-L2288

message = "Repository Mismatch Between Resource -- Accession (for collection with Archon ID: " + dbId +
         "); Resource Repository URI [ "+ recordRepoURI + " ] / Accession URI [ " + accessionURI + " ]\n";

(arId is just the last component of the record series number (also known as the identifier in Archon) whereas dbId is the number in the URL in Archon)

@graykr graykr added accession record issues related to the accession record error log enhancement issue related to idea to enhance the error log labels Jan 8, 2025
@graykr graykr self-assigned this Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accession record issues related to the accession record error log enhancement issue related to idea to enhance the error log ready to test with aspace
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant