You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 12, 2021. It is now read-only.
In IndividualParticipant.cs, https://github.com/RightToAskOrg/righttoask-ui-mockup/blob/main/PassingData/Models/IndividualParticipant.cs, add the corresponding MPs to the list MyMPs whenever something about the participant's electorates is updated - you'll see TODOs in the IndividualParticipant.cs file. This can be done by searching
BackgroundElectorateAndMPData.AllMPs for those in which the chamber and electorate both match.
For example, if an IndividualParticipant's Vic Legislative Council electorate is updated to "Northern Metropolitan", we'll search through AllMPs for those matching both
ChamberSeatedIn = Vic_Legislative_Council
and
ElectorateRepresenting = "Northern Metropolitan"
(Note: electorates are chosen randomly at the moment, unless the person specifies them, but that's a separate issue. Also note only Vic has the electorates loaded, so that's the only one that can work atm.)
The text was updated successfully, but these errors were encountered:
At the moment, even after choosing (random) electorates, it displays a hardcoded list of 'My MPs'.
https://github.com/RightToAskOrg/righttoask-ui-mockup/blob/main/PassingData/Models/IndividualParticipant.cs, add the corresponding MPs to the list MyMPs whenever something about the participant's electorates is updated - you'll see TODOs in the IndividualParticipant.cs file. This can be done by searching
BackgroundElectorateAndMPData.AllMPs for those in which the chamber and electorate both match.
For example, if an IndividualParticipant's Vic Legislative Council electorate is updated to "Northern Metropolitan", we'll search through AllMPs for those matching both
ChamberSeatedIn = Vic_Legislative_Council
and
ElectorateRepresenting = "Northern Metropolitan"
(Note: electorates are chosen randomly at the moment, unless the person specifies them, but that's a separate issue. Also note only Vic has the electorates loaded, so that's the only one that can work atm.)
The text was updated successfully, but these errors were encountered: