{"action":"closed","number":1102,"pull_request":{"url":"https://api.github.com/repos/CartoDB/cartodb.js/pulls/1102","id":59483428,"html_url":"https://github.com/CartoDB/cartodb.js/pull/1102","diff_url":"https://github.com/CartoDB/cartodb.js/pull/1102.diff","patch_url":"https://github.com/CartoDB/cartodb.js/pull/1102.patch","issue_url":"https://api.github.com/repos/CartoDB/cartodb.js/issues/1102","number":1102,"state":"closed","locked":false,"title":"Enable/disable dataview depending on the layer visibility","user":{"login":"acanimal","id":732033,"avatar_url":"https://avatars.githubusercontent.com/u/732033?v=3","gravatar_id":"","url":"https://api.github.com/users/acanimal","html_url":"https://github.com/acanimal","followers_url":"https://api.github.com/users/acanimal/followers","following_url":"https://api.github.com/users/acanimal/following{/other_user}","gists_url":"https://api.github.com/users/acanimal/gists{/gist_id}","starred_url":"https://api.github.com/users/acanimal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acanimal/subscriptions","organizations_url":"https://api.github.com/users/acanimal/orgs","repos_url":"https://api.github.com/users/acanimal/repos","events_url":"https://api.github.com/users/acanimal/events{/privacy}","received_events_url":"https://api.github.com/users/acanimal/received_events","type":"User","site_admin":false},"body":"CR @javisantana cc @alonsogarciapablo @viddo \r\n\r\nclose #1100 \r\n\r\nDataviews listen for layers visibility changes and enables/disables accordingly. Otherwise we can have hidden layers and dataviews continue requestin data on server.\r\n\r\nThis is also required for https://github.com/CartoDB/deep-insights.js/issues/162","created_at":"2016-02-16T12:25:15Z","updated_at":"2016-02-16T14:06:34Z","closed_at":"2016-02-16T14:06:34Z","merged_at":"2016-02-16T14:06:34Z","merge_commit_sha":"f1514fe62718a4681715018ac02c423f47bfbd89","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CartoDB/cartodb.js/pulls/1102/commits","review_comments_url":"https://api.github.com/repos/CartoDB/cartodb.js/pulls/1102/comments","review_comment_url":"https://api.github.com/repos/CartoDB/cartodb.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CartoDB/cartodb.js/issues/1102/comments","statuses_url":"https://api.github.com/repos/CartoDB/cartodb.js/statuses/ce177c66da3f41b24875790570ffc3e1919b7d0c","head":{"label":"CartoDB:1100-dataviews-enable","ref":"1100-dataviews-enable","sha":"ce177c66da3f41b24875790570ffc3e1919b7d0c","user":{"login":"CartoDB","id":1799254,"avatar_url":"https://avatars.githubusercontent.com/u/1799254?v=3","gravatar_id":"","url":"https://api.github.com/users/CartoDB","html_url":"https://github.com/CartoDB","followers_url":"https://api.github.com/users/CartoDB/followers","following_url":"https://api.github.com/users/CartoDB/following{/other_user}","gists_url":"https://api.github.com/users/CartoDB/gists{/gist_id}","starred_url":"https://api.github.com/users/CartoDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CartoDB/subscriptions","organizations_url":"https://api.github.com/users/CartoDB/orgs","repos_url":"https://api.github.com/users/CartoDB/repos","events_url":"https://api.github.com/users/CartoDB/events{/privacy}","received_events_url":"https://api.github.com/users/CartoDB/received_events","type":"Organization","site_admin":false},"repo":{"id":4871551,"name":"cartodb.js","full_name":"CartoDB/cartodb.js","owner":{"login":"CartoDB","id":1799254,"avatar_url":"https://avatars.githubusercontent.com/u/1799254?v=3","gravatar_id":"","url":"https://api.github.com/users/CartoDB","html_url":"https://github.com/CartoDB","followers_url":"https://api.github.com/users/CartoDB/followers","following_url":"https://api.github.com/users/CartoDB/following{/other_user}","gists_url":"https://api.github.com/users/CartoDB/gists{/gist_id}","starred_url":"https://api.github.com/users/CartoDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CartoDB/subscriptions","organizations_url":"https://api.github.com/users/CartoDB/orgs","repos_url":"https://api.github.com/users/CartoDB/repos","events_url":"https://api.github.com/users/CartoDB/events{/privacy}","received_events_url":"https://api.github.com/users/CartoDB/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CartoDB/cartodb.js","description":"CartoDB javascript library","fork":false,"url":"https://api.github.com/repos/CartoDB/cartodb.js","forks_url":"https://api.github.com/repos/CartoDB/cartodb.js/forks","keys_url":"https://api.github.com/repos/CartoDB/cartodb.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CartoDB/cartodb.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CartoDB/cartodb.js/teams","hooks_url":"https://api.github.com/repos/CartoDB/cartodb.js/hooks","issue_events_url":"https://api.github.com/repos/CartoDB/cartodb.js/issues/events{/number}","events_url":"https://api.github.com/repos/CartoDB/cartodb.js/events","assignees_url":"https://api.github.com/repos/CartoDB/cartodb.js/assignees{/user}","branches_url":"https://api.github.com/repos/CartoDB/cartodb.js/branches{/branch}","tags_url":"https://api.github.com/repos/CartoDB/cartodb.js/tags","blobs_url":"https://api.github.com/repos/CartoDB/cartodb.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CartoDB/cartodb.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CartoDB/cartodb.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/CartoDB/cartodb.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CartoDB/cartodb.js/statuses/{sha}","languages_url":"https://api.github.com/repos/CartoDB/cartodb.js/languages","stargazers_url":"https://api.github.com/repos/CartoDB/cartodb.js/stargazers","contributors_url":"https://api.github.com/repos/CartoDB/cartodb.js/contributors","subscribers_url":"https://api.github.com/repos/CartoDB/cartodb.js/subscribers","subscription_url":"https://api.github.com/repos/CartoDB/cartodb.js/subscription","commits_url":"https://api.github.com/repos/CartoDB/cartodb.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/CartoDB/cartodb.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/CartoDB/cartodb.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/CartoDB/cartodb.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/CartoDB/cartodb.js/contents/{+path}","compare_url":"https://api.github.com/repos/CartoDB/cartodb.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CartoDB/cartodb.js/merges","archive_url":"https://api.github.com/repos/CartoDB/cartodb.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CartoDB/cartodb.js/downloads","issues_url":"https://api.github.com/repos/CartoDB/cartodb.js/issues{/number}","pulls_url":"https://api.github.com/repos/CartoDB/cartodb.js/pulls{/number}","milestones_url":"https://api.github.com/repos/CartoDB/cartodb.js/milestones{/number}","notifications_url":"https://api.github.com/repos/CartoDB/cartodb.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CartoDB/cartodb.js/labels{/name}","releases_url":"https://api.github.com/repos/CartoDB/cartodb.js/releases{/id}","deployments_url":"https://api.github.com/repos/CartoDB/cartodb.js/deployments","created_at":"2012-07-03T11:44:29Z","updated_at":"2016-02-16T10:57:59Z","pushed_at":"2016-02-16T14:06:34Z","git_url":"git://github.com/CartoDB/cartodb.js.git","ssh_url":"git@github.com:CartoDB/cartodb.js.git","clone_url":"https://github.com/CartoDB/cartodb.js.git","svn_url":"https://github.com/CartoDB/cartodb.js","homepage":"","size":30874,"stargazers_count":249,"watchers_count":249,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":172,"mirror_url":null,"open_issues_count":174,"forks":172,"open_issues":174,"watchers":249,"default_branch":"develop"}},"base":{"label":"CartoDB:v4","ref":"v4","sha":"ebfa441e59f6aa8a67438c257febb9da36118c6e","user":{"login":"CartoDB","id":1799254,"avatar_url":"https://avatars.githubusercontent.com/u/1799254?v=3","gravatar_id":"","url":"https://api.github.com/users/CartoDB","html_url":"https://github.com/CartoDB","followers_url":"https://api.github.com/users/CartoDB/followers","following_url":"https://api.github.com/users/CartoDB/following{/other_user}","gists_url":"https://api.github.com/users/CartoDB/gists{/gist_id}","starred_url":"https://api.github.com/users/CartoDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CartoDB/subscriptions","organizations_url":"https://api.github.com/users/CartoDB/orgs","repos_url":"https://api.github.com/users/CartoDB/repos","events_url":"https://api.github.com/users/CartoDB/events{/privacy}","received_events_url":"https://api.github.com/users/CartoDB/received_events","type":"Organization","site_admin":false},"repo":{"id":4871551,"name":"cartodb.js","full_name":"CartoDB/cartodb.js","owner":{"login":"CartoDB","id":1799254,"avatar_url":"https://avatars.githubusercontent.com/u/1799254?v=3","gravatar_id":"","url":"https://api.github.com/users/CartoDB","html_url":"https://github.com/CartoDB","followers_url":"https://api.github.com/users/CartoDB/followers","following_url":"https://api.github.com/users/CartoDB/following{/other_user}","gists_url":"https://api.github.com/users/CartoDB/gists{/gist_id}","starred_url":"https://api.github.com/users/CartoDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CartoDB/subscriptions","organizations_url":"https://api.github.com/users/CartoDB/orgs","repos_url":"https://api.github.com/users/CartoDB/repos","events_url":"https://api.github.com/users/CartoDB/events{/privacy}","received_events_url":"https://api.github.com/users/CartoDB/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CartoDB/cartodb.js","description":"CartoDB javascript library","fork":false,"url":"https://api.github.com/repos/CartoDB/cartodb.js","forks_url":"https://api.github.com/repos/CartoDB/cartodb.js/forks","keys_url":"https://api.github.com/repos/CartoDB/cartodb.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CartoDB/cartodb.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CartoDB/cartodb.js/teams","hooks_url":"https://api.github.com/repos/CartoDB/cartodb.js/hooks","issue_events_url":"https://api.github.com/repos/CartoDB/cartodb.js/issues/events{/number}","events_url":"https://api.github.com/repos/CartoDB/cartodb.js/events","assignees_url":"https://api.github.com/repos/CartoDB/cartodb.js/assignees{/user}","branches_url":"https://api.github.com/repos/CartoDB/cartodb.js/branches{/branch}","tags_url":"https://api.github.com/repos/CartoDB/cartodb.js/tags","blobs_url":"https://api.github.com/repos/CartoDB/cartodb.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CartoDB/cartodb.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CartoDB/cartodb.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/CartoDB/cartodb.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CartoDB/cartodb.js/statuses/{sha}","languages_url":"https://api.github.com/repos/CartoDB/cartodb.js/languages","stargazers_url":"https://api.github.com/repos/CartoDB/cartodb.js/stargazers","contributors_url":"https://api.github.com/repos/CartoDB/cartodb.js/contributors","subscribers_url":"https://api.github.com/repos/CartoDB/cartodb.js/subscribers","subscription_url":"https://api.github.com/repos/CartoDB/cartodb.js/subscription","commits_url":"https://api.github.com/repos/CartoDB/cartodb.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/CartoDB/cartodb.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/CartoDB/cartodb.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/CartoDB/cartodb.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/CartoDB/cartodb.js/contents/{+path}","compare_url":"https://api.github.com/repos/CartoDB/cartodb.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CartoDB/cartodb.js/merges","archive_url":"https://api.github.com/repos/CartoDB/cartodb.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CartoDB/cartodb.js/downloads","issues_url":"https://api.github.com/repos/CartoDB/cartodb.js/issues{/number}","pulls_url":"https://api.github.com/repos/CartoDB/cartodb.js/pulls{/number}","milestones_url":"https://api.github.com/repos/CartoDB/cartodb.js/milestones{/number}","notifications_url":"https://api.github.com/repos/CartoDB/cartodb.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CartoDB/cartodb.js/labels{/name}","releases_url":"https://api.github.com/repos/CartoDB/cartodb.js/releases{/id}","deployments_url":"https://api.github.com/repos/CartoDB/cartodb.js/deployments","created_at":"2012-07-03T11:44:29Z","updated_at":"2016-02-16T10:57:59Z","pushed_at":"2016-02-16T14:06:34Z","git_url":"git://github.com/CartoDB/cartodb.js.git","ssh_url":"git@github.com:CartoDB/cartodb.js.git","clone_url":"https://github.com/CartoDB/cartodb.js.git","svn_url":"https://github.com/CartoDB/cartodb.js","homepage":"","size":30874,"stargazers_count":249,"watchers_count":249,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":172,"mirror_url":null,"open_issues_count":174,"forks":172,"open_issues":174,"watchers":249,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CartoDB/cartodb.js/pulls/1102"},"html":{"href":"https://github.com/CartoDB/cartodb.js/pull/1102"},"issue":{"href":"https://api.github.com/repos/CartoDB/cartodb.js/issues/1102"},"comments":{"href":"https://api.github.com/repos/CartoDB/cartodb.js/issues/1102/comments"},"review_comments":{"href":"https://api.github.com/repos/CartoDB/cartodb.js/pulls/1102/comments"},"review_comment":{"href":"https://api.github.com/repos/CartoDB/cartodb.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CartoDB/cartodb.js/pulls/1102/commits"},"statuses":{"href":"https://api.github.com/repos/CartoDB/cartodb.js/statuses/ce177c66da3f41b24875790570ffc3e1919b7d0c"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"acanimal","id":732033,"avatar_url":"https://avatars.githubusercontent.com/u/732033?v=3","gravatar_id":"","url":"https://api.github.com/users/acanimal","html_url":"https://github.com/acanimal","followers_url":"https://api.github.com/users/acanimal/followers","following_url":"https://api.github.com/users/acanimal/following{/other_user}","gists_url":"https://api.github.com/users/acanimal/gists{/gist_id}","starred_url":"https://api.github.com/users/acanimal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acanimal/subscriptions","organizations_url":"https://api.github.com/users/acanimal/orgs","repos_url":"https://api.github.com/users/acanimal/repos","events_url":"https://api.github.com/users/acanimal/events{/privacy}","received_events_url":"https://api.github.com/users/acanimal/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":12,"deletions":0,"changed_files":1}}