datamade / django-councilmatic

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

Calculate last action date on OCD Bill and Event save #264

Closed hancush closed 4 years ago

hancush commented 4 years ago

Description

This pull request extends the post-save signals for OCD bills and events to also calculate and store the last action date for a bill. This logic was previously defined on the Metro bill model, however it will be useful across jurisdictions.

Note: We refresh the last action date on event save because event agenda items can influence the value of last action date.

Related issues

Connects https://github.com/opencivicdata/scrapers-us-municipal/issues/300, https://github.com/datamade/la-metro-councilmatic/pull/541.

Testing instructions