{"action":"created","issue":{"url":"https://api.github.com/repos/webcompat/webcompat.com/issues/1100","repository_url":"https://api.github.com/repos/webcompat/webcompat.com","labels_url":"https://api.github.com/repos/webcompat/webcompat.com/issues/1100/labels{/name}","comments_url":"https://api.github.com/repos/webcompat/webcompat.com/issues/1100/comments","events_url":"https://api.github.com/repos/webcompat/webcompat.com/issues/1100/events","html_url":"https://github.com/webcompat/webcompat.com/issues/1100","id":160911100,"number":1100,"title":"[bug] Rewriting link headers is wrong","user":{"login":"karlcow","id":505230,"avatar_url":"https://avatars.githubusercontent.com/u/505230?v=3","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webcompat/webcompat.com/labels/type:%20bug","name":"type: bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-06-17T15:13:03Z","updated_at":"2016-07-06T04:46:43Z","closed_at":null,"body":"On Github if we request:\r\n\r\n`http --print h GET https://api.github.com/repos/webcompat/webcompat-tests/issues/398/comments 'Accept:application/json' | grep Link`\r\n\r\nwe get \r\n\r\n```\r\nLink: <https://api.github.com/repositories/17839063/issues/398/comments?page=2>; rel=\"next\", <https://api.github.com/repositories/17839063/issues/398/comments?page=4>; rel=\"last\"\r\n```\r\nThen \r\n\r\n`→ http --print h GET 'https://api.github.com/repos/webcompat/webcompat-tests/issues/398/comments?page=2' 'Accept:application/json' | grep Link`\r\n\r\n```\r\nLink: <https://api.github.com/repositories/17839063/issues/398/comments?page=3>; rel=\"next\", <https://api.github.com/repositories/17839063/issues/398/comments?page=4>; rel=\"last\", <https://api.github.com/repositories/17839063/issues/398/comments?page=1>; rel=\"first\", <https://api.github.com/repositories/17839063/issues/398/comments?page=1>; rel=\"prev\"\r\n```\r\n\r\nBUT\r\n\r\non webcompat.\r\n\r\nwe do \r\n\r\n`→ http --print h GET 'http://localhost:5000/api/issues/398/comments' 'Accept:application/json'`\r\n\r\n\r\n```\r\nlink: <comments?page=2>; rel=\"next\", <comments?page=4>; rel=\"last\"\r\n```\r\n\r\nThen\r\n`→ http --print h GET 'http://localhost:5000/api/issues/398/comments?page=2' 'Accept:application/json'`\r\n\r\n```\r\nlink: <comments?page=2>; rel=\"next\", <comments?page=4>; rel=\"last\"\r\n```"},"comment":{"url":"https://api.github.com/repos/webcompat/webcompat.com/issues/comments/230670069","html_url":"https://github.com/webcompat/webcompat.com/issues/1100#issuecomment-230670069","issue_url":"https://api.github.com/repos/webcompat/webcompat.com/issues/1100","id":230670069,"user":{"login":"karlcow","id":505230,"avatar_url":"https://avatars.githubusercontent.com/u/505230?v=3","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T04:46:43Z","updated_at":"2016-07-06T04:46:43Z","body":"unittesting++ it helped me a lot in figuring out the right constraints for this one but the previous one.\r\n\r\nAlso I do not remember why we decided to do `/search/issues` instead of `/issues/search`. Retrospectively it seems like a bad idea. "}}
{"actor":{"display_login":"karlcow"}}