Closed reginafcompton closed 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.
Pre-requisite for https://github.com/datamade/la-metro-councilmatic/issues/432.
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.