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
As part of #24 we'll need to get access to the unstable/positions.csv file in the legislature's directory in ep-data, at least until we move that data into the Popolo.
Proposed Solution
The code I wrote for the prototype does the job, so possibly just a case of pulling this into lib/everypolitician_extensions.rb and tidying it up a bit.
We should also have a Struct that represents each individual position object, so we don't have to use [] to access properties of a position.
Acceptance Criteria
I should be able to access the positions for a legislature in a Page::TermTable instance by calling house.positions.
I've done a prototype of this in #15608 but it's currently blocked because the test fixtures have an old version of the position CSVs which is missing the type column. I've opened #15607 to track that.
Problem
As part of #24 we'll need to get access to the
unstable/positions.csv
file in the legislature's directory in ep-data, at least until we move that data into the Popolo.Proposed Solution
The code I wrote for the prototype does the job, so possibly just a case of pulling this into
lib/everypolitician_extensions.rb
and tidying it up a bit.We should also have a
Struct
that represents each individual position object, so we don't have to use[]
to access properties of a position.Acceptance Criteria
I should be able to access the positions for a legislature in aPage::TermTable
instance by callinghouse.positions
.I should be able to access cabinet memberships using the code in the README that was added in #15609.
Related Issues
The text was updated successfully, but these errors were encountered: