gapple / drupalreleasedate

System for tracking the Drupal core issue queue
http://drupalreleasedate.com
MIT License
16 stars 6 forks source link

Use Drupal.org API #19

Open gapple opened 10 years ago

gapple commented 10 years ago

Data on Drupal.org is now available as JSON through an API:

This would circumvent some of the fragility of parsing the full XHTML pages of the issue queue, and it includes paging information, so it's possible to go back to two requests per count (first page + last page), instead of iterating through every page to find the end.

By default the responses include a lot of information on each issue (e.g. full issue description, attached files, comment ids...) but this can be limited by providing full=0 as a parameter.

It looks like the parameters use internal field names and IDs rather than the nice names that the front end uses, so the configuration will need to be updated or mapped (e.g. priorities => field_issue_priority). The info page also doesn't indicate how to specify multiple parameters (e.g. a set of statuses).

e.g. https://www.drupal.org/api-d7/node.json?type=project_issue&field_project=3060&field_issue_status=8&field_issue_version=8.0.x-dev&field_issue_priority=200&full=0

gapple commented 8 years ago

Currently the REST API can't handle selecting multiple values for a single field, which is required for the status field. https://www.drupal.org/node/2308939

gapple commented 7 years ago

Looks like multiple value may be supported in the format node.json?field_name_here[value][]=stuff&field_name_here[value][]=things https://www.drupal.org/node/2308939#comment-11371627