Fix: Colorado "duplicate" Divisions
dogweather opened this issue · 7 comments
dogweather commented
E.g.:
Error importing Division(Nonprofit Corporations) in Title 7: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_statutes_on_citation_and_year_and_publication_id"
3 │ DETAIL: Key (citation, year, publication_id)=(C.R.S. Title 7. Division “Nonprofit Corporations”, 2022, 10) already exists.
dogweather commented
Wait a minute ... I don't see how Part
could play a role.
dogweather commented
So, Nonprofit Corporations appears twice) as a Division. The first time it's at the location of previously existing statutes. The second time, it's at the new location.
dogweather commented
Options:
- Keep the uniqueness constraints, and make the names unique. E.g., the first instance could become Nonprofit Corporations (Renumbered)
- Drop the uniqueness constraint for this particular node type. That'd mean also dropping the citation.
dogweather commented
dogweather commented
I seem to be parsing Divisions and Subdivisions all as Divisions.
dogweather commented
Possible attributes of each
- Divisions: All caps, centered, bold
- Subdivisions: Titlecase, centered, bold
dogweather commented
Maybe just create something called "Heading"?