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

Deduplicate uuids fetched from sql and handle absent uuids in 999 #983

Merged
merged 1 commit into from
May 15, 2024

Conversation

jgreben
Copy link
Contributor

@jgreben jgreben commented May 14, 2024

We discovered that some records already had 999 fields without subfield I, and the code was just looking for the first 999 field and silently skipping the block when no subfield I was present. This change checks all of the 999 fields for uuids and raises an excepted exception if none are found.

Also de-duplicate any uuids fetched via SQL for updates and deletes.

Copy link
Collaborator

@jermnelson jermnelson left a comment

Choose a reason for hiding this comment

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

Looks good! Small request to optimize regex outside of the for loop.

@jgreben jgreben requested a review from jermnelson May 14, 2024 23:14
@jgreben jgreben marked this pull request as draft May 15, 2024 15:38
@jgreben jgreben marked this pull request as ready for review May 15, 2024 17:31
@jermnelson jermnelson merged commit dca007f into main May 15, 2024
4 checks passed
@jermnelson jermnelson deleted the jgreben-patch-999s branch May 15, 2024 21:33
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.

None yet

3 participants