datamade / django-councilmatic

:heartpulse: Django app providing core functions for *.councilmatic.org
http://councilmatic.org
MIT License
26 stars 16 forks source link

import_data: Consider adding a mechanism for removing stale bill subjects #236

Closed reginafcompton closed 5 years ago

reginafcompton commented 5 years ago

The subjects of a bill can change, including when a bill loses a subject once related to that bill.

This recently caused an issue in Metro Councilmatic. Private bills (previously) had a subject "Restricted View," but when those private bills were toggled to public the subject persisted in the Councilmatic database.

It seems reasonable to delete all subjects of updated bills, before adding new ones. We implemented this pattern with EventAgendaItems. Presumably, many bills in the Councilmatic universe have stale subjects, which should be removed.

hancush commented 5 years ago

Pre-requisite for https://github.com/datamade/la-metro-councilmatic/issues/432.