Closed fgregg closed 4 years ago
Sorry for my inadequate commit message for https://github.com/datamade/django-councilmatic/pull/260/commits/85e518ab6fb912a2bfa574e4e53abd82a2d1f412.
What prompted me to remove this was problem: https://github.com/datamade/la-metro-councilmatic/pull/514#issuecomment-562295986
We don't have any code in our signal handler to create or update CouncilmaticBillDocuments when the OCD Bill Documents are created. As such, when we went to go query for bills with documents we were getting nothing (because they were checking councilmatic bill document, not the ocd one).
I missed that this broke the tests.
I can take this on to fully fix, if you'd like.
FWIW, this didn't break the tests: It breaks the search index, which uses the full_text
attribute to index attachment text for searching. https://github.com/datamade/la-metro-councilmatic/blob/9a8c0dd232aac453696281d47d256fcb5d98d0d4/lametro/search_indexes.py#L46
Description
This PR:
convert_attachment_text
to deal with the new data structure, as well as some subtler request/conversion failures.SlugField
s.current_memberships
method toPerson
.last_action_date
attribute to Bills and updates signals to populate it on bill and event save.