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

SFR-2240: Cleaning up NYPL ingestion process #395

Merged
merged 3 commits into from
Oct 10, 2024
Merged

SFR-2240: Cleaning up NYPL ingestion process #395

merged 3 commits into from
Oct 10, 2024

Conversation

kylevillegas93
Copy link
Contributor

@kylevillegas93 kylevillegas93 commented Oct 9, 2024

Description

  • This change cleans up and refactors the NYPL ingestion process
  • Migrates to snake case as much as possible
  • Removes the NyplApiManager from the CoreProcess as only the NYPLProcess depends on it
  • Adds better error handling

Testing

python main.py -p NYPLProcess -e local -i complete -l 10; make test

@kylevillegas93 kylevillegas93 changed the title SFR-2220: Cleaning up NYPL ingestion process SFR-2240: Cleaning up NYPL ingestion process Oct 10, 2024
elif self.process == 'custom':
self.import_bib_records(start_timestamp=self.ingestPeriod)
else:
logger.warning(f'Unknown NYPL ingesttion process type {self.process}')
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo on the word 'ingestion'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch!

Copy link
Contributor

@mitri-slory mitri-slory left a comment

Choose a reason for hiding this comment

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

This all looks good to me besides one typo I found in a log statement. It's good to go after.

@kylevillegas93 kylevillegas93 merged commit eb3f816 into main Oct 10, 2024
1 check passed
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.

2 participants