datamade / chi-councilmatic

:eyes: keep tabs on Chicago city council
https://chicago.councilmatic.org/
MIT License
21 stars 16 forks source link

Deal with deleted bills #100

Open fgregg opened 8 years ago

fgregg commented 8 years ago

The pdf for this bill http://chicouncilmatic.datamade.us/legislation/o-2015-8818/ has been deleted. https://chicago.legistar.com/Confirmation.aspx?M1=Gone

Let's deal with the "Gone" response in our pdfviewer

derekeder commented 8 years ago

Updated URL https://chicago.councilmatic.org/legislation/o-2015-8818/

City Clerk has deleted this bill from Legistar: https://chicago.legistar.com/LegislationDetail.aspx?ID=2533054&GUID=25F7BFE8-432A-4582-BE8A-79A0E12A541D

fgregg commented 7 years ago

Thought about this past couple of days.

There are two ways we can fix this, in data source (ocd) or in councilmatic.

If we fix in OCD, we would

If we fix in councilmatic,

I propose we do something like this.

For every bill, we create a delete route that looks like

https://chicago.councilmatic.org/legislation/o-2015-8818/delete

This adds this bill to a delete queue that we can manage in the django admin. In the django admin we can confirm that we want to delete nominated bills. From that admin interface, we can also export a list of all deleted bills, if we, at some point, want to delete bills upstream in OCD?

Thoughts @evz

derekeder commented 1 year ago

related, we now have a last_seen property in python-opencivicdata for scraped items that we can use to periodically remove deleted bills: https://github.com/opencivicdata/python-opencivicdata/pull/145