-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
refactor(scrapers.tasks.update_from_text): reuse make_citation in update_from_text #4913
Conversation
…ate_from_text Solves #4903 - Move make_citation from cl_scrape_opinions into scrapers.utils - Move citation_is_duplicated from cl_back_scrape_citations into scrapers.utils - Delete scraped_citation_object_is_valid, now we rely on eyecite, used by make_citation - Refactor test site to account for changes
🔍 Existing Issues For ReviewYour pull request is modifying functions with the following pre-existing issues: 📄 File: cl/scrapers/tasks.py
Did you find this useful? React with a 👍 or 👎 |
if not citation or citation_is_duplicated(citation, data): | ||
continue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make more sense to throw the error logging here - and not pass court id into make citation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's awkward to pass the court_id only for logging, but if we didn't do it inside this function we would have to make an outside logger.error
call everytime make_citation
returns None
…as not present Also, fix dictionary modification while iterating on update_document_from_text
I fixed the tests; and added a call to Please give it another check @flooie UPDATE: we have already done all the steps needed before merging it:
So that it doesn't break anything
|
…oject/courtlistener into extract_from_text_uses_eyecite
…pendencies Update freelawproject dependencies
…pendencies Update freelawproject dependencies
@grossir this looks great - and will be great to get these errors gone. |
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
Solves #4903