datamade / nyc-council-councilmatic

NYC Council version of Councilmatic
MIT License
7 stars 3 forks source link

Not able to find Res 0001-2014 #100

Closed reginafcompton closed 6 years ago

reginafcompton commented 6 years ago

I cannot find this bill in Councilmatic or the OCD API.

Legistar: http://legistar.council.nyc.gov/LegislationDetail.aspx?ID=1637756&GUID=DE3388C3-6307-4C29-B53E-A205DE8B2B25&Options=ID|Text|&Search=%22res+0001-2014%22

OCD API search: https://ocd.datamade.us/bills/?title__startswith=Resolution%20making%20certain%20amendments%20

fgregg commented 6 years ago

It's on webapi legistar https://webapi.legistar.com/v1/nyc/matters/?$filter= MatterFile%20eq%20%27Res%200001-2014%27

and it's on the OCD API

https://ocd.datamade.us/ocd-bill/fad86214-fe30-45d3-9559-14c1165df839/

On Mon, Dec 18, 2017 at 12:05 PM, Regina Compton notifications@github.com wrote:

I cannot find this bill in Councilmatic or the OCD API.

Legistar: http://legistar.council.nyc.gov/LegislationDetail.aspx?ID= 1637756&GUID=DE3388C3-6307-4C29-B53E-A205DE8B2B25& Options=ID|Text|&Search=%22res+0001-2014%22 http://legistar.council.nyc.gov/LegislationDetail.aspx?ID=1637756&GUID=DE3388C3-6307-4C29-B53E-A205DE8B2B25&Options=ID%7CText%7C&Search=%22res+0001-2014%22

OCD API search: https://ocd.datamade.us/bills/ ?title__startswith=Resolution%20making%20certain%20amendments%20

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/datamade/nyc-council-councilmatic/issues/100, or mute the thread https://github.com/notifications/unsubscribe-auth/AAgxbb8UYoXW8g9viyuX04strUK5Hm0Mks5tBqlkgaJpZM4RF28q .

-- 773.888.2718

fgregg commented 6 years ago

Okay, so the issue is that pupa normalizes bill names. https://github.com/opencivicdata/pupa/issues/224

Workarounds

reginafcompton commented 6 years ago

A good solution on the Councilmatic side: pad the identifiers in a prepare_identifier function in search_indexes.py

reginafcompton commented 6 years ago

To address this issue downstream, we're having the following conversations:

https://github.com/opencivicdata/pupa/issues/163 https://github.com/datamade/scrapers-us-municipal/issues/12

reginafcompton commented 6 years ago

Closing! https://laws.council.nyc.gov/legislation/res-0001-2014/ https://laws.council.nyc.gov/search/?q=%22Res+0001-2014%22