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

Stop checking for duplicates in imports #159

Merged
merged 5 commits into from
Jan 27, 2025

Conversation

jessemortenson
Copy link
Contributor

@jessemortenson jessemortenson commented Jan 27, 2025

Status quo data imports always fail if there is one or more duplicate items yielded by the scraper. Ideally scrapes do not emit duplicates, but due to the vagaries of our source sites, it can be time consuming in some cases to root them out. And in many cases the duplicates are identical, so doing extra imports of the same data does not cause harm. In those cases, eliminating the duplicates is actually pretty low priority work. But the fact that the import is halted turns it into high priority work.

This change introduces a runtime flag --allow_duplicates that can be used to change the behavior to warn only on duplicate items.

@jessemortenson jessemortenson merged commit 5907f4c into main Jan 27, 2025
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.

1 participant