-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
Store NO_MATCH_RESOURCE citations #4920
Comments
That table looks about right to me. I think we'll want an index on some of the fields so that lookups in the table can be fast, and I guess we'll want a unique_together on the opinion and citation fields? I'm not sure that your second step is the right approach. Like, it might be better when adding citations just to flag the ones that are no longer Unmatched, and to have a second script that comes around to re-run the citation finder on those opinions. One thing I don't like about your approach is that if you add A possibly-better way to do this is to add a column to the
Then, we could have a second script we ran sometimes that looks for that column having a status of |
Solves #4920 - Add new model UnmatchedCitation on citations app - refactor cl.search.models.Citation to create a BaseCitation abstract model to reuse on the UnmatchedCitation model - updates cl.citations.tasks.store_opinion_citations_and_update_parentheticals to handle storing and updating unmatched citations - updates cl.search.signals to update UnmatchedCitation status when a new Citation is saved - add tests
Some notes on changes from the proposed model while developing
both of these methods trigger the |
Solves #4920 - Add new model UnmatchedCitation on citations app - refactor cl.search.models.Citation to create a BaseCitation abstract model to reuse on the UnmatchedCitation model - updates cl.citations.tasks.store_opinion_citations_and_update_parentheticals to handle storing and updating unmatched citations - updates cl.search.signals to update UnmatchedCitation status when a new Citation is saved - add tests
Solves #4920 - Add new model UnmatchedCitation on citations app - refactor cl.search.models.Citation to create a BaseCitation abstract model to reuse on the UnmatchedCitation model - updates cl.citations.tasks.store_opinion_citations_and_update_parentheticals to handle storing and updating unmatched citations - updates cl.search.signals to update UnmatchedCitation status when a new Citation is saved - add tests
Solves #4920 - Add new model UnmatchedCitation on citations app - refactor cl.search.models.Citation to create a BaseCitation abstract model to reuse on the UnmatchedCitation model - updates cl.citations.tasks.store_opinion_citations_and_update_parentheticals to handle storing and updating unmatched citations - updates cl.search.signals to update UnmatchedCitation status when a new Citation is saved - add tests - add update_unmatched_citations command to trigger update for found citations
Solves #4920 - Add new model UnmatchedCitation on citations app - refactor cl.search.models.Citation to create a BaseCitation abstract model to reuse on the UnmatchedCitation model - updates cl.citations.tasks.store_opinion_citations_and_update_parentheticals to handle storing and updating unmatched citations - updates cl.search.signals to update UnmatchedCitation status when a new Citation is saved - add tests - add update_unmatched_citations command to trigger update for found citations
Thanks for the notes. Super helpful now and in the future! |
We can store the unmatched citations in order to
We need to:
citations
app: maybeUnmatchedCitation
?UnmatchedCitation
citation table; and if it exists, all the Opinions citing it have their annotated HTML updatedThe text was updated successfully, but these errors were encountered: