Metro-Records / la-metro-councilmatic

:metro: An instance of councilmatic for LA Metro
MIT License
6 stars 2 forks source link

Automate process for removing bills from the Councilmatic database #235

Closed reginafcompton closed 1 year ago

reginafcompton commented 6 years ago

Occasionally, we have to remove bills from Councilmanic.

The workflow we’ve followed: (1) remove it from the OCD API database, (2) remove it from the Councilmanic downloads folder on the server, (3) remove it from the Councilmanic database. To this workflow, we need to add a fourth step: (4) remove the bill from Solr (or just run rebuild_index).

First, let's document this process.

reginafcompton commented 6 years ago

I documented the steps for manual removal.

Next, we will automate this process using management commands in OCD API and django-councilmatic.

hancush commented 1 year ago

No longer necessary! We don't have an OCD database, we have a new DAG to remove entities we haven't seen in a scrape for a week from the DB, and the Haystack update index commands are configured to remove documents from the index that are no longer in the DB.