{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/addons-frontend/issues/5891","repository_url":"https://api.github.com/repos/mozilla/addons-frontend","labels_url":"https://api.github.com/repos/mozilla/addons-frontend/issues/5891/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/addons-frontend/issues/5891/comments","events_url":"https://api.github.com/repos/mozilla/addons-frontend/issues/5891/events","html_url":"https://github.com/mozilla/addons-frontend/issues/5891","id":349040599,"node_id":"MDU6SXNzdWUzNDkwNDA1OTk=","number":5891,"title":"An unauthorized message is displayed in the ratings breakdown section for an unapproved add-on","user":{"login":"AlexandraMoga","id":31961530,"node_id":"MDQ6VXNlcjMxOTYxNTMw","avatar_url":"https://avatars3.githubusercontent.com/u/31961530?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexandraMoga","html_url":"https://github.com/AlexandraMoga","followers_url":"https://api.github.com/users/AlexandraMoga/followers","following_url":"https://api.github.com/users/AlexandraMoga/following{/other_user}","gists_url":"https://api.github.com/users/AlexandraMoga/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexandraMoga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexandraMoga/subscriptions","organizations_url":"https://api.github.com/users/AlexandraMoga/orgs","repos_url":"https://api.github.com/users/AlexandraMoga/repos","events_url":"https://api.github.com/users/AlexandraMoga/events{/privacy}","received_events_url":"https://api.github.com/users/AlexandraMoga/received_events","type":"User","site_admin":false},"labels":[{"id":435693386,"node_id":"MDU6TGFiZWw0MzU2OTMzODY=","url":"https://api.github.com/repos/mozilla/addons-frontend/labels/component:%20add-on%20ratings","name":"component: add-on ratings","color":"107c05","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-09T09:06:18Z","updated_at":"2018-08-30T20:55:47Z","closed_at":null,"author_association":"NONE","body":"STR:\r\n\r\n1. Log in to Developer Hub on AMO stage\r\n2. Open Manage my Submissions and select an add-on that has not been approved/reviewed\r\n3. Access the add-on listing page  (see https://addons.allizom.org/en-US/firefox/addon/1800x1800/)\r\n4. Observe the error message displayed in the ratings breakdown section\r\n\r\nActual result:\r\nThere is an unauthorized (403) message displayed\r\n\r\nExpected result:\r\nThere should be no error messages in the ratings breakdown section\r\n\r\nNotes:\r\n- reproduced on AMO stage with FF61, Win10x64\r\n- the error is displayed to Admin users as well\r\n\r\n![image](https://user-images.githubusercontent.com/31961530/43889054-dbacb3ea-9bcb-11e8-9752-b231c70e553d.png)\r\n\r\n\r\n\r\n<details>\r\n<summary>Console log</summary>\r\n\r\n![image](https://user-images.githubusercontent.com/31961530/43888819-42f1f0a2-9bcb-11e8-8882-0937ba27bd79.png)\r\n\r\n</details>\r\n"},"comment":{"url":"https://api.github.com/repos/mozilla/addons-frontend/issues/comments/417464199","html_url":"https://github.com/mozilla/addons-frontend/issues/5891#issuecomment-417464199","issue_url":"https://api.github.com/repos/mozilla/addons-frontend/issues/5891","id":417464199,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzQ2NDE5OQ==","user":{"login":"bobsilverberg","id":142755,"node_id":"MDQ6VXNlcjE0Mjc1NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/142755?v=4","gravatar_id":"","url":"https://api.github.com/users/bobsilverberg","html_url":"https://github.com/bobsilverberg","followers_url":"https://api.github.com/users/bobsilverberg/followers","following_url":"https://api.github.com/users/bobsilverberg/following{/other_user}","gists_url":"https://api.github.com/users/bobsilverberg/gists{/gist_id}","starred_url":"https://api.github.com/users/bobsilverberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobsilverberg/subscriptions","organizations_url":"https://api.github.com/users/bobsilverberg/orgs","repos_url":"https://api.github.com/users/bobsilverberg/repos","events_url":"https://api.github.com/users/bobsilverberg/events{/privacy}","received_events_url":"https://api.github.com/users/bobsilverberg/received_events","type":"User","site_admin":false},"created_at":"2018-08-30T20:55:47Z","updated_at":"2018-08-30T20:55:47Z","author_association":"CONTRIBUTOR","body":"The call to fetch the grouped ratings is failing with a 403 error. That doesn't seem like it should be the case, but I'm not sure how this all should work for a disabled/unapproved add-on.\r\n\r\n@EnTeQuAk is it expected that a call to `/api/v3/reviews/review/?addon=495711&show_grouped_ratings=true` (which is for a disabled add-on, on dev) would return a 403? It seems that we are able to return the details for the add-on itself, but not the reviews."}}
{"actor":{"display_login":"bobsilverberg"}}