Handle private bills during event packet build #637
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Sometimes event agenda items can be associated with matters that are private (or otherwise do not meet criteria for display on the board agendas site). When this happens, it causes event packet building to fail! See: Metro-Records/la-metro-dashboard#46. This PR handles that exception.
Checklist
Notes
We run the risk of this happening everywhere we access bills via a foreign key relationship that has been overridden to use
LAMetroBill
. (IIRC, there are 3-4 places, including this one.) I'll open a separate issue to audit that, since this patch is time sensitive.FWIW, I don't see a solution to handle this further upstream, e.g., in
django-proxy-overrides
, though I'd be happy to discuss, if one seems obvious to you, @fgregg!Testing Instructions
staging
tag to build in Dockerhub.hourly_processing
DAG on the dashboard and confirm thecompile_pdfs
task succeeds.Handles Metro-Records/la-metro-dashboard#46