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

Fix: Colorado "duplicate" Divisions #177

Open
dogweather opened this issue Jul 17, 2023 · 7 comments
Open

Fix: Colorado "duplicate" Divisions #177

dogweather opened this issue Jul 17, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@dogweather
Copy link
Member

dogweather commented Jul 17, 2023

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 dogweather added the bug Something isn't working label Jul 17, 2023
@dogweather
Copy link
Member Author

Wait a minute ... I don't see how Part could play a role.

@dogweather
Copy link
Member Author

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
Copy link
Member Author

dogweather commented Jul 21, 2023

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
Copy link
Member Author

Ah hah — I'm seeing Divisions and Subdivisions. And uniqueness is preserved.

Screenshot 2023-07-21 at 12 48 47 PM

@dogweather
Copy link
Member Author

I seem to be parsing Divisions and Subdivisions all as Divisions.

@dogweather
Copy link
Member Author

dogweather commented Jul 21, 2023

Possible attributes of each

  • Divisions: All caps, centered, bold
  • Subdivisions: Titlecase, centered, bold

@dogweather
Copy link
Member Author

Maybe just create something called "Heading"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant