{"action":"created","comment":{"url":"https://api.github.com/repos/DmitriyShalimov/Deezer/pulls/comments/237083337","pull_request_review_id":179294887,"id":237083337,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNzA4MzMzNw==","diff_hunk":"@@ -0,0 +1,280 @@\n+package com.deezer.config;\n+\n+import org.springframework.context.annotation.Bean;\n+import org.springframework.context.annotation.Configuration;\n+\n+@Configuration\n+public class QueryContextConfig {\n+    @Bean\n+    public String getAllAlbumsByArtistIdSql() {\n+        return \"SELECT  al.id ,al.title, \" +\n+                \"al.picture_link, ar.name as artist_name \" +\n+                \"FROM album al join artist ar on al.artist = ar.id \" +","path":"src/main/java/com/deezer/config/QueryContextConfig.java","position":12,"original_position":12,"commit_id":"60fcb814445b73382b8fc39f5f1d1fdec0751211","original_commit_id":"60fcb814445b73382b8fc39f5f1d1fdec0751211","user":{"login":"sonarcloud[bot]","id":39514782,"node_id":"MDM6Qm90Mzk1MTQ3ODI=","avatar_url":"https://avatars2.githubusercontent.com/in/12526?v=4","gravatar_id":"","url":"https://api.github.com/users/sonarcloud%5Bbot%5D","html_url":"https://github.com/apps/sonarcloud","followers_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/followers","following_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/repos","events_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"![Code Smell](https://sonarsource.github.io/sonar-github/code_smell.png 'Code Smell') Code Smell: Define a constant instead of duplicating this literal \"FROM album al join artist ar on al.artist = ar.id \" 3 times. ([squid:S1192](https://sonarcloud.io/organizations/dmitriyshalimov-github/rules#rule_key=squid%3AS1192))\n\n[See it in SonarCloud](https://sonarcloud.io/project/issues?id=com.deezer&pullRequest=21&issues=AWdagnV_vF44e7kV87Wd&open=AWdagnV_vF44e7kV87Wd)\n\n[ISSUE_KEY]: AWdagnV_vF44e7kV87Wd","created_at":"2018-11-28T13:30:42Z","updated_at":"2018-11-28T13:30:45Z","html_url":"https://github.com/DmitriyShalimov/Deezer/pull/21#discussion_r237083337","pull_request_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/pulls/21","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/DmitriyShalimov/Deezer/pulls/comments/237083337"},"html":{"href":"https://github.com/DmitriyShalimov/Deezer/pull/21#discussion_r237083337"},"pull_request":{"href":"https://api.github.com/repos/DmitriyShalimov/Deezer/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/DmitriyShalimov/Deezer/pulls/21","id":234275326,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM0Mjc1MzI2","html_url":"https://github.com/DmitriyShalimov/Deezer/pull/21","diff_url":"https://github.com/DmitriyShalimov/Deezer/pull/21.diff","patch_url":"https://github.com/DmitriyShalimov/Deezer/pull/21.patch","issue_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/issues/21","number":21,"state":"open","locked":false,"title":"overall refactor and react webpack","user":{"login":"sunnyno","id":11801738,"node_id":"MDQ6VXNlcjExODAxNzM4","avatar_url":"https://avatars0.githubusercontent.com/u/11801738?v=4","gravatar_id":"","url":"https://api.github.com/users/sunnyno","html_url":"https://github.com/sunnyno","followers_url":"https://api.github.com/users/sunnyno/followers","following_url":"https://api.github.com/users/sunnyno/following{/other_user}","gists_url":"https://api.github.com/users/sunnyno/gists{/gist_id}","starred_url":"https://api.github.com/users/sunnyno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunnyno/subscriptions","organizations_url":"https://api.github.com/users/sunnyno/orgs","repos_url":"https://api.github.com/users/sunnyno/repos","events_url":"https://api.github.com/users/sunnyno/events{/privacy}","received_events_url":"https://api.github.com/users/sunnyno/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-28T13:25:45Z","updated_at":"2018-11-28T13:30:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"36eaac8d19d1d60eb6d2ca24cc1304585b18eb48","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/pulls/21/commits","review_comments_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/pulls/21/comments","review_comment_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/issues/21/comments","statuses_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/statuses/60fcb814445b73382b8fc39f5f1d1fdec0751211","head":{"label":"DmitriyShalimov:overall-refactor","ref":"overall-refactor","sha":"60fcb814445b73382b8fc39f5f1d1fdec0751211","user":{"login":"DmitriyShalimov","id":13985369,"node_id":"MDQ6VXNlcjEzOTg1MzY5","avatar_url":"https://avatars1.githubusercontent.com/u/13985369?v=4","gravatar_id":"","url":"https://api.github.com/users/DmitriyShalimov","html_url":"https://github.com/DmitriyShalimov","followers_url":"https://api.github.com/users/DmitriyShalimov/followers","following_url":"https://api.github.com/users/DmitriyShalimov/following{/other_user}","gists_url":"https://api.github.com/users/DmitriyShalimov/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitriyShalimov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitriyShalimov/subscriptions","organizations_url":"https://api.github.com/users/DmitriyShalimov/orgs","repos_url":"https://api.github.com/users/DmitriyShalimov/repos","events_url":"https://api.github.com/users/DmitriyShalimov/events{/privacy}","received_events_url":"https://api.github.com/users/DmitriyShalimov/received_events","type":"User","site_admin":false},"repo":{"id":148375558,"node_id":"MDEwOlJlcG9zaXRvcnkxNDgzNzU1NTg=","name":"Deezer","full_name":"DmitriyShalimov/Deezer","private":false,"owner":{"login":"DmitriyShalimov","id":13985369,"node_id":"MDQ6VXNlcjEzOTg1MzY5","avatar_url":"https://avatars1.githubusercontent.com/u/13985369?v=4","gravatar_id":"","url":"https://api.github.com/users/DmitriyShalimov","html_url":"https://github.com/DmitriyShalimov","followers_url":"https://api.github.com/users/DmitriyShalimov/followers","following_url":"https://api.github.com/users/DmitriyShalimov/following{/other_user}","gists_url":"https://api.github.com/users/DmitriyShalimov/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitriyShalimov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitriyShalimov/subscriptions","organizations_url":"https://api.github.com/users/DmitriyShalimov/orgs","repos_url":"https://api.github.com/users/DmitriyShalimov/repos","events_url":"https://api.github.com/users/DmitriyShalimov/events{/privacy}","received_events_url":"https://api.github.com/users/DmitriyShalimov/received_events","type":"User","site_admin":false},"html_url":"https://github.com/DmitriyShalimov/Deezer","description":null,"fork":false,"url":"https://api.github.com/repos/DmitriyShalimov/Deezer","forks_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/forks","keys_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/teams","hooks_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/hooks","issue_events_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/issues/events{/number}","events_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/events","assignees_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/assignees{/user}","branches_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/branches{/branch}","tags_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/tags","blobs_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/git/refs{/sha}","trees_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/statuses/{sha}","languages_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/languages","stargazers_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/stargazers","contributors_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/contributors","subscribers_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/subscribers","subscription_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/subscription","commits_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/commits{/sha}","git_commits_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/git/commits{/sha}","comments_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/comments{/number}","issue_comment_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/issues/comments{/number}","contents_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/contents/{+path}","compare_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/merges","archive_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/downloads","issues_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/issues{/number}","pulls_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/pulls{/number}","milestones_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/milestones{/number}","notifications_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/labels{/name}","releases_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/releases{/id}","deployments_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/deployments","created_at":"2018-09-11T20:22:44Z","updated_at":"2018-10-04T07:02:00Z","pushed_at":"2018-11-28T13:25:45Z","git_url":"git://github.com/DmitriyShalimov/Deezer.git","ssh_url":"git@github.com:DmitriyShalimov/Deezer.git","clone_url":"https://github.com/DmitriyShalimov/Deezer.git","svn_url":"https://github.com/DmitriyShalimov/Deezer","homepage":null,"size":803,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"DmitriyShalimov:master","ref":"master","sha":"ea3303147107006d1db8b5ce1492566600dc68e0","user":{"login":"DmitriyShalimov","id":13985369,"node_id":"MDQ6VXNlcjEzOTg1MzY5","avatar_url":"https://avatars1.githubusercontent.com/u/13985369?v=4","gravatar_id":"","url":"https://api.github.com/users/DmitriyShalimov","html_url":"https://github.com/DmitriyShalimov","followers_url":"https://api.github.com/users/DmitriyShalimov/followers","following_url":"https://api.github.com/users/DmitriyShalimov/following{/other_user}","gists_url":"https://api.github.com/users/DmitriyShalimov/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitriyShalimov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitriyShalimov/subscriptions","organizations_url":"https://api.github.com/users/DmitriyShalimov/orgs","repos_url":"https://api.github.com/users/DmitriyShalimov/repos","events_url":"https://api.github.com/users/DmitriyShalimov/events{/privacy}","received_events_url":"https://api.github.com/users/DmitriyShalimov/received_events","type":"User","site_admin":false},"repo":{"id":148375558,"node_id":"MDEwOlJlcG9zaXRvcnkxNDgzNzU1NTg=","name":"Deezer","full_name":"DmitriyShalimov/Deezer","private":false,"owner":{"login":"DmitriyShalimov","id":13985369,"node_id":"MDQ6VXNlcjEzOTg1MzY5","avatar_url":"https://avatars1.githubusercontent.com/u/13985369?v=4","gravatar_id":"","url":"https://api.github.com/users/DmitriyShalimov","html_url":"https://github.com/DmitriyShalimov","followers_url":"https://api.github.com/users/DmitriyShalimov/followers","following_url":"https://api.github.com/users/DmitriyShalimov/following{/other_user}","gists_url":"https://api.github.com/users/DmitriyShalimov/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitriyShalimov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitriyShalimov/subscriptions","organizations_url":"https://api.github.com/users/DmitriyShalimov/orgs","repos_url":"https://api.github.com/users/DmitriyShalimov/repos","events_url":"https://api.github.com/users/DmitriyShalimov/events{/privacy}","received_events_url":"https://api.github.com/users/DmitriyShalimov/received_events","type":"User","site_admin":false},"html_url":"https://github.com/DmitriyShalimov/Deezer","description":null,"fork":false,"url":"https://api.github.com/repos/DmitriyShalimov/Deezer","forks_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/forks","keys_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/teams","hooks_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/hooks","issue_events_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/issues/events{/number}","events_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/events","assignees_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/assignees{/user}","branches_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/branches{/branch}","tags_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/tags","blobs_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/git/refs{/sha}","trees_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/statuses/{sha}","languages_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/languages","stargazers_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/stargazers","contributors_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/contributors","subscribers_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/subscribers","subscription_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/subscription","commits_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/commits{/sha}","git_commits_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/git/commits{/sha}","comments_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/comments{/number}","issue_comment_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/issues/comments{/number}","contents_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/contents/{+path}","compare_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/merges","archive_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/downloads","issues_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/issues{/number}","pulls_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/pulls{/number}","milestones_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/milestones{/number}","notifications_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/labels{/name}","releases_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/releases{/id}","deployments_url":"https://api.github.com/repos/DmitriyShalimov/Deezer/deployments","created_at":"2018-09-11T20:22:44Z","updated_at":"2018-10-04T07:02:00Z","pushed_at":"2018-11-28T13:25:45Z","git_url":"git://github.com/DmitriyShalimov/Deezer.git","ssh_url":"git@github.com:DmitriyShalimov/Deezer.git","clone_url":"https://github.com/DmitriyShalimov/Deezer.git","svn_url":"https://github.com/DmitriyShalimov/Deezer","homepage":null,"size":803,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DmitriyShalimov/Deezer/pulls/21"},"html":{"href":"https://github.com/DmitriyShalimov/Deezer/pull/21"},"issue":{"href":"https://api.github.com/repos/DmitriyShalimov/Deezer/issues/21"},"comments":{"href":"https://api.github.com/repos/DmitriyShalimov/Deezer/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/DmitriyShalimov/Deezer/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/DmitriyShalimov/Deezer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DmitriyShalimov/Deezer/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/DmitriyShalimov/Deezer/statuses/60fcb814445b73382b8fc39f5f1d1fdec0751211"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"sonarcloud"}}