{"action":"created","comment":{"url":"https://api.github.com/repos/ITAR089IF/project-management-tool/pulls/comments/240172797","pull_request_review_id":183138357,"id":240172797,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MDE3Mjc5Nw==","diff_hunk":"@@ -1,28 +1,31 @@\n $(document).on('turbolinks:load', function() {\n-  Sortable.create(all_tasks, {\n-    handle: '.glyphicon-move',\n-    animation: 150,\n-    onEnd: function(evt) {\n-      var moveOption = '';\n-      var movePositions = 0;\n+  var all_tasks = document.getElementById('all_tasks');\n+  if (all_tasks){\n+    Sortable.create(all_tasks, {\n+      handle: '.glyphicon-move',\n+      animation: 150,\n+      onEnd: function(evt) {\n+        var moveOption = '';\n+        var movePositions = 0;\n \n-      if(evt.oldIndex > evt.newIndex) {\n-        moveOption = 'up';\n-        movePositions = evt.oldIndex - evt.newIndex;\n-      } else if(evt.oldIndex < evt.newIndex)  {\n-        moveOption = 'down';\n-        movePositions = evt.newIndex + evt.oldIndex;\n-      }\n-      $.ajax({\n-        type: \"PATCH\",\n-        url: Routes.move_account_project_task_path($(evt.item).data('project-id'), $(evt.item).data('task-id')),\n-        data: {\n-          move: {\n-            move_option: moveOption,\n-            move_positions: movePositions\n-          }\n+        if(evt.oldIndex > evt.newIndex) {\n+          moveOption = 'up';\n+          movePositions = evt.oldIndex - evt.newIndex;\n+        } else if(evt.oldIndex < evt.newIndex)  {","path":"app/assets/javascripts/sort.js","position":35,"original_position":35,"commit_id":"9111297c9602c3b824870f0770ea2234c1524cc8","original_commit_id":"9111297c9602c3b824870f0770ea2234c1524cc8","user":{"login":"pereslop","id":23212735,"node_id":"MDQ6VXNlcjIzMjEyNzM1","avatar_url":"https://avatars1.githubusercontent.com/u/23212735?v=4","gravatar_id":"","url":"https://api.github.com/users/pereslop","html_url":"https://github.com/pereslop","followers_url":"https://api.github.com/users/pereslop/followers","following_url":"https://api.github.com/users/pereslop/following{/other_user}","gists_url":"https://api.github.com/users/pereslop/gists{/gist_id}","starred_url":"https://api.github.com/users/pereslop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pereslop/subscriptions","organizations_url":"https://api.github.com/users/pereslop/orgs","repos_url":"https://api.github.com/users/pereslop/repos","events_url":"https://api.github.com/users/pereslop/events{/privacy}","received_events_url":"https://api.github.com/users/pereslop/received_events","type":"User","site_admin":false},"body":"two spaces before curly brackets","created_at":"2018-12-10T11:22:04Z","updated_at":"2018-12-10T11:22:12Z","html_url":"https://github.com/ITAR089IF/project-management-tool/pull/75#discussion_r240172797","pull_request_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/pulls/75","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ITAR089IF/project-management-tool/pulls/comments/240172797"},"html":{"href":"https://github.com/ITAR089IF/project-management-tool/pull/75#discussion_r240172797"},"pull_request":{"href":"https://api.github.com/repos/ITAR089IF/project-management-tool/pulls/75"}}},"pull_request":{"url":"https://api.github.com/repos/ITAR089IF/project-management-tool/pulls/75","id":237075009,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3MDc1MDA5","html_url":"https://github.com/ITAR089IF/project-management-tool/pull/75","diff_url":"https://github.com/ITAR089IF/project-management-tool/pull/75.diff","patch_url":"https://github.com/ITAR089IF/project-management-tool/pull/75.patch","issue_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/issues/75","number":75,"state":"open","locked":false,"title":"fix sort bug","user":{"login":"supersem","id":35763261,"node_id":"MDQ6VXNlcjM1NzYzMjYx","avatar_url":"https://avatars2.githubusercontent.com/u/35763261?v=4","gravatar_id":"","url":"https://api.github.com/users/supersem","html_url":"https://github.com/supersem","followers_url":"https://api.github.com/users/supersem/followers","following_url":"https://api.github.com/users/supersem/following{/other_user}","gists_url":"https://api.github.com/users/supersem/gists{/gist_id}","starred_url":"https://api.github.com/users/supersem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supersem/subscriptions","organizations_url":"https://api.github.com/users/supersem/orgs","repos_url":"https://api.github.com/users/supersem/repos","events_url":"https://api.github.com/users/supersem/events{/privacy}","received_events_url":"https://api.github.com/users/supersem/received_events","type":"User","site_admin":false},"body":"**STATUS**\r\nREADY\r\n\r\n**DESCRIPTION**\r\n\r\n\r\n**CHECK LIST**\r\n- [ ] specs added\r\n- [ ] specs passed\r\n- [ ] code coverage >90%\r\n- [ ] DB indexes added if needed\r\n- [ ] seed.rb file is updated if needed\r\n- [x] PR is reviewed manually again (to make sure you have 100% ready code)\r\n- [x] PR doesn't have conflicts with main branch\r\n- [ ] I've checked new feature as logged in and logged out user if needed\r\n- [ ] \"let!\" is used in specs","created_at":"2018-12-08T15:51:58Z","updated_at":"2018-12-10T11:22:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cfaf2b7f7f17ce3985647a13e03ec0bcea7c8642","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/pulls/75/commits","review_comments_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/pulls/75/comments","review_comment_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/issues/75/comments","statuses_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/statuses/9111297c9602c3b824870f0770ea2234c1524cc8","head":{"label":"ITAR089IF:fix_sort_bug","ref":"fix_sort_bug","sha":"9111297c9602c3b824870f0770ea2234c1524cc8","user":{"login":"ITAR089IF","id":44292928,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0MjkyOTI4","avatar_url":"https://avatars3.githubusercontent.com/u/44292928?v=4","gravatar_id":"","url":"https://api.github.com/users/ITAR089IF","html_url":"https://github.com/ITAR089IF","followers_url":"https://api.github.com/users/ITAR089IF/followers","following_url":"https://api.github.com/users/ITAR089IF/following{/other_user}","gists_url":"https://api.github.com/users/ITAR089IF/gists{/gist_id}","starred_url":"https://api.github.com/users/ITAR089IF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ITAR089IF/subscriptions","organizations_url":"https://api.github.com/users/ITAR089IF/orgs","repos_url":"https://api.github.com/users/ITAR089IF/repos","events_url":"https://api.github.com/users/ITAR089IF/events{/privacy}","received_events_url":"https://api.github.com/users/ITAR089IF/received_events","type":"Organization","site_admin":false},"repo":{"id":153779718,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM3Nzk3MTg=","name":"project-management-tool","full_name":"ITAR089IF/project-management-tool","private":false,"owner":{"login":"ITAR089IF","id":44292928,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0MjkyOTI4","avatar_url":"https://avatars3.githubusercontent.com/u/44292928?v=4","gravatar_id":"","url":"https://api.github.com/users/ITAR089IF","html_url":"https://github.com/ITAR089IF","followers_url":"https://api.github.com/users/ITAR089IF/followers","following_url":"https://api.github.com/users/ITAR089IF/following{/other_user}","gists_url":"https://api.github.com/users/ITAR089IF/gists{/gist_id}","starred_url":"https://api.github.com/users/ITAR089IF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ITAR089IF/subscriptions","organizations_url":"https://api.github.com/users/ITAR089IF/orgs","repos_url":"https://api.github.com/users/ITAR089IF/repos","events_url":"https://api.github.com/users/ITAR089IF/events{/privacy}","received_events_url":"https://api.github.com/users/ITAR089IF/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ITAR089IF/project-management-tool","description":"test project group IF-089.Ruby","fork":false,"url":"https://api.github.com/repos/ITAR089IF/project-management-tool","forks_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/forks","keys_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/teams","hooks_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/hooks","issue_events_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/issues/events{/number}","events_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/events","assignees_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/assignees{/user}","branches_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/branches{/branch}","tags_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/tags","blobs_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/git/refs{/sha}","trees_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/statuses/{sha}","languages_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/languages","stargazers_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/stargazers","contributors_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/contributors","subscribers_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/subscribers","subscription_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/subscription","commits_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/commits{/sha}","git_commits_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/git/commits{/sha}","comments_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/comments{/number}","issue_comment_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/issues/comments{/number}","contents_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/contents/{+path}","compare_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/merges","archive_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/downloads","issues_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/issues{/number}","pulls_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/pulls{/number}","milestones_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/milestones{/number}","notifications_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/labels{/name}","releases_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/releases{/id}","deployments_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/deployments","created_at":"2018-10-19T12:31:31Z","updated_at":"2018-12-09T15:27:07Z","pushed_at":"2018-12-10T11:19:15Z","git_url":"git://github.com/ITAR089IF/project-management-tool.git","ssh_url":"git@github.com:ITAR089IF/project-management-tool.git","clone_url":"https://github.com/ITAR089IF/project-management-tool.git","svn_url":"https://github.com/ITAR089IF/project-management-tool","homepage":null,"size":3806,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":8,"license":null,"forks":0,"open_issues":8,"watchers":0,"default_branch":"development"}},"base":{"label":"ITAR089IF:development","ref":"development","sha":"9b60c88212835647a76c0ebf5f0ba1fd10c921d9","user":{"login":"ITAR089IF","id":44292928,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0MjkyOTI4","avatar_url":"https://avatars3.githubusercontent.com/u/44292928?v=4","gravatar_id":"","url":"https://api.github.com/users/ITAR089IF","html_url":"https://github.com/ITAR089IF","followers_url":"https://api.github.com/users/ITAR089IF/followers","following_url":"https://api.github.com/users/ITAR089IF/following{/other_user}","gists_url":"https://api.github.com/users/ITAR089IF/gists{/gist_id}","starred_url":"https://api.github.com/users/ITAR089IF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ITAR089IF/subscriptions","organizations_url":"https://api.github.com/users/ITAR089IF/orgs","repos_url":"https://api.github.com/users/ITAR089IF/repos","events_url":"https://api.github.com/users/ITAR089IF/events{/privacy}","received_events_url":"https://api.github.com/users/ITAR089IF/received_events","type":"Organization","site_admin":false},"repo":{"id":153779718,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM3Nzk3MTg=","name":"project-management-tool","full_name":"ITAR089IF/project-management-tool","private":false,"owner":{"login":"ITAR089IF","id":44292928,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0MjkyOTI4","avatar_url":"https://avatars3.githubusercontent.com/u/44292928?v=4","gravatar_id":"","url":"https://api.github.com/users/ITAR089IF","html_url":"https://github.com/ITAR089IF","followers_url":"https://api.github.com/users/ITAR089IF/followers","following_url":"https://api.github.com/users/ITAR089IF/following{/other_user}","gists_url":"https://api.github.com/users/ITAR089IF/gists{/gist_id}","starred_url":"https://api.github.com/users/ITAR089IF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ITAR089IF/subscriptions","organizations_url":"https://api.github.com/users/ITAR089IF/orgs","repos_url":"https://api.github.com/users/ITAR089IF/repos","events_url":"https://api.github.com/users/ITAR089IF/events{/privacy}","received_events_url":"https://api.github.com/users/ITAR089IF/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ITAR089IF/project-management-tool","description":"test project group IF-089.Ruby","fork":false,"url":"https://api.github.com/repos/ITAR089IF/project-management-tool","forks_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/forks","keys_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/teams","hooks_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/hooks","issue_events_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/issues/events{/number}","events_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/events","assignees_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/assignees{/user}","branches_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/branches{/branch}","tags_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/tags","blobs_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/git/refs{/sha}","trees_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/statuses/{sha}","languages_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/languages","stargazers_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/stargazers","contributors_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/contributors","subscribers_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/subscribers","subscription_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/subscription","commits_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/commits{/sha}","git_commits_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/git/commits{/sha}","comments_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/comments{/number}","issue_comment_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/issues/comments{/number}","contents_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/contents/{+path}","compare_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/merges","archive_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/downloads","issues_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/issues{/number}","pulls_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/pulls{/number}","milestones_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/milestones{/number}","notifications_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/labels{/name}","releases_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/releases{/id}","deployments_url":"https://api.github.com/repos/ITAR089IF/project-management-tool/deployments","created_at":"2018-10-19T12:31:31Z","updated_at":"2018-12-09T15:27:07Z","pushed_at":"2018-12-10T11:19:15Z","git_url":"git://github.com/ITAR089IF/project-management-tool.git","ssh_url":"git@github.com:ITAR089IF/project-management-tool.git","clone_url":"https://github.com/ITAR089IF/project-management-tool.git","svn_url":"https://github.com/ITAR089IF/project-management-tool","homepage":null,"size":3806,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":8,"license":null,"forks":0,"open_issues":8,"watchers":0,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/ITAR089IF/project-management-tool/pulls/75"},"html":{"href":"https://github.com/ITAR089IF/project-management-tool/pull/75"},"issue":{"href":"https://api.github.com/repos/ITAR089IF/project-management-tool/issues/75"},"comments":{"href":"https://api.github.com/repos/ITAR089IF/project-management-tool/issues/75/comments"},"review_comments":{"href":"https://api.github.com/repos/ITAR089IF/project-management-tool/pulls/75/comments"},"review_comment":{"href":"https://api.github.com/repos/ITAR089IF/project-management-tool/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ITAR089IF/project-management-tool/pulls/75/commits"},"statuses":{"href":"https://api.github.com/repos/ITAR089IF/project-management-tool/statuses/9111297c9602c3b824870f0770ea2234c1524cc8"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"pereslop"}}