-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
Add Journal to Citation model type #4776
base: main
Are you sure you want to change the base?
Conversation
Add citation type journal which can be either a scholarly publication or trade publication
🔍 Existing Issues For ReviewYour pull request is modifying functions with the following pre-existing issues: 📄 File: cl/citations/utils.py
📄 File: cl/corpus_importer/management/commands/update_casenames_wl_dataset.py (Click to Expand)
Did you find this useful? React with a 👍 or 👎 |
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.
One comment so far. It'd be nice to see a test here too, please, then maybe somebody from the case law team can review?
if len(found_cites) == 0: | ||
logger.info("Unable to parse %s", cite_str) | ||
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.
Isn't this the same as line 141?
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.
yes sorry let me clean this up .
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.
No, I take that back. That’s not what I meant to write. The issue here is that we are correctly finding one citation when we pass in a single string citation, which is expected. However, the problem arises because the function identifies two editions for this citation: one journal and one reporter. We don’t want to arbitrarily choose the first one
Fix tests and implement stricker edition checking
fix refactor variable name
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.
everything looks good
@mlissner looks like we are good to go - but there is a noop migration so I wouldn't merge this without your approval. |
Add Journal as type of citation in the model
We added journals to eyecite, but it turns out many of the parallel citations are are in fact
journals. This distinction can be found in eyecite so it is worth bringing that distinction over
to CL.
This change is needed to resolve #4775.
The alternative was to map journals to specialty reporters - but that did not seem correct.