Skip to content

Commit

Permalink
Merge pull request #946 from unboxed/fix/replace-mp-member-id
Browse files Browse the repository at this point in the history
Update member_id in feed
  • Loading branch information
pixeltrix authored Jun 11, 2024
2 parents 4dd059a + c08b810 commit 3d89678
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/lib/feed/members.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Member < Entry
self.model = "Members"
self.columns = "Member_Id,NameFullTitle,Party,MembershipFrom_Id,StartDate"
self.filter = "(CurrentStatusActive eq true) and (House_Id eq 1)"
self.orderby = "Member_id"
self.orderby = "Member_Id"
self.klass = Member
end
end
2 changes: 1 addition & 1 deletion spec/jobs/fetch_constituencies_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
let(:url) { "http://data.parliament.uk/membersdataplatform/open/OData.svc" }
let(:constituency_api) { "#{url}/Constituencies?$filter=(EndDate%20gt%20datetime'2015-05-07')%20or%20(EndDate%20eq%20null)&$orderby=ONSCode&$select=Constituency_Id,Name,ONSCode,StartDate,EndDate" }
let(:stub_constituency_api) { stub_request(:get, constituency_api) }
let(:member_api) { "#{url}/Members?$filter=(CurrentStatusActive%20eq%20true)%20and%20(House_Id%20eq%201)&$orderby=Member_id&$select=Member_Id,NameFullTitle,Party,MembershipFrom_Id,StartDate" }
let(:member_api) { "#{url}/Members?$filter=(CurrentStatusActive%20eq%20true)%20and%20(House_Id%20eq%201)&$orderby=Member_Id&$select=Member_Id,NameFullTitle,Party,MembershipFrom_Id,StartDate" }
let(:stub_member_api) { stub_request(:get, member_api) }
let(:regions_api) { "#{url}/ConstituencyAreas?$filter=(Area/AreaType_Id%20eq%208)%20and%20((Constituency/EndDate%20gt%20datetime'2015-05-07')%20or%20(Constituency/EndDate%20eq%20null))&$orderby=Area_Id,Constituency_Id&$select=Area_Id,Constituency_Id"}
let(:stub_regions_api) { stub_request(:get, regions_api) }
Expand Down

0 comments on commit 3d89678

Please sign in to comment.