-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle case where bill rolls over to new legislative session #279
Comments
Related stacktrace:
|
i think the concept of legislative session includes the idea that bills cannot be carried over. so, i would say that these are not legislative sessions. are we using "legislative session" anywhere in the metro site to do anything for us? |
You're right – for Metro, the legislative session is actually a fiscal year, IIRC. We just it out of the search index, so no, I don't see that we are using it anywhere meaningful, @fgregg. What are you thinking? |
pretty sure that OCD requires a legislative session, but we can just have one legislative session. |
Currently, the importer considers legislative session when resolving bills for import, however bills can carry over to the next legislative session. When this happens, the bill no longer resolves because the related legislative session has changed, and pupa tries to insert it is a new bill. We impose a unique constraint on slug (populated from identifier) in Councilmatic, so the import subsequently fails.
Currently, bills can only be related to one legislative session, but in some jurisdictions, e.g., Metro, they can be associated with many.
How should pupa and Councilmatic behave in this instance? Can we assume that identifier is unique across all sessions, i.e., safely update pupa's resolution logic so legislative session is updated on an existing bill? Or should we account for the possibility that an identifier is only unique within a session? In that case, we'd need to update our slug logic and unique constraint to take identifier and session together.
Thoughts, @fgregg?
The text was updated successfully, but these errors were encountered: