{"action":"created","comment":{"url":"https://api.github.com/repos/kartoza/django-bims/pulls/comments/199399485","pull_request_review_id":133509466,"id":199399485,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTM5OTQ4NQ==","diff_hunk":"@@ -436,34 +445,19 @@ define([\n             if (!this.sidePanelView.isSidePanelOpen()) {\n                 return\n             }\n-            if (!taxonID && !this.clusterBiologicalCollection.taxonID) {\n+            if (!taxonID && !this.clusterBiologicalCollection.getTaxon()) {\n                 return\n             }\n             this.clusterBiologicalCollection.updateTaxon(taxonID);\n-            if (!this.clusterBiologicalCollection.taxonID) {\n+            if (!this.clusterBiologicalCollection.getTaxon()) {\n                 // clear all data for taxon records\n                 this.clusterSource.clear();\n                 this.previousZoom = -1;\n                 this.clusterCollection.administrative = null;\n                 this.fetchingRecords();\n             } else {\n-                // get extent for all record and fit it to map\n-                var self = this;\n-                $.ajax({\n-                    url: '/api/cluster/collection/taxon/' + taxonID + '/extent/',\n-                    dataType: \"json\",\n-                    success: function (data) {\n-                        if (data.length == 4) {\n-                            // after fit to map, show the cluster\n-                            var ext = ol.proj.transformExtent(data, ol.proj.get('EPSG:4326'), ol.proj.get('EPSG:3857'));\n-                            self.map.getView().fit(ext, {\n-                                size: self.map.getSize(), padding: [\n-                                    0, $('.right-panel').width(), 0, 0\n-                                ]\n-                            });\n-                        }\n-                    }\n-                });\n+                console.log('getExtentOfRecords');","path":"bims/static/js/views/olmap.js","position":66,"original_position":66,"commit_id":"5748e9d799624c736c961797195d1d01fdf6ce65","original_commit_id":"5748e9d799624c736c961797195d1d01fdf6ce65","user":{"login":"dimasciput","id":1979569,"node_id":"MDQ6VXNlcjE5Nzk1Njk=","avatar_url":"https://avatars0.githubusercontent.com/u/1979569?v=4","gravatar_id":"","url":"https://api.github.com/users/dimasciput","html_url":"https://github.com/dimasciput","followers_url":"https://api.github.com/users/dimasciput/followers","following_url":"https://api.github.com/users/dimasciput/following{/other_user}","gists_url":"https://api.github.com/users/dimasciput/gists{/gist_id}","starred_url":"https://api.github.com/users/dimasciput/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimasciput/subscriptions","organizations_url":"https://api.github.com/users/dimasciput/orgs","repos_url":"https://api.github.com/users/dimasciput/repos","events_url":"https://api.github.com/users/dimasciput/events{/privacy}","received_events_url":"https://api.github.com/users/dimasciput/received_events","type":"User","site_admin":false},"body":"Please remove this","created_at":"2018-07-02T06:57:53Z","updated_at":"2018-07-02T06:57:53Z","html_url":"https://github.com/kartoza/django-bims/pull/86#discussion_r199399485","pull_request_url":"https://api.github.com/repos/kartoza/django-bims/pulls/86","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/kartoza/django-bims/pulls/comments/199399485"},"html":{"href":"https://github.com/kartoza/django-bims/pull/86#discussion_r199399485"},"pull_request":{"href":"https://api.github.com/repos/kartoza/django-bims/pulls/86"}}},"pull_request":{"url":"https://api.github.com/repos/kartoza/django-bims/pulls/86","id":198583455,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4NTgzNDU1","html_url":"https://github.com/kartoza/django-bims/pull/86","diff_url":"https://github.com/kartoza/django-bims/pull/86.diff","patch_url":"https://github.com/kartoza/django-bims/pull/86.patch","issue_url":"https://api.github.com/repos/kartoza/django-bims/issues/86","number":86,"state":"open","locked":false,"title":"update cluster to use filters of records","user":{"login":"meomancer","id":4530905,"node_id":"MDQ6VXNlcjQ1MzA5MDU=","avatar_url":"https://avatars3.githubusercontent.com/u/4530905?v=4","gravatar_id":"","url":"https://api.github.com/users/meomancer","html_url":"https://github.com/meomancer","followers_url":"https://api.github.com/users/meomancer/followers","following_url":"https://api.github.com/users/meomancer/following{/other_user}","gists_url":"https://api.github.com/users/meomancer/gists{/gist_id}","starred_url":"https://api.github.com/users/meomancer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meomancer/subscriptions","organizations_url":"https://api.github.com/users/meomancer/orgs","repos_url":"https://api.github.com/users/meomancer/repos","events_url":"https://api.github.com/users/meomancer/events{/privacy}","received_events_url":"https://api.github.com/users/meomancer/received_events","type":"User","site_admin":false},"body":"this fix #84 \r\nThis fix cluster to retrieve data by filters.\r\n\r\nwithout filter\r\n![selection_022](https://user-images.githubusercontent.com/4530905/42148280-ce07dd20-7dfb-11e8-9713-8eace9bcbbed.png)\r\n\r\nwith filter\r\n![selection_023](https://user-images.githubusercontent.com/4530905/42148299-dcfaa682-7dfb-11e8-9e99-8ebf5d9fa83f.png)\r\n","created_at":"2018-07-02T06:29:01Z","updated_at":"2018-07-02T06:57:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"49cc7d039efd98ea2a860ce138dcd6047b62919b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":953875935,"node_id":"MDU6TGFiZWw5NTM4NzU5MzU=","url":"https://api.github.com/repos/kartoza/django-bims/labels/review","name":"review","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/kartoza/django-bims/pulls/86/commits","review_comments_url":"https://api.github.com/repos/kartoza/django-bims/pulls/86/comments","review_comment_url":"https://api.github.com/repos/kartoza/django-bims/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kartoza/django-bims/issues/86/comments","statuses_url":"https://api.github.com/repos/kartoza/django-bims/statuses/5748e9d799624c736c961797195d1d01fdf6ce65","head":{"label":"meomancer:update-search","ref":"update-search","sha":"5748e9d799624c736c961797195d1d01fdf6ce65","user":{"login":"meomancer","id":4530905,"node_id":"MDQ6VXNlcjQ1MzA5MDU=","avatar_url":"https://avatars3.githubusercontent.com/u/4530905?v=4","gravatar_id":"","url":"https://api.github.com/users/meomancer","html_url":"https://github.com/meomancer","followers_url":"https://api.github.com/users/meomancer/followers","following_url":"https://api.github.com/users/meomancer/following{/other_user}","gists_url":"https://api.github.com/users/meomancer/gists{/gist_id}","starred_url":"https://api.github.com/users/meomancer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meomancer/subscriptions","organizations_url":"https://api.github.com/users/meomancer/orgs","repos_url":"https://api.github.com/users/meomancer/repos","events_url":"https://api.github.com/users/meomancer/events{/privacy}","received_events_url":"https://api.github.com/users/meomancer/received_events","type":"User","site_admin":false},"repo":{"id":134233039,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQyMzMwMzk=","name":"django-bims","full_name":"meomancer/django-bims","owner":{"login":"meomancer","id":4530905,"node_id":"MDQ6VXNlcjQ1MzA5MDU=","avatar_url":"https://avatars3.githubusercontent.com/u/4530905?v=4","gravatar_id":"","url":"https://api.github.com/users/meomancer","html_url":"https://github.com/meomancer","followers_url":"https://api.github.com/users/meomancer/followers","following_url":"https://api.github.com/users/meomancer/following{/other_user}","gists_url":"https://api.github.com/users/meomancer/gists{/gist_id}","starred_url":"https://api.github.com/users/meomancer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meomancer/subscriptions","organizations_url":"https://api.github.com/users/meomancer/orgs","repos_url":"https://api.github.com/users/meomancer/repos","events_url":"https://api.github.com/users/meomancer/events{/privacy}","received_events_url":"https://api.github.com/users/meomancer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meomancer/django-bims","description":null,"fork":true,"url":"https://api.github.com/repos/meomancer/django-bims","forks_url":"https://api.github.com/repos/meomancer/django-bims/forks","keys_url":"https://api.github.com/repos/meomancer/django-bims/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meomancer/django-bims/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meomancer/django-bims/teams","hooks_url":"https://api.github.com/repos/meomancer/django-bims/hooks","issue_events_url":"https://api.github.com/repos/meomancer/django-bims/issues/events{/number}","events_url":"https://api.github.com/repos/meomancer/django-bims/events","assignees_url":"https://api.github.com/repos/meomancer/django-bims/assignees{/user}","branches_url":"https://api.github.com/repos/meomancer/django-bims/branches{/branch}","tags_url":"https://api.github.com/repos/meomancer/django-bims/tags","blobs_url":"https://api.github.com/repos/meomancer/django-bims/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meomancer/django-bims/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meomancer/django-bims/git/refs{/sha}","trees_url":"https://api.github.com/repos/meomancer/django-bims/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meomancer/django-bims/statuses/{sha}","languages_url":"https://api.github.com/repos/meomancer/django-bims/languages","stargazers_url":"https://api.github.com/repos/meomancer/django-bims/stargazers","contributors_url":"https://api.github.com/repos/meomancer/django-bims/contributors","subscribers_url":"https://api.github.com/repos/meomancer/django-bims/subscribers","subscription_url":"https://api.github.com/repos/meomancer/django-bims/subscription","commits_url":"https://api.github.com/repos/meomancer/django-bims/commits{/sha}","git_commits_url":"https://api.github.com/repos/meomancer/django-bims/git/commits{/sha}","comments_url":"https://api.github.com/repos/meomancer/django-bims/comments{/number}","issue_comment_url":"https://api.github.com/repos/meomancer/django-bims/issues/comments{/number}","contents_url":"https://api.github.com/repos/meomancer/django-bims/contents/{+path}","compare_url":"https://api.github.com/repos/meomancer/django-bims/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meomancer/django-bims/merges","archive_url":"https://api.github.com/repos/meomancer/django-bims/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meomancer/django-bims/downloads","issues_url":"https://api.github.com/repos/meomancer/django-bims/issues{/number}","pulls_url":"https://api.github.com/repos/meomancer/django-bims/pulls{/number}","milestones_url":"https://api.github.com/repos/meomancer/django-bims/milestones{/number}","notifications_url":"https://api.github.com/repos/meomancer/django-bims/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meomancer/django-bims/labels{/name}","releases_url":"https://api.github.com/repos/meomancer/django-bims/releases{/id}","deployments_url":"https://api.github.com/repos/meomancer/django-bims/deployments","created_at":"2018-05-21T07:18:33Z","updated_at":"2018-06-29T07:44:20Z","pushed_at":"2018-07-02T06:36:45Z","git_url":"git://github.com/meomancer/django-bims.git","ssh_url":"git@github.com:meomancer/django-bims.git","clone_url":"https://github.com/meomancer/django-bims.git","svn_url":"https://github.com/meomancer/django-bims","homepage":null,"size":41296,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"kartoza:develop","ref":"develop","sha":"e695cd3ea98aff534337593dbd1bd4ce8e4222d8","user":{"login":"kartoza","id":7395888,"node_id":"MDEyOk9yZ2FuaXphdGlvbjczOTU4ODg=","avatar_url":"https://avatars3.githubusercontent.com/u/7395888?v=4","gravatar_id":"","url":"https://api.github.com/users/kartoza","html_url":"https://github.com/kartoza","followers_url":"https://api.github.com/users/kartoza/followers","following_url":"https://api.github.com/users/kartoza/following{/other_user}","gists_url":"https://api.github.com/users/kartoza/gists{/gist_id}","starred_url":"https://api.github.com/users/kartoza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kartoza/subscriptions","organizations_url":"https://api.github.com/users/kartoza/orgs","repos_url":"https://api.github.com/users/kartoza/repos","events_url":"https://api.github.com/users/kartoza/events{/privacy}","received_events_url":"https://api.github.com/users/kartoza/received_events","type":"Organization","site_admin":false},"repo":{"id":129988923,"node_id":"MDEwOlJlcG9zaXRvcnkxMjk5ODg5MjM=","name":"django-bims","full_name":"kartoza/django-bims","owner":{"login":"kartoza","id":7395888,"node_id":"MDEyOk9yZ2FuaXphdGlvbjczOTU4ODg=","avatar_url":"https://avatars3.githubusercontent.com/u/7395888?v=4","gravatar_id":"","url":"https://api.github.com/users/kartoza","html_url":"https://github.com/kartoza","followers_url":"https://api.github.com/users/kartoza/followers","following_url":"https://api.github.com/users/kartoza/following{/other_user}","gists_url":"https://api.github.com/users/kartoza/gists{/gist_id}","starred_url":"https://api.github.com/users/kartoza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kartoza/subscriptions","organizations_url":"https://api.github.com/users/kartoza/orgs","repos_url":"https://api.github.com/users/kartoza/repos","events_url":"https://api.github.com/users/kartoza/events{/privacy}","received_events_url":"https://api.github.com/users/kartoza/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kartoza/django-bims","description":null,"fork":false,"url":"https://api.github.com/repos/kartoza/django-bims","forks_url":"https://api.github.com/repos/kartoza/django-bims/forks","keys_url":"https://api.github.com/repos/kartoza/django-bims/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kartoza/django-bims/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kartoza/django-bims/teams","hooks_url":"https://api.github.com/repos/kartoza/django-bims/hooks","issue_events_url":"https://api.github.com/repos/kartoza/django-bims/issues/events{/number}","events_url":"https://api.github.com/repos/kartoza/django-bims/events","assignees_url":"https://api.github.com/repos/kartoza/django-bims/assignees{/user}","branches_url":"https://api.github.com/repos/kartoza/django-bims/branches{/branch}","tags_url":"https://api.github.com/repos/kartoza/django-bims/tags","blobs_url":"https://api.github.com/repos/kartoza/django-bims/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kartoza/django-bims/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kartoza/django-bims/git/refs{/sha}","trees_url":"https://api.github.com/repos/kartoza/django-bims/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kartoza/django-bims/statuses/{sha}","languages_url":"https://api.github.com/repos/kartoza/django-bims/languages","stargazers_url":"https://api.github.com/repos/kartoza/django-bims/stargazers","contributors_url":"https://api.github.com/repos/kartoza/django-bims/contributors","subscribers_url":"https://api.github.com/repos/kartoza/django-bims/subscribers","subscription_url":"https://api.github.com/repos/kartoza/django-bims/subscription","commits_url":"https://api.github.com/repos/kartoza/django-bims/commits{/sha}","git_commits_url":"https://api.github.com/repos/kartoza/django-bims/git/commits{/sha}","comments_url":"https://api.github.com/repos/kartoza/django-bims/comments{/number}","issue_comment_url":"https://api.github.com/repos/kartoza/django-bims/issues/comments{/number}","contents_url":"https://api.github.com/repos/kartoza/django-bims/contents/{+path}","compare_url":"https://api.github.com/repos/kartoza/django-bims/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kartoza/django-bims/merges","archive_url":"https://api.github.com/repos/kartoza/django-bims/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kartoza/django-bims/downloads","issues_url":"https://api.github.com/repos/kartoza/django-bims/issues{/number}","pulls_url":"https://api.github.com/repos/kartoza/django-bims/pulls{/number}","milestones_url":"https://api.github.com/repos/kartoza/django-bims/milestones{/number}","notifications_url":"https://api.github.com/repos/kartoza/django-bims/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kartoza/django-bims/labels{/name}","releases_url":"https://api.github.com/repos/kartoza/django-bims/releases{/id}","deployments_url":"https://api.github.com/repos/kartoza/django-bims/deployments","created_at":"2018-04-18T02:00:24Z","updated_at":"2018-07-02T05:25:44Z","pushed_at":"2018-07-02T06:52:54Z","git_url":"git://github.com/kartoza/django-bims.git","ssh_url":"git@github.com:kartoza/django-bims.git","clone_url":"https://github.com/kartoza/django-bims.git","svn_url":"https://github.com/kartoza/django-bims","homepage":null,"size":41295,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":6,"open_issues":13,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/kartoza/django-bims/pulls/86"},"html":{"href":"https://github.com/kartoza/django-bims/pull/86"},"issue":{"href":"https://api.github.com/repos/kartoza/django-bims/issues/86"},"comments":{"href":"https://api.github.com/repos/kartoza/django-bims/issues/86/comments"},"review_comments":{"href":"https://api.github.com/repos/kartoza/django-bims/pulls/86/comments"},"review_comment":{"href":"https://api.github.com/repos/kartoza/django-bims/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kartoza/django-bims/pulls/86/commits"},"statuses":{"href":"https://api.github.com/repos/kartoza/django-bims/statuses/5748e9d799624c736c961797195d1d01fdf6ce65"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"dimasciput"}}