datamade / scrapers-us-municipal

Scrapers for US municipal governments.
MIT License
10 stars 8 forks source link

For Chicago, more careful of referrals. #74

Closed fgregg closed 1 year ago

fgregg commented 1 year ago

The current code sets the related entity of a referral to be the currently controlling body. The logic should be

  1. If there is an immediately subsequent action by a committee, then the referral was to that committee.
  2. If the referral is the last action then the referral is to the currently controlling body.

Here's a good test case:

fgregg commented 1 year ago

Also let's handle committee re-referrals

fgregg commented 1 year ago

here's a case where we don't know where the item was referred to because the last action on it (and the controlling body) is city council. (failing to pass the leg)

https://chicago.legistar.com/LegislationDetail.aspx?ID=2567010&GUID=369DCAA5-8470-402C-A72B-43BD1C4E2180 http://webapi.legistar.com/v1/chicago/matters/83691/histories

so, i think that's an unavoidable data limitation