{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/addons-frontend/pulls/comments/185022149","pull_request_review_id":116330295,"id":185022149,"diff_hunk":"@@ -82,18 +101,18 @@ export class RatingBase extends React.Component {\n   }\n \n   render() {\n-    const { className, i18n, rating, readOnly, styleSize, isOwner } = this.props;\n+    const { className, i18n, isOwner, rating, readOnly, styleSize } = this.props;\n     if (!RATING_STYLE_SIZES.includes(styleSize)) {\n       throw new Error(\n         `styleSize=${styleSize} is not a valid value; ` +\n         `possible values: ${RATING_STYLE_SIZES.join(', ')}`);\n     }\n-    let description = i18n.gettext('This add-on has no ratings.');\n-    if (rating) {\n-      description = i18n.sprintf(i18n.gettext('Rated %(rating)s out of 5'),\n-        { rating: i18n.formatNumber(parseFloat(rating).toFixed(1)) });\n-    } else if (!readOnly) {\n-      description = i18n.gettext('Click to rate this add-on');\n+\n+    let description = null;\n+    // Wrap readOnly ratings with a description to maintain functionality\n+    // for the \"Average rating of developer’s add-ons\" tooltip\n+    if (readOnly) {","path":"src/ui/components/Rating/index.js","position":57,"original_position":57,"commit_id":"c75ab9c9de62d43065bc901a077acd6500a39e79","original_commit_id":"c75ab9c9de62d43065bc901a077acd6500a39e79","user":{"login":"bobsilverberg","id":142755,"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},"body":"This could be shortened to `const description = readOnly ? this.renderTitle(i18n, rating, readOnly, null) : null;`","created_at":"2018-04-30T15:32:22Z","updated_at":"2018-04-30T15:57:58Z","html_url":"https://github.com/mozilla/addons-frontend/pull/4693#discussion_r185022149","pull_request_url":"https://api.github.com/repos/mozilla/addons-frontend/pulls/4693","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/mozilla/addons-frontend/pulls/comments/185022149"},"html":{"href":"https://github.com/mozilla/addons-frontend/pull/4693#discussion_r185022149"},"pull_request":{"href":"https://api.github.com/repos/mozilla/addons-frontend/pulls/4693"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/addons-frontend/pulls/4693","id":178691450,"html_url":"https://github.com/mozilla/addons-frontend/pull/4693","diff_url":"https://github.com/mozilla/addons-frontend/pull/4693.diff","patch_url":"https://github.com/mozilla/addons-frontend/pull/4693.patch","issue_url":"https://api.github.com/repos/mozilla/addons-frontend/issues/4693","number":4693,"state":"open","locked":false,"title":"Add a more intuitive tool-tip for each add-ons rating star","user":{"login":"SeanPrashad","id":13009507,"avatar_url":"https://avatars2.githubusercontent.com/u/13009507?v=4","gravatar_id":"","url":"https://api.github.com/users/SeanPrashad","html_url":"https://github.com/SeanPrashad","followers_url":"https://api.github.com/users/SeanPrashad/followers","following_url":"https://api.github.com/users/SeanPrashad/following{/other_user}","gists_url":"https://api.github.com/users/SeanPrashad/gists{/gist_id}","starred_url":"https://api.github.com/users/SeanPrashad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeanPrashad/subscriptions","organizations_url":"https://api.github.com/users/SeanPrashad/orgs","repos_url":"https://api.github.com/users/SeanPrashad/repos","events_url":"https://api.github.com/users/SeanPrashad/events{/privacy}","received_events_url":"https://api.github.com/users/SeanPrashad/received_events","type":"User","site_admin":false},"body":"#Fixes #4692 - Each rating star should have its own title attribute with the rating number respective to it.","created_at":"2018-03-31T17:12:41Z","updated_at":"2018-04-30T15:57:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"46f48d6f67e28e4caf6df35773611e206ebbb214","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/addons-frontend/pulls/4693/commits","review_comments_url":"https://api.github.com/repos/mozilla/addons-frontend/pulls/4693/comments","review_comment_url":"https://api.github.com/repos/mozilla/addons-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/addons-frontend/issues/4693/comments","statuses_url":"https://api.github.com/repos/mozilla/addons-frontend/statuses/c75ab9c9de62d43065bc901a077acd6500a39e79","head":{"label":"SeanPrashad:issue-4692","ref":"issue-4692","sha":"c75ab9c9de62d43065bc901a077acd6500a39e79","user":{"login":"SeanPrashad","id":13009507,"avatar_url":"https://avatars2.githubusercontent.com/u/13009507?v=4","gravatar_id":"","url":"https://api.github.com/users/SeanPrashad","html_url":"https://github.com/SeanPrashad","followers_url":"https://api.github.com/users/SeanPrashad/followers","following_url":"https://api.github.com/users/SeanPrashad/following{/other_user}","gists_url":"https://api.github.com/users/SeanPrashad/gists{/gist_id}","starred_url":"https://api.github.com/users/SeanPrashad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeanPrashad/subscriptions","organizations_url":"https://api.github.com/users/SeanPrashad/orgs","repos_url":"https://api.github.com/users/SeanPrashad/repos","events_url":"https://api.github.com/users/SeanPrashad/events{/privacy}","received_events_url":"https://api.github.com/users/SeanPrashad/received_events","type":"User","site_admin":false},"repo":{"id":124780607,"name":"addons-frontend","full_name":"SeanPrashad/addons-frontend","owner":{"login":"SeanPrashad","id":13009507,"avatar_url":"https://avatars2.githubusercontent.com/u/13009507?v=4","gravatar_id":"","url":"https://api.github.com/users/SeanPrashad","html_url":"https://github.com/SeanPrashad","followers_url":"https://api.github.com/users/SeanPrashad/followers","following_url":"https://api.github.com/users/SeanPrashad/following{/other_user}","gists_url":"https://api.github.com/users/SeanPrashad/gists{/gist_id}","starred_url":"https://api.github.com/users/SeanPrashad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeanPrashad/subscriptions","organizations_url":"https://api.github.com/users/SeanPrashad/orgs","repos_url":"https://api.github.com/users/SeanPrashad/repos","events_url":"https://api.github.com/users/SeanPrashad/events{/privacy}","received_events_url":"https://api.github.com/users/SeanPrashad/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SeanPrashad/addons-frontend","description":"Front-end to complement mozilla/addons-server","fork":true,"url":"https://api.github.com/repos/SeanPrashad/addons-frontend","forks_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/forks","keys_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/teams","hooks_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/hooks","issue_events_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/events","assignees_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/tags","blobs_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/languages","stargazers_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/stargazers","contributors_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/contributors","subscribers_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/subscribers","subscription_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/subscription","commits_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/merges","archive_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/downloads","issues_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/labels{/name}","releases_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/SeanPrashad/addons-frontend/deployments","created_at":"2018-03-11T17:23:44Z","updated_at":"2018-04-24T16:42:55Z","pushed_at":"2018-04-25T17:31:42Z","git_url":"git://github.com/SeanPrashad/addons-frontend.git","ssh_url":"git@github.com:SeanPrashad/addons-frontend.git","clone_url":"https://github.com/SeanPrashad/addons-frontend.git","svn_url":"https://github.com/SeanPrashad/addons-frontend","homepage":"","size":508843,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"0d592cf3d1f43734b1dfdca9b878f363a7b0c65f","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars2.githubusercontent.com/u/131524?v=4","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":52104368,"name":"addons-frontend","full_name":"mozilla/addons-frontend","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars2.githubusercontent.com/u/131524?v=4","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/addons-frontend","description":"Front-end to complement mozilla/addons-server","fork":false,"url":"https://api.github.com/repos/mozilla/addons-frontend","forks_url":"https://api.github.com/repos/mozilla/addons-frontend/forks","keys_url":"https://api.github.com/repos/mozilla/addons-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/addons-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/addons-frontend/teams","hooks_url":"https://api.github.com/repos/mozilla/addons-frontend/hooks","issue_events_url":"https://api.github.com/repos/mozilla/addons-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/addons-frontend/events","assignees_url":"https://api.github.com/repos/mozilla/addons-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/addons-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/addons-frontend/tags","blobs_url":"https://api.github.com/repos/mozilla/addons-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/addons-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/addons-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/addons-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/addons-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/addons-frontend/languages","stargazers_url":"https://api.github.com/repos/mozilla/addons-frontend/stargazers","contributors_url":"https://api.github.com/repos/mozilla/addons-frontend/contributors","subscribers_url":"https://api.github.com/repos/mozilla/addons-frontend/subscribers","subscription_url":"https://api.github.com/repos/mozilla/addons-frontend/subscription","commits_url":"https://api.github.com/repos/mozilla/addons-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/addons-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/addons-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/addons-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/addons-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/addons-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/addons-frontend/merges","archive_url":"https://api.github.com/repos/mozilla/addons-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/addons-frontend/downloads","issues_url":"https://api.github.com/repos/mozilla/addons-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/addons-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/addons-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/addons-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/addons-frontend/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/addons-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/addons-frontend/deployments","created_at":"2016-02-19T17:25:57Z","updated_at":"2018-04-30T15:46:56Z","pushed_at":"2018-04-30T15:46:54Z","git_url":"git://github.com/mozilla/addons-frontend.git","ssh_url":"git@github.com:mozilla/addons-frontend.git","clone_url":"https://github.com/mozilla/addons-frontend.git","svn_url":"https://github.com/mozilla/addons-frontend","homepage":"","size":508853,"stargazers_count":141,"watchers_count":141,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":125,"mirror_url":null,"archived":false,"open_issues_count":484,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":125,"open_issues":484,"watchers":141,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/addons-frontend/pulls/4693"},"html":{"href":"https://github.com/mozilla/addons-frontend/pull/4693"},"issue":{"href":"https://api.github.com/repos/mozilla/addons-frontend/issues/4693"},"comments":{"href":"https://api.github.com/repos/mozilla/addons-frontend/issues/4693/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/addons-frontend/pulls/4693/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/addons-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/addons-frontend/pulls/4693/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/addons-frontend/statuses/c75ab9c9de62d43065bc901a077acd6500a39e79"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"bobsilverberg"}}