commit message:
-update query to get bills from the last 6 months and remove resolution filter
-create fetchBillsInChunks to allow the bill query to get every relevant response
-replace voteHistory: {result: string;} -> voteHistory: {motion_classification: string;} because the value of result is always "pass" for every bill no matter what and the value of motion_classification is the more accurate value.
-update type Bill
currently the outputs are a little different.
here is an output from the version currently in use:
{
"id": "ocd-bill/e5ebd7ea-9b9f-478f-a261-6f4b3849451e",
"title": "Call for hearing(s) on lowering citywide default speed limit from 30 mph to 25 mph",
"tags": [
"Council Matters",
"Call for Hearing"
],
"status": "introduction",
"updated_at": "2024-02-21",
"statusDate": "2024-02-21 - introduction",
"sponsors": [
{
"name": "La Spata, Daniel",
"person_id": "ocd-person/fc5e5202-bf60-408c-a363-82131030fe01",
"role": "",
"district": ""
}
],
"voteHistory": [],
"link": "",
"source_id": "",
"classification": "resolution"
}
here is the output from the development version:
{
"id": "ocd-bill/f79a6402-e488-4c70-94b3-f494a648618f",
"title": "Vacation and dedication of public way(s) bounded by W North Ave, N Elston Ave, W LeMoyne St, and N Noble St",
"tags": [
"City Matters",
"City Business",
"Vacation of Public Street"
],
"status": [
"introduction"
],
"updated_at": "2024-03-20",
"statusDate": "2024-03-20 - introduction",
"sponsors": [
{
"name": "Burnett, Jr., Walter",
"person_id": "ocd-person/4ad29563-3468-4094-9d35-e95bbbec9a13",
"role": "",
"district": ""
}
],
"voteHistory": [],
"source_id": "",
"classification": "ordinance",
"identifier": "O2024-0008156",
"link": "https://chicago.councilmatic.org/legislation/O2024-0008156",
"url": "https://chicago.councilmatic.org/legislation/O2024-0008156"
},
commit message: -update query to get bills from the last 6 months and remove resolution filter -create fetchBillsInChunks to allow the bill query to get every relevant response -replace voteHistory: {result: string;} -> voteHistory: {motion_classification: string;} because the value of result is always "pass" for every bill no matter what and the value of motion_classification is the more accurate value. -update type Bill
currently the outputs are a little different.
here is an output from the version currently in use: { "id": "ocd-bill/e5ebd7ea-9b9f-478f-a261-6f4b3849451e", "title": "Call for hearing(s) on lowering citywide default speed limit from 30 mph to 25 mph", "tags": [ "Council Matters", "Call for Hearing" ], "status": "introduction", "updated_at": "2024-02-21", "statusDate": "2024-02-21 - introduction", "sponsors": [ { "name": "La Spata, Daniel", "person_id": "ocd-person/fc5e5202-bf60-408c-a363-82131030fe01", "role": "", "district": "" } ], "voteHistory": [], "link": "", "source_id": "", "classification": "resolution" }
here is the output from the development version: { "id": "ocd-bill/f79a6402-e488-4c70-94b3-f494a648618f", "title": "Vacation and dedication of public way(s) bounded by W North Ave, N Elston Ave, W LeMoyne St, and N Noble St", "tags": [ "City Matters", "City Business", "Vacation of Public Street" ], "status": [ "introduction" ], "updated_at": "2024-03-20", "statusDate": "2024-03-20 - introduction", "sponsors": [ { "name": "Burnett, Jr., Walter", "person_id": "ocd-person/4ad29563-3468-4094-9d35-e95bbbec9a13", "role": "", "district": "" } ], "voteHistory": [], "source_id": "", "classification": "ordinance", "identifier": "O2024-0008156", "link": "https://chicago.councilmatic.org/legislation/O2024-0008156", "url": "https://chicago.councilmatic.org/legislation/O2024-0008156" },
you can find the discrepancy at the "status" key