forked from chihacknight/civic-json-worker
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tolerate new keys in issues'
label
dicts
At some point, Github added a `node_id` key in the `label` dict. This is totally fair, it should be a backwards compatible change. However, since we passed in the raw API response as kwargs to the Label model, this resulted in an error. In order to better handle this, I've updated the method signature of the Label constructor to take an arbitrary kwargs hash and pick out the values that are necessary. Also, I updated the test data to prevent regressions. Fixes #333.
- Loading branch information
Showing
3 changed files
with
6 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters