{"action":"closed","issue":{"url":"https://api.github.com/repos/DoSomething/phoenix/issues/6948","repository_url":"https://api.github.com/repos/DoSomething/phoenix","labels_url":"https://api.github.com/repos/DoSomething/phoenix/issues/6948/labels{/name}","comments_url":"https://api.github.com/repos/DoSomething/phoenix/issues/6948/comments","events_url":"https://api.github.com/repos/DoSomething/phoenix/issues/6948/events","html_url":"https://github.com/DoSomething/phoenix/issues/6948","id":173232002,"number":6948,"title":"Inconsistent structure in Kudos object in API depending on authentication status.","user":{"login":"weerd","id":105849,"avatar_url":"https://avatars.githubusercontent.com/u/105849?v=3","gravatar_id":"","url":"https://api.github.com/users/weerd","html_url":"https://github.com/weerd","followers_url":"https://api.github.com/users/weerd/followers","following_url":"https://api.github.com/users/weerd/following{/other_user}","gists_url":"https://api.github.com/users/weerd/gists{/gist_id}","starred_url":"https://api.github.com/users/weerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weerd/subscriptions","organizations_url":"https://api.github.com/users/weerd/orgs","repos_url":"https://api.github.com/users/weerd/repos","events_url":"https://api.github.com/users/weerd/events{/privacy}","received_events_url":"https://api.github.com/users/weerd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DoSomething/phoenix/labels/%23api","name":"#api","color":"bfdadc"},{"url":"https://api.github.com/repos/DoSomething/phoenix/labels/bug","name":"bug","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"login":"weerd","id":105849,"avatar_url":"https://avatars.githubusercontent.com/u/105849?v=3","gravatar_id":"","url":"https://api.github.com/users/weerd","html_url":"https://github.com/weerd","followers_url":"https://api.github.com/users/weerd/followers","following_url":"https://api.github.com/users/weerd/following{/other_user}","gists_url":"https://api.github.com/users/weerd/gists{/gist_id}","starred_url":"https://api.github.com/users/weerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weerd/subscriptions","organizations_url":"https://api.github.com/users/weerd/orgs","repos_url":"https://api.github.com/users/weerd/repos","events_url":"https://api.github.com/users/weerd/events{/privacy}","received_events_url":"https://api.github.com/users/weerd/received_events","type":"User","site_admin":false},"assignees":[{"login":"weerd","id":105849,"avatar_url":"https://avatars.githubusercontent.com/u/105849?v=3","gravatar_id":"","url":"https://api.github.com/users/weerd","html_url":"https://github.com/weerd","followers_url":"https://api.github.com/users/weerd/followers","following_url":"https://api.github.com/users/weerd/following{/other_user}","gists_url":"https://api.github.com/users/weerd/gists{/gist_id}","starred_url":"https://api.github.com/users/weerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weerd/subscriptions","organizations_url":"https://api.github.com/users/weerd/orgs","repos_url":"https://api.github.com/users/weerd/repos","events_url":"https://api.github.com/users/weerd/events{/privacy}","received_events_url":"https://api.github.com/users/weerd/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/DoSomething/phoenix/milestones/64","html_url":"https://github.com/DoSomething/phoenix/milestones/Slide%203%20For%20Now%20","labels_url":"https://api.github.com/repos/DoSomething/phoenix/milestones/64/labels","id":1943020,"number":64,"title":"Slide 3 For Now ","description":"","creator":{"login":"jessleenyc","id":14931921,"avatar_url":"https://avatars.githubusercontent.com/u/14931921?v=3","gravatar_id":"","url":"https://api.github.com/users/jessleenyc","html_url":"https://github.com/jessleenyc","followers_url":"https://api.github.com/users/jessleenyc/followers","following_url":"https://api.github.com/users/jessleenyc/following{/other_user}","gists_url":"https://api.github.com/users/jessleenyc/gists{/gist_id}","starred_url":"https://api.github.com/users/jessleenyc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessleenyc/subscriptions","organizations_url":"https://api.github.com/users/jessleenyc/orgs","repos_url":"https://api.github.com/users/jessleenyc/repos","events_url":"https://api.github.com/users/jessleenyc/events{/privacy}","received_events_url":"https://api.github.com/users/jessleenyc/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":14,"state":"open","created_at":"2016-08-15T17:41:15Z","updated_at":"2016-09-26T21:26:33Z","due_on":"2016-08-26T00:00:00Z","closed_at":null},"comments":1,"created_at":"2016-08-25T15:18:09Z","updated_at":"2016-09-26T21:26:33Z","closed_at":"2016-09-26T21:26:32Z","body":"_BUG_\r\n-------------------\r\n#### Current Behavior\r\n- The `/reportback-items` endpoint includes reactions data for an item in the `kudos` property. However, depending on if you are making an auth'ed vs anonymous API request the structure of the `kudos` object is different. It is either a regular indexed array vs an associative array respectively.\r\n\r\n#### Desired Behavior\r\n- Structure of `kudos` object should be consistent regardless of authentication status, it should just be different in the data it exposes depending on access.\r\n\r\n#### Why This Matters\r\n- Consistent expectation of data structure in API responses is crucial!\r\n\r\n#### Relevant Screenshots + Links\r\n\r\nAuthenticated API User:\r\n![image](https://cloud.githubusercontent.com/assets/105849/17974654/e6e3bde8-6ab4-11e6-8e12-8249f4a3d218.png)\r\n\r\nUnauthenticated API User:\r\n![image](https://cloud.githubusercontent.com/assets/105849/17974674/f9c4493c-6ab4-11e6-8088-d82ac6c66886.png)\r\n"}}
{"actor":{"display_login":"jessleenyc"}}