Update Legislators for New Court 194 #1664
Labels
backend
Backend Development
Must Have
Ready for Development
Automatically assigned to issues that are ready to be picked up
Summary
Massachusetts has just started its new General Court session (Court 194). To handle this on the site, we need to update our code to handle the new crop of legislators in the new session (so that users can accurately determine who their representatives are so they know where to send testimony).
We should automatically start scraping legislative members as soon as we add court 194 to our set of court constants (handled in #1677) - but we don't currently update user profiles to point to their new representatives if they change.
Work Detail
members
in Firestore) to their profile and updates those legislatorsrepresentative
andsenator
fields in the firestoreprofiles
collectionmembers
are scraped and stored undergeneralCourts/{courtNumber}/members
generalCourts/{courtNumber}/members
entries who match oncontent.District
(e.g. if the user's current representatives are not present in court 194 - find the members in court 194 whose districts match the districts of the user's current representatives and replace the old reps with the court 194 reps)members
in court 193. This occurs when amember
is replaced partway through a session. If this causes any issues, we should consider onlymembers
with committee assignments (incontent.Committee
) - replaced legislators will have their committee assignments removed, so that seems to be the best way to determine the active legislator when there are multiplemember
s for the same district in the same court session.Omissions
The text was updated successfully, but these errors were encountered: