{"action":"created","comment":{"url":"https://api.github.com/repos/objective-solutions/taskboard/pulls/comments/214709140","pull_request_review_id":151814733,"id":214709140,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDcwOTE0MA==","diff_hunk":"@@ -583,6 +576,43 @@ function Taskboard() {\n             issueKey: issueKey,\n             errorMessage: message\n         }});\n+    };\n+\n+    this.setSelectedIssue = function(issue) {\n+        if (this.hasIssueSelected())\n+            this.unselectIssue();\n+\n+         _selectedIssueComponent = issue;\n+         this.makeAllStepsSortable();\n+    }\n+\n+    this.hasIssueSelected = function() {\n+        return !_.isEmpty( _selectedIssueComponent)\n+    }\n+\n+    this.unselectIssue = function() {\n+        if (this.hasIssueSelected()) {\n+             _selectedIssueComponent.isSelected = false;\n+\n+             _selectedIssueComponent = null;\n+            this.makeAllStepsSortable();","path":"src/main/resources/static/scripts/taskboard.js","position":75,"original_position":75,"commit_id":"36f4b3352403affe703952ddaa0305e882278ae9","original_commit_id":"36f4b3352403affe703952ddaa0305e882278ae9","user":{"login":"jhonypg","id":4572668,"node_id":"MDQ6VXNlcjQ1NzI2Njg=","avatar_url":"https://avatars3.githubusercontent.com/u/4572668?v=4","gravatar_id":"","url":"https://api.github.com/users/jhonypg","html_url":"https://github.com/jhonypg","followers_url":"https://api.github.com/users/jhonypg/followers","following_url":"https://api.github.com/users/jhonypg/following{/other_user}","gists_url":"https://api.github.com/users/jhonypg/gists{/gist_id}","starred_url":"https://api.github.com/users/jhonypg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhonypg/subscriptions","organizations_url":"https://api.github.com/users/jhonypg/orgs","repos_url":"https://api.github.com/users/jhonypg/repos","events_url":"https://api.github.com/users/jhonypg/events{/privacy}","received_events_url":"https://api.github.com/users/jhonypg/received_events","type":"User","site_admin":false},"body":"Quando você chama de dentro do setSelectedIssue, você não quer deixar elas sortable. Talvez possa passar por parâmetro quando NÃO fazer eles virarem sortable, já que o padrão seria eles virarem.","created_at":"2018-09-03T14:38:29Z","updated_at":"2018-09-03T14:44:00Z","html_url":"https://github.com/objective-solutions/taskboard/pull/419#discussion_r214709140","pull_request_url":"https://api.github.com/repos/objective-solutions/taskboard/pulls/419","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/objective-solutions/taskboard/pulls/comments/214709140"},"html":{"href":"https://github.com/objective-solutions/taskboard/pull/419#discussion_r214709140"},"pull_request":{"href":"https://api.github.com/repos/objective-solutions/taskboard/pulls/419"}}},"pull_request":{"url":"https://api.github.com/repos/objective-solutions/taskboard/pulls/419","id":211542686,"node_id":"MDExOlB1bGxSZXF1ZXN0MjExNTQyNjg2","html_url":"https://github.com/objective-solutions/taskboard/pull/419","diff_url":"https://github.com/objective-solutions/taskboard/pull/419.diff","patch_url":"https://github.com/objective-solutions/taskboard/pull/419.patch","issue_url":"https://api.github.com/repos/objective-solutions/taskboard/issues/419","number":419,"state":"open","locked":false,"title":"[TOOLS-1370] Card selection and Move to top function","user":{"login":"JuniorMiqueletti","id":9125406,"node_id":"MDQ6VXNlcjkxMjU0MDY=","avatar_url":"https://avatars1.githubusercontent.com/u/9125406?v=4","gravatar_id":"","url":"https://api.github.com/users/JuniorMiqueletti","html_url":"https://github.com/JuniorMiqueletti","followers_url":"https://api.github.com/users/JuniorMiqueletti/followers","following_url":"https://api.github.com/users/JuniorMiqueletti/following{/other_user}","gists_url":"https://api.github.com/users/JuniorMiqueletti/gists{/gist_id}","starred_url":"https://api.github.com/users/JuniorMiqueletti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuniorMiqueletti/subscriptions","organizations_url":"https://api.github.com/users/JuniorMiqueletti/orgs","repos_url":"https://api.github.com/users/JuniorMiqueletti/repos","events_url":"https://api.github.com/users/JuniorMiqueletti/events{/privacy}","received_events_url":"https://api.github.com/users/JuniorMiqueletti/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-28T20:09:13Z","updated_at":"2018-09-03T14:44:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5922ca29f3a48a73024b7a75f246f1903a5e2da7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/objective-solutions/taskboard/pulls/419/commits","review_comments_url":"https://api.github.com/repos/objective-solutions/taskboard/pulls/419/comments","review_comment_url":"https://api.github.com/repos/objective-solutions/taskboard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/objective-solutions/taskboard/issues/419/comments","statuses_url":"https://api.github.com/repos/objective-solutions/taskboard/statuses/36f4b3352403affe703952ddaa0305e882278ae9","head":{"label":"objective-solutions:TOOLS-1370","ref":"TOOLS-1370","sha":"36f4b3352403affe703952ddaa0305e882278ae9","user":{"login":"objective-solutions","id":22942665,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyOTQyNjY1","avatar_url":"https://avatars2.githubusercontent.com/u/22942665?v=4","gravatar_id":"","url":"https://api.github.com/users/objective-solutions","html_url":"https://github.com/objective-solutions","followers_url":"https://api.github.com/users/objective-solutions/followers","following_url":"https://api.github.com/users/objective-solutions/following{/other_user}","gists_url":"https://api.github.com/users/objective-solutions/gists{/gist_id}","starred_url":"https://api.github.com/users/objective-solutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/objective-solutions/subscriptions","organizations_url":"https://api.github.com/users/objective-solutions/orgs","repos_url":"https://api.github.com/users/objective-solutions/repos","events_url":"https://api.github.com/users/objective-solutions/events{/privacy}","received_events_url":"https://api.github.com/users/objective-solutions/received_events","type":"Organization","site_admin":false},"repo":{"id":71564606,"node_id":"MDEwOlJlcG9zaXRvcnk3MTU2NDYwNg==","name":"taskboard","full_name":"objective-solutions/taskboard","owner":{"login":"objective-solutions","id":22942665,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyOTQyNjY1","avatar_url":"https://avatars2.githubusercontent.com/u/22942665?v=4","gravatar_id":"","url":"https://api.github.com/users/objective-solutions","html_url":"https://github.com/objective-solutions","followers_url":"https://api.github.com/users/objective-solutions/followers","following_url":"https://api.github.com/users/objective-solutions/following{/other_user}","gists_url":"https://api.github.com/users/objective-solutions/gists{/gist_id}","starred_url":"https://api.github.com/users/objective-solutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/objective-solutions/subscriptions","organizations_url":"https://api.github.com/users/objective-solutions/orgs","repos_url":"https://api.github.com/users/objective-solutions/repos","events_url":"https://api.github.com/users/objective-solutions/events{/privacy}","received_events_url":"https://api.github.com/users/objective-solutions/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/objective-solutions/taskboard","description":"Fullstack Taskboard","fork":false,"url":"https://api.github.com/repos/objective-solutions/taskboard","forks_url":"https://api.github.com/repos/objective-solutions/taskboard/forks","keys_url":"https://api.github.com/repos/objective-solutions/taskboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/objective-solutions/taskboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/objective-solutions/taskboard/teams","hooks_url":"https://api.github.com/repos/objective-solutions/taskboard/hooks","issue_events_url":"https://api.github.com/repos/objective-solutions/taskboard/issues/events{/number}","events_url":"https://api.github.com/repos/objective-solutions/taskboard/events","assignees_url":"https://api.github.com/repos/objective-solutions/taskboard/assignees{/user}","branches_url":"https://api.github.com/repos/objective-solutions/taskboard/branches{/branch}","tags_url":"https://api.github.com/repos/objective-solutions/taskboard/tags","blobs_url":"https://api.github.com/repos/objective-solutions/taskboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/objective-solutions/taskboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/objective-solutions/taskboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/objective-solutions/taskboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/objective-solutions/taskboard/statuses/{sha}","languages_url":"https://api.github.com/repos/objective-solutions/taskboard/languages","stargazers_url":"https://api.github.com/repos/objective-solutions/taskboard/stargazers","contributors_url":"https://api.github.com/repos/objective-solutions/taskboard/contributors","subscribers_url":"https://api.github.com/repos/objective-solutions/taskboard/subscribers","subscription_url":"https://api.github.com/repos/objective-solutions/taskboard/subscription","commits_url":"https://api.github.com/repos/objective-solutions/taskboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/objective-solutions/taskboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/objective-solutions/taskboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/objective-solutions/taskboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/objective-solutions/taskboard/contents/{+path}","compare_url":"https://api.github.com/repos/objective-solutions/taskboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/objective-solutions/taskboard/merges","archive_url":"https://api.github.com/repos/objective-solutions/taskboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/objective-solutions/taskboard/downloads","issues_url":"https://api.github.com/repos/objective-solutions/taskboard/issues{/number}","pulls_url":"https://api.github.com/repos/objective-solutions/taskboard/pulls{/number}","milestones_url":"https://api.github.com/repos/objective-solutions/taskboard/milestones{/number}","notifications_url":"https://api.github.com/repos/objective-solutions/taskboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/objective-solutions/taskboard/labels{/name}","releases_url":"https://api.github.com/repos/objective-solutions/taskboard/releases{/id}","deployments_url":"https://api.github.com/repos/objective-solutions/taskboard/deployments","created_at":"2016-10-21T12:53:27Z","updated_at":"2018-08-31T18:16:10Z","pushed_at":"2018-09-03T14:34:18Z","git_url":"git://github.com/objective-solutions/taskboard.git","ssh_url":"git@github.com:objective-solutions/taskboard.git","clone_url":"https://github.com/objective-solutions/taskboard.git","svn_url":"https://github.com/objective-solutions/taskboard","homepage":null,"size":12692,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":10,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"objective-solutions:master","ref":"master","sha":"481e1f072d03cc90756fe2d82b7bb4b6e2565f48","user":{"login":"objective-solutions","id":22942665,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyOTQyNjY1","avatar_url":"https://avatars2.githubusercontent.com/u/22942665?v=4","gravatar_id":"","url":"https://api.github.com/users/objective-solutions","html_url":"https://github.com/objective-solutions","followers_url":"https://api.github.com/users/objective-solutions/followers","following_url":"https://api.github.com/users/objective-solutions/following{/other_user}","gists_url":"https://api.github.com/users/objective-solutions/gists{/gist_id}","starred_url":"https://api.github.com/users/objective-solutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/objective-solutions/subscriptions","organizations_url":"https://api.github.com/users/objective-solutions/orgs","repos_url":"https://api.github.com/users/objective-solutions/repos","events_url":"https://api.github.com/users/objective-solutions/events{/privacy}","received_events_url":"https://api.github.com/users/objective-solutions/received_events","type":"Organization","site_admin":false},"repo":{"id":71564606,"node_id":"MDEwOlJlcG9zaXRvcnk3MTU2NDYwNg==","name":"taskboard","full_name":"objective-solutions/taskboard","owner":{"login":"objective-solutions","id":22942665,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyOTQyNjY1","avatar_url":"https://avatars2.githubusercontent.com/u/22942665?v=4","gravatar_id":"","url":"https://api.github.com/users/objective-solutions","html_url":"https://github.com/objective-solutions","followers_url":"https://api.github.com/users/objective-solutions/followers","following_url":"https://api.github.com/users/objective-solutions/following{/other_user}","gists_url":"https://api.github.com/users/objective-solutions/gists{/gist_id}","starred_url":"https://api.github.com/users/objective-solutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/objective-solutions/subscriptions","organizations_url":"https://api.github.com/users/objective-solutions/orgs","repos_url":"https://api.github.com/users/objective-solutions/repos","events_url":"https://api.github.com/users/objective-solutions/events{/privacy}","received_events_url":"https://api.github.com/users/objective-solutions/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/objective-solutions/taskboard","description":"Fullstack Taskboard","fork":false,"url":"https://api.github.com/repos/objective-solutions/taskboard","forks_url":"https://api.github.com/repos/objective-solutions/taskboard/forks","keys_url":"https://api.github.com/repos/objective-solutions/taskboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/objective-solutions/taskboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/objective-solutions/taskboard/teams","hooks_url":"https://api.github.com/repos/objective-solutions/taskboard/hooks","issue_events_url":"https://api.github.com/repos/objective-solutions/taskboard/issues/events{/number}","events_url":"https://api.github.com/repos/objective-solutions/taskboard/events","assignees_url":"https://api.github.com/repos/objective-solutions/taskboard/assignees{/user}","branches_url":"https://api.github.com/repos/objective-solutions/taskboard/branches{/branch}","tags_url":"https://api.github.com/repos/objective-solutions/taskboard/tags","blobs_url":"https://api.github.com/repos/objective-solutions/taskboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/objective-solutions/taskboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/objective-solutions/taskboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/objective-solutions/taskboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/objective-solutions/taskboard/statuses/{sha}","languages_url":"https://api.github.com/repos/objective-solutions/taskboard/languages","stargazers_url":"https://api.github.com/repos/objective-solutions/taskboard/stargazers","contributors_url":"https://api.github.com/repos/objective-solutions/taskboard/contributors","subscribers_url":"https://api.github.com/repos/objective-solutions/taskboard/subscribers","subscription_url":"https://api.github.com/repos/objective-solutions/taskboard/subscription","commits_url":"https://api.github.com/repos/objective-solutions/taskboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/objective-solutions/taskboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/objective-solutions/taskboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/objective-solutions/taskboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/objective-solutions/taskboard/contents/{+path}","compare_url":"https://api.github.com/repos/objective-solutions/taskboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/objective-solutions/taskboard/merges","archive_url":"https://api.github.com/repos/objective-solutions/taskboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/objective-solutions/taskboard/downloads","issues_url":"https://api.github.com/repos/objective-solutions/taskboard/issues{/number}","pulls_url":"https://api.github.com/repos/objective-solutions/taskboard/pulls{/number}","milestones_url":"https://api.github.com/repos/objective-solutions/taskboard/milestones{/number}","notifications_url":"https://api.github.com/repos/objective-solutions/taskboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/objective-solutions/taskboard/labels{/name}","releases_url":"https://api.github.com/repos/objective-solutions/taskboard/releases{/id}","deployments_url":"https://api.github.com/repos/objective-solutions/taskboard/deployments","created_at":"2016-10-21T12:53:27Z","updated_at":"2018-08-31T18:16:10Z","pushed_at":"2018-09-03T14:34:18Z","git_url":"git://github.com/objective-solutions/taskboard.git","ssh_url":"git@github.com:objective-solutions/taskboard.git","clone_url":"https://github.com/objective-solutions/taskboard.git","svn_url":"https://github.com/objective-solutions/taskboard","homepage":null,"size":12692,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":10,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/objective-solutions/taskboard/pulls/419"},"html":{"href":"https://github.com/objective-solutions/taskboard/pull/419"},"issue":{"href":"https://api.github.com/repos/objective-solutions/taskboard/issues/419"},"comments":{"href":"https://api.github.com/repos/objective-solutions/taskboard/issues/419/comments"},"review_comments":{"href":"https://api.github.com/repos/objective-solutions/taskboard/pulls/419/comments"},"review_comment":{"href":"https://api.github.com/repos/objective-solutions/taskboard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/objective-solutions/taskboard/pulls/419/commits"},"statuses":{"href":"https://api.github.com/repos/objective-solutions/taskboard/statuses/36f4b3352403affe703952ddaa0305e882278ae9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"jhonypg"}}