Summary
The Legislator pages on the Legislature's site actually have biographies:https://malegislature.gov/Legislators/Profile/RLR0/Biography - we should use those as a default for our Legislator Profile page's biography section. Given that this is relevant data for all members, not just members with MAPLE accounts, it makes the most sense to store this on the Member document itself.
I would guess they only update these once a session at most, so I think this is fine as a one-off script that will run and scrape this for all legislators. (We may eventually want this longer-term, but given that we also want to avoid overwriting a biography the legislator sets in MAPLE itself, that may be self-defeating).
Success Criteria
Summary
The Legislator pages on the Legislature's site actually have biographies:https://malegislature.gov/Legislators/Profile/RLR0/Biography - we should use those as a default for our Legislator Profile page's biography section. Given that this is relevant data for all members, not just members with MAPLE accounts, it makes the most sense to store this on the
Memberdocument itself.I would guess they only update these once a session at most, so I think this is fine as a one-off script that will run and scrape this for all legislators. (We may eventually want this longer-term, but given that we also want to avoid overwriting a biography the legislator sets in MAPLE itself, that may be self-defeating).
Success Criteria
biographyfield to Members (ingeneralCourts/194/members)profilesfor legislator who make accounts on MAPLE and want to customize them, but that is out of scope for this ticket)courtconfigurable by a param and just default to the current general court)https://malegislature.gov/Legislators/Profile/<<MEMBER_CODE>>/Biography)memberin Firestore