{"action":"created","comment":{"url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls/comments/76232875","id":76232875,"diff_hunk":"@@ -0,0 +1,26 @@\n+var Marionette = require('backbone.marionette');\n+var app = require('../instances/appInstance');\n+var voteLayout = require('../views/votes/MyVoteLayout');\n+var myVoteCollection = require('../collections/MyVoteCollection');\n+var myVoteModel = require('../models/MyVoteModel');\n+var myVoteDetailView = require('../views/votes/MyVoteDetail');\n+\n+module.exports = Marionette.Object.extend({\n+    index: function () {\n+        var myVoteCollection = new myVoteCollection();\n+        myVoteCollection.fetch();\n+        app.render(new voteLayout({collection: myVoteCollection}));\n+    },\n+    show: function (id) {\n+        var myVoteModel = new myVoteModel({id: id});\n+        myVoteModel.fetch({\n+            success: function () {\n+                app.render(new myVoteDetailView({model: myVoteModel}));","path":"resources/assets/js/app/controllers/ShowUserVotes.js","position":18,"original_position":18,"commit_id":"6ca9dfde16d2157d2c9604b5a76234a12b7c140c","original_commit_id":"6ca9dfde16d2157d2c9604b5a76234a12b7c140c","user":{"login":"TatsuUkraine","id":621542,"avatar_url":"https://avatars.githubusercontent.com/u/621542?v=3","gravatar_id":"","url":"https://api.github.com/users/TatsuUkraine","html_url":"https://github.com/TatsuUkraine","followers_url":"https://api.github.com/users/TatsuUkraine/followers","following_url":"https://api.github.com/users/TatsuUkraine/following{/other_user}","gists_url":"https://api.github.com/users/TatsuUkraine/gists{/gist_id}","starred_url":"https://api.github.com/users/TatsuUkraine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TatsuUkraine/subscriptions","organizations_url":"https://api.github.com/users/TatsuUkraine/orgs","repos_url":"https://api.github.com/users/TatsuUkraine/repos","events_url":"https://api.github.com/users/TatsuUkraine/events{/privacy}","received_events_url":"https://api.github.com/users/TatsuUkraine/received_events","type":"User","site_admin":false},"body":"your model should be sync with view, so if you add just modelEvents like 'change' it should handle you any model update, you no need sync event for this","created_at":"2016-08-25T12:27:45Z","updated_at":"2016-08-25T12:27:45Z","html_url":"https://github.com/BinaryStudioAcademy/bsa-2016-forum/pull/145#discussion_r76232875","pull_request_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls/145","_links":{"self":{"href":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls/comments/76232875"},"html":{"href":"https://github.com/BinaryStudioAcademy/bsa-2016-forum/pull/145#discussion_r76232875"},"pull_request":{"href":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls/145"}}},"pull_request":{"url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls/145","id":82136552,"html_url":"https://github.com/BinaryStudioAcademy/bsa-2016-forum/pull/145","diff_url":"https://github.com/BinaryStudioAcademy/bsa-2016-forum/pull/145.diff","patch_url":"https://github.com/BinaryStudioAcademy/bsa-2016-forum/pull/145.patch","issue_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/issues/145","number":145,"state":"closed","locked":false,"title":"Pla/feature get users votes","user":{"login":"tobeinword1987","id":17593032,"avatar_url":"https://avatars.githubusercontent.com/u/17593032?v=3","gravatar_id":"","url":"https://api.github.com/users/tobeinword1987","html_url":"https://github.com/tobeinword1987","followers_url":"https://api.github.com/users/tobeinword1987/followers","following_url":"https://api.github.com/users/tobeinword1987/following{/other_user}","gists_url":"https://api.github.com/users/tobeinword1987/gists{/gist_id}","starred_url":"https://api.github.com/users/tobeinword1987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobeinword1987/subscriptions","organizations_url":"https://api.github.com/users/tobeinword1987/orgs","repos_url":"https://api.github.com/users/tobeinword1987/repos","events_url":"https://api.github.com/users/tobeinword1987/events{/privacy}","received_events_url":"https://api.github.com/users/tobeinword1987/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-22T05:41:07Z","updated_at":"2016-08-25T12:27:45Z","closed_at":"2016-08-25T12:08:54Z","merged_at":null,"merge_commit_sha":"bbf0d61653f563c2a7aa5c396ad3c503d923d7da","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls/145/commits","review_comments_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls/145/comments","review_comment_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/issues/145/comments","statuses_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/statuses/6ca9dfde16d2157d2c9604b5a76234a12b7c140c","head":{"label":"BinaryStudioAcademy:PLA/feature-getUsersVotes","ref":"PLA/feature-getUsersVotes","sha":"6ca9dfde16d2157d2c9604b5a76234a12b7c140c","user":{"login":"BinaryStudioAcademy","id":13114349,"avatar_url":"https://avatars.githubusercontent.com/u/13114349?v=3","gravatar_id":"","url":"https://api.github.com/users/BinaryStudioAcademy","html_url":"https://github.com/BinaryStudioAcademy","followers_url":"https://api.github.com/users/BinaryStudioAcademy/followers","following_url":"https://api.github.com/users/BinaryStudioAcademy/following{/other_user}","gists_url":"https://api.github.com/users/BinaryStudioAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/BinaryStudioAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BinaryStudioAcademy/subscriptions","organizations_url":"https://api.github.com/users/BinaryStudioAcademy/orgs","repos_url":"https://api.github.com/users/BinaryStudioAcademy/repos","events_url":"https://api.github.com/users/BinaryStudioAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/BinaryStudioAcademy/received_events","type":"Organization","site_admin":false},"repo":{"id":65197608,"name":"bsa-2016-forum","full_name":"BinaryStudioAcademy/bsa-2016-forum","owner":{"login":"BinaryStudioAcademy","id":13114349,"avatar_url":"https://avatars.githubusercontent.com/u/13114349?v=3","gravatar_id":"","url":"https://api.github.com/users/BinaryStudioAcademy","html_url":"https://github.com/BinaryStudioAcademy","followers_url":"https://api.github.com/users/BinaryStudioAcademy/followers","following_url":"https://api.github.com/users/BinaryStudioAcademy/following{/other_user}","gists_url":"https://api.github.com/users/BinaryStudioAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/BinaryStudioAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BinaryStudioAcademy/subscriptions","organizations_url":"https://api.github.com/users/BinaryStudioAcademy/orgs","repos_url":"https://api.github.com/users/BinaryStudioAcademy/repos","events_url":"https://api.github.com/users/BinaryStudioAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/BinaryStudioAcademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BinaryStudioAcademy/bsa-2016-forum","description":"BSA 2016 PHP Forum project","fork":false,"url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum","forks_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/forks","keys_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/teams","hooks_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/hooks","issue_events_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/issues/events{/number}","events_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/events","assignees_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/assignees{/user}","branches_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/branches{/branch}","tags_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/tags","blobs_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/git/refs{/sha}","trees_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/statuses/{sha}","languages_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/languages","stargazers_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/stargazers","contributors_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/contributors","subscribers_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/subscribers","subscription_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/subscription","commits_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/commits{/sha}","git_commits_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/git/commits{/sha}","comments_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/comments{/number}","issue_comment_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/issues/comments{/number}","contents_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/contents/{+path}","compare_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/merges","archive_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/downloads","issues_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/issues{/number}","pulls_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls{/number}","milestones_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/milestones{/number}","notifications_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/labels{/name}","releases_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/releases{/id}","deployments_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/deployments","created_at":"2016-08-08T11:07:57Z","updated_at":"2016-08-08T12:28:55Z","pushed_at":"2016-08-25T11:25:48Z","git_url":"git://github.com/BinaryStudioAcademy/bsa-2016-forum.git","ssh_url":"git@github.com:BinaryStudioAcademy/bsa-2016-forum.git","clone_url":"https://github.com/BinaryStudioAcademy/bsa-2016-forum.git","svn_url":"https://github.com/BinaryStudioAcademy/bsa-2016-forum","homepage":"","size":2117,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":11,"forks":3,"open_issues":11,"watchers":0,"default_branch":"next"}},"base":{"label":"BinaryStudioAcademy:next","ref":"next","sha":"cdda1a75e3500decf01d9d6c642d339b7d0f7edc","user":{"login":"BinaryStudioAcademy","id":13114349,"avatar_url":"https://avatars.githubusercontent.com/u/13114349?v=3","gravatar_id":"","url":"https://api.github.com/users/BinaryStudioAcademy","html_url":"https://github.com/BinaryStudioAcademy","followers_url":"https://api.github.com/users/BinaryStudioAcademy/followers","following_url":"https://api.github.com/users/BinaryStudioAcademy/following{/other_user}","gists_url":"https://api.github.com/users/BinaryStudioAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/BinaryStudioAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BinaryStudioAcademy/subscriptions","organizations_url":"https://api.github.com/users/BinaryStudioAcademy/orgs","repos_url":"https://api.github.com/users/BinaryStudioAcademy/repos","events_url":"https://api.github.com/users/BinaryStudioAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/BinaryStudioAcademy/received_events","type":"Organization","site_admin":false},"repo":{"id":65197608,"name":"bsa-2016-forum","full_name":"BinaryStudioAcademy/bsa-2016-forum","owner":{"login":"BinaryStudioAcademy","id":13114349,"avatar_url":"https://avatars.githubusercontent.com/u/13114349?v=3","gravatar_id":"","url":"https://api.github.com/users/BinaryStudioAcademy","html_url":"https://github.com/BinaryStudioAcademy","followers_url":"https://api.github.com/users/BinaryStudioAcademy/followers","following_url":"https://api.github.com/users/BinaryStudioAcademy/following{/other_user}","gists_url":"https://api.github.com/users/BinaryStudioAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/BinaryStudioAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BinaryStudioAcademy/subscriptions","organizations_url":"https://api.github.com/users/BinaryStudioAcademy/orgs","repos_url":"https://api.github.com/users/BinaryStudioAcademy/repos","events_url":"https://api.github.com/users/BinaryStudioAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/BinaryStudioAcademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BinaryStudioAcademy/bsa-2016-forum","description":"BSA 2016 PHP Forum project","fork":false,"url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum","forks_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/forks","keys_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/teams","hooks_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/hooks","issue_events_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/issues/events{/number}","events_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/events","assignees_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/assignees{/user}","branches_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/branches{/branch}","tags_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/tags","blobs_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/git/refs{/sha}","trees_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/statuses/{sha}","languages_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/languages","stargazers_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/stargazers","contributors_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/contributors","subscribers_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/subscribers","subscription_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/subscription","commits_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/commits{/sha}","git_commits_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/git/commits{/sha}","comments_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/comments{/number}","issue_comment_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/issues/comments{/number}","contents_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/contents/{+path}","compare_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/merges","archive_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/downloads","issues_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/issues{/number}","pulls_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls{/number}","milestones_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/milestones{/number}","notifications_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/labels{/name}","releases_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/releases{/id}","deployments_url":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/deployments","created_at":"2016-08-08T11:07:57Z","updated_at":"2016-08-08T12:28:55Z","pushed_at":"2016-08-25T11:25:48Z","git_url":"git://github.com/BinaryStudioAcademy/bsa-2016-forum.git","ssh_url":"git@github.com:BinaryStudioAcademy/bsa-2016-forum.git","clone_url":"https://github.com/BinaryStudioAcademy/bsa-2016-forum.git","svn_url":"https://github.com/BinaryStudioAcademy/bsa-2016-forum","homepage":"","size":2117,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":11,"forks":3,"open_issues":11,"watchers":0,"default_branch":"next"}},"_links":{"self":{"href":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls/145"},"html":{"href":"https://github.com/BinaryStudioAcademy/bsa-2016-forum/pull/145"},"issue":{"href":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/issues/145"},"comments":{"href":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/issues/145/comments"},"review_comments":{"href":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls/145/comments"},"review_comment":{"href":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/pulls/145/commits"},"statuses":{"href":"https://api.github.com/repos/BinaryStudioAcademy/bsa-2016-forum/statuses/6ca9dfde16d2157d2c9604b5a76234a12b7c140c"}}}}
{"actor":{"display_login":"TatsuUkraine"}}