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

Better handling for duplicate citations #14

Open
strum3nt opened this issue Sep 4, 2020 · 0 comments
Open

Better handling for duplicate citations #14

strum3nt opened this issue Sep 4, 2020 · 0 comments

Comments

@strum3nt
Copy link
Member

strum3nt commented Sep 4, 2020

Currently if the pipeline finds a case with a citation that is a duplicate to one in the database (eg jdo_1368576000000_d586396a-9c35-49a7-8e2b-808f6e2dfb19.pdf and jdo_1367928001000_634b6b96-c11b-4df1-acee-3e9a3a13d66b.pdf) the case is inserted into the database but one case will have no citation record (due to ON CONFLICT DO NOTHING).

This requires a workaround in the front end to hide any case that does not have a citation record (but that is not ideal because someone may want either or both cases eg in the above the reissued judgment is important).

Therefore the database insert may need to be modified so that if there is a conflict, it handles that by generating a new citation record eg [2013] NZHC 988 could be edited to [2013] NZHC 988-a

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

No branches or pull requests

1 participant