-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add property to relate a membership to a legislative term #93
Comments
What would the disadvantages be of making a separate Organization for "113th US Congress", "114th US Congress" etc? |
How would you collect all the congresses - would they be suborganizations of "Congress"? And each Congress would have the House of Representatives and Senate as children? |
I'm not sure yet — probably something like that (I haven't really thought it through for bicameral legislatures). It just seems like this way might adequately reflect reality and provide simpler querying (both for the standard "Who was a member of the XIIth Riigikogu?", and perhaps also for the "Who left the 113th Congress before the end of the term?") without needing any new terms. It might still be better to add something to do this more explicitly — I'm just exploring an idea here. |
I think having multiple Houses of Representatives and Senates - one for each Congress - would be odd; the only thing distinguishing them would be their parent organization. You can inverse the hierarchy, and instead have two of each congress - one for each of the House and the Senate - but that is also strange. Note that US Senators are elected to 6-year terms, but congresses only last two years. In the US case, "who left before the end" is easier to answer without requiring a reference to terms, since elections follow a schedule, unlike legislatures with votes of confidence. Anyhow, if not adding a new term, I think "Who was a member of the XIIth Riigikogu?" should require knowing the start and end dates of that term, and then just comparing those with the dates of memberships of the legislature. The membership doesn't need to reference the event. |
The specifics of how to model it aside, I'm unconvinced by the approach of needing to know the dates to be able to query who was a member — that seems like a rather odd level of indirection for what will be a very common query. As a slightly lesser issue: this approach would also eliminate a lot of needless duplication of dates: there wouldn't need to be |
I'm facing similar problems with the Italian Parliament, which is bi-cameral, with synchronized chambers. I wouldn't use such a property, but would rather model different organization instances, each related to a given term. And keep a base organization, to reach them all, if need arises. |
@guglielmo After discussing last week, do you agree it would be simpler to have:
And then, relate a membership to the correct Organization (e.g. Camera) and Event (e.g. Parlamento XIV). Instead of having:
And then relating a membership to the correct suborganization (e.g. the Camera child of Parlamento XIV). The difference in complexity is having 2 organizations for the two chambers versus terms × 2 organizations for the two chambers. |
Well, yes, it's certainly a simpler model that comes out. |
In my comparison of the two options, I forgot to add that the first option adds a new class (Event), so it's adding complexity in a different way. But if we're all agreed on following the first option, then I can proceed with it. @tmtmtmtm You initially asked about the disadvantages of the second option. Do you also prefer the first option? |
From the Popolo standard's perspective this is not a problem. But if I think in terms of the existing components, then I guess Popit should be changed, to model Events as first class objects, as embedding them into each Membership would be rather unpractical. |
I've started a PopIt issue: mysociety/popit-api#142 |
@jpmckinney how do you see this working for modelling the Government side — Cabinet positions etc? That seems like it would raise a lot of the same questions as the legislative side... |
Couldn't it be done identically? Perhaps I am missing some context on what makes it a special case. |
I'm not sure. In the previous discussions about things like this it's always been assumed that it'll be a separate Organization (e.g in modelling a coalition), and I'm just starting to think through all the knock-on implications. As always the question isn't how could this be done, but how it should ideally be done in a way that facilitates tool reuse etc. I also don't know enough about all the different systems out there to know, for example, what different relationships exist between the different elements in practice. In most countries that I know, for example, a Government can only exist within a single legislative session (though there can be more than one within that, and specific posts can, in turn, change within those — though in the UK there's more of a distinction between simply replacing a person or two, and a full-blown reshuffling — see for example https://en.wikipedia.org/wiki/Cameron_ministry which lists three different Cabinets, but with internal changes within those. e.g. Philip Hammond replacing Liam Fox as Defence Secretary in the first Cabinet); but from what I can tell, in the US the Cabinet continues as a single entity throughout a multi-term presidency, which in turn doesn't map cleanly to legislative periods at all. |
Yes, it would be a new hierarchy of organizations and posts. The legislative periods should be shared between the executive and legislative branches where possible (like in Westminster systems where Cabinet members are also MPs). I don't have additional knowledge of other systems' executive branch than what you described. In the US, the House of Representatives serve two-year terms, the president four-year terms, and the Senate staggered six-year terms. So, I think each would have its own set of legislative periods. |
For Malaysia (based on UK system), we use posts with start-end dates for this, and then we simply filter by date range of particular session we want results for. Organization: Cabinet with Minister Posts We would only use one Cabinet org and add posts with start and end dates for each position. The same for House of Representatives. Post start/end date queries are good enough for us to get persons of specific legislative session(s) without additional complexity of this relation property. Even if Federal Ministerial session is different from State Assembly session, doing this, we could still get results for example of who were Federal Ministers (Cabinet) during a different State Assembly session which has different but overlapping start/end dates, just from start/end property of posts in Cabinet. |
Thanks @kaerumy. With this model, how do you find a minister's successor? |
@kaerumy, if a Post can only ever have one Member, I'm curious as to what benefit you're getting from even using Posts in the first place, rather than just making these plain Memberships? I'm also wondering what the rest of your logic looks like. Is the Cabinet a completely fluid thing, with people being appointed or dropping out at any time? Or are there individual Cabinets that can be referenced, with a large number of members starting and finishing at the same time? Since I gave the UK example above, there has been a new election, so the position is even clearer. The new election brought a new government — even though it's with the same Prime Minister — the Second Cameron Ministry. During the the first Cameron government, there were three distinct Cabinets — as you can see on the Wikipedia page for it — although individual members can be replaced within each (e.g. Defence in the first Cabinet). To be able to produce a page similar to that from Popolo data, I need to store somewhere the various dates of each change of government, and of each cabinet. In your model, where are those stored? Or is this not really a concept you have at all? Once I have an Event for each of these, it seems better to be able to directly reference those within each Membership: primarily for purposes of good data hygiene (if it turns out that I made an error in the date I thought the Cabinet formed, I want to only have to correct it in one place, not in each individual denormalised Membership of it, both for speed and simplicity, and to avoid the additional risk of inconsistent data if I miss one, or my application dies mid-update etc.), and to have my data more accurately reflect its intent, and enable me to directly ask questions in both directions: "Show me the members of the Second Cameron Cabinet", and "Show me all the Northern Ireland Ministers" — where, importantly, I want to not only get a single start-date and end-date for each, but to see in the results, for example, that Peter Brooke's time in this position spanned both the Margaret Thatcher and John Major governments. I'm also concerned with reusability here. Where different groups use a consistent approach, then we can create generic tools that will work across multiple datasets; but if every country has its own different modelling approach, those become largely impossible. |
@jpmckinney to get successor for Posts, at this time we would query for Member for that post whose start date is greater than Member we're interested in. If more than one, than just first result sorted by start date. eg. from the results of this: @tmtmtmtm we have more than one Member per Post, we have House of Representatives with Memberships to MP Posts: https://sinar-malaysia.popit.mysociety.org/posts/53633fbb19ee29270d8a9ee1 I agree that in such cases, having a related Event attached to a Post Membership (or just Membership) would be useful. We would use it in similar way to UK. First, Second Cabinets of Foo PM, Parliamentary Sessions, Legislative Terms etc. For Cabinet, we would probably model it in similar way to House of Representatives in Malaysia, have a Ministerial Cabinet (Organization) and then attach Events to them. +1 also to standardise on models where possible to reduce development especially with similar parliamentary system like Westminister (lots of Commonwealth countries). We had to write two versions of our own UI to Popit to handle Posts, a short term hack and longer term more complete AngularJS replacement. It would be a waste if someone couldn't reuse our efforts. |
Was this ever resolved? My first thought was to create an Organization for a legislative period to use in concert with
when I thought to search. I see everypolitician is now using Events and a 'legislative_period_id', which I don't think is in the standard. My motivation is to bring openpatata/openpatata-data closer to the standard and I would rather avoid Posts. |
This hasn't been resolved, but I believe the most likely resolution is to add a At any rate, you should not use an organization for a legislative period. Also, the semantics of a legislative period would be such that the membership is assumed to have ended whenever the period ended. |
That would be a correct assumption, would it not? The legislative period is the period between elections. |
Yes. |
Right, the last paragraph looked like it referred to Organizations before your edit. |
proposed name is
legislative_period
.legislative_session
would match Motion and VoteEvent, but since we generally intend to use the property to refer to a legislature/parliament and not a session, it would be confusing.The text was updated successfully, but these errors were encountered: