Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misconfigured attribute in Open311 service definition [Divvy Bike Parking Complaint] #16

Open
zbeat opened this issue Dec 22, 2021 · 4 comments

Comments

@zbeat
Copy link

zbeat commented Dec 22, 2021

Summary:
The Divvy Bike Parking Complaint service is currently misconfigured in the Chicago Open311 API. 1 of the 6 defined attributed is missing a unique ID (code field in the JSON). Aside from applications using that ID to keep the attribute in sync, the primary use of that ID is for submitting attribute values (answers to this question) during request submission. And since this attribute is set to required, anyone submissions will fail with the error Attribute required.

  1. From GET Service List, here is the snippet for Divvy Bike Parking Complaint service:
  {
    "service_code": "5e474265524640504963dddc",
    "service_name": "Divvy Bike Parking Complaint",
    "description": "Used to report improperly parked Divvy bike, so it can be retrieved and/or corrected by the Divvy Operator.",
    "metadata": true,
    "type": "batch",
    "keywords": "code:DBPC",
    "group": "Outside Agencies"
  }
  1. From GET Service Definition, here is the snippet for the Is this the first time reporting this bike being improperly parked? attribute (question):
{
  "service_code": "5e474265524640504963dddc",
  "attributes": [{
    "variable": true,
    "datatype": "singlevaluelist",
    "required": true,
    "order": 2,
    "description": "Is this the first time reporting this bike being improperly parked?",
    "values": [{
      "key": "Yes",
      "name": "Yes"
    }, {
      "key": "No",
      "name": "No"
    }]
  }]
}
@zbeat
Copy link
Author

zbeat commented Dec 22, 2021

@davemitchell
Copy link

Able to repro, and confirmed that the configuration attribute id is missing from the metadata. Will refer to Chicago internal team to address.

Confirmed open311 data has most recent metadata which indicates that the last change was made 2021-10-28 at 15:00:47 -0500.

@zbeat
Copy link
Author

zbeat commented Jan 3, 2023

@davemitchell Just FYI, this is still a problem. However, the service_code for Divvy Bike Parking Complaint has changed, since I posted the URLs above. Here are the latest URLs:

cc: @tomschenkjr

@davemitchell
Copy link

Thanks; referring again to internal chicago team that manages the configurations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants