{"action":"closed","issue":{"url":"https://api.github.com/repos/CartoDB/cartodb/issues/7427","repository_url":"https://api.github.com/repos/CartoDB/cartodb","labels_url":"https://api.github.com/repos/CartoDB/cartodb/issues/7427/labels{/name}","comments_url":"https://api.github.com/repos/CartoDB/cartodb/issues/7427/comments","events_url":"https://api.github.com/repos/CartoDB/cartodb/issues/7427/events","html_url":"https://github.com/CartoDB/cartodb/issues/7427","id":155555285,"number":7427,"title":"Adding a second layer from the new editor uses first layer columns for interactivity","user":{"login":"jgoizueta","id":5909,"avatar_url":"https://avatars.githubusercontent.com/u/5909?v=3","gravatar_id":"","url":"https://api.github.com/users/jgoizueta","html_url":"https://github.com/jgoizueta","followers_url":"https://api.github.com/users/jgoizueta/followers","following_url":"https://api.github.com/users/jgoizueta/following{/other_user}","gists_url":"https://api.github.com/users/jgoizueta/gists{/gist_id}","starred_url":"https://api.github.com/users/jgoizueta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgoizueta/subscriptions","organizations_url":"https://api.github.com/users/jgoizueta/orgs","repos_url":"https://api.github.com/users/jgoizueta/repos","events_url":"https://api.github.com/users/jgoizueta/events{/privacy}","received_events_url":"https://api.github.com/users/jgoizueta/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CartoDB/cartodb/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/CartoDB/cartodb/labels/editor-3","name":"editor-3","color":"207de5"}],"state":"closed","locked":false,"assignee":{"login":"alonsogarciapablo","id":390398,"avatar_url":"https://avatars.githubusercontent.com/u/390398?v=3","gravatar_id":"","url":"https://api.github.com/users/alonsogarciapablo","html_url":"https://github.com/alonsogarciapablo","followers_url":"https://api.github.com/users/alonsogarciapablo/followers","following_url":"https://api.github.com/users/alonsogarciapablo/following{/other_user}","gists_url":"https://api.github.com/users/alonsogarciapablo/gists{/gist_id}","starred_url":"https://api.github.com/users/alonsogarciapablo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alonsogarciapablo/subscriptions","organizations_url":"https://api.github.com/users/alonsogarciapablo/orgs","repos_url":"https://api.github.com/users/alonsogarciapablo/repos","events_url":"https://api.github.com/users/alonsogarciapablo/events{/privacy}","received_events_url":"https://api.github.com/users/alonsogarciapablo/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/CartoDB/cartodb/milestones/79","html_url":"https://github.com/CartoDB/cartodb/milestones/Salcedillo%20-%20editor%203","labels_url":"https://api.github.com/repos/CartoDB/cartodb/milestones/79/labels","id":1775686,"number":79,"title":"Salcedillo - editor 3","description":"","creator":{"login":"xavijam","id":132146,"avatar_url":"https://avatars.githubusercontent.com/u/132146?v=3","gravatar_id":"","url":"https://api.github.com/users/xavijam","html_url":"https://github.com/xavijam","followers_url":"https://api.github.com/users/xavijam/followers","following_url":"https://api.github.com/users/xavijam/following{/other_user}","gists_url":"https://api.github.com/users/xavijam/gists{/gist_id}","starred_url":"https://api.github.com/users/xavijam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xavijam/subscriptions","organizations_url":"https://api.github.com/users/xavijam/orgs","repos_url":"https://api.github.com/users/xavijam/repos","events_url":"https://api.github.com/users/xavijam/events{/privacy}","received_events_url":"https://api.github.com/users/xavijam/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":22,"state":"open","created_at":"2016-05-19T07:22:33Z","updated_at":"2016-06-01T11:25:31Z","due_on":"2016-06-01T22:00:00Z","closed_at":null},"comments":2,"created_at":"2016-05-18T17:11:46Z","updated_at":"2016-06-01T11:25:31Z","closed_at":"2016-06-01T11:25:31Z","body":"If I enter the new editor with a map that has a single dataset layer with table `cities_subset`(and base map), then, from the new editor add a layer with other table `educacion`, an error occurs when instantiating the map, because the second table is using the first table's columns for interactivity.\r\n\r\nHere's the (abbreviated) MapConfig that the editor tries to instantiate:\r\n\r\n```json\r\n{\r\n  \"layers\": [\r\n    {\r\n      \"type\": \"cartodb\",\r\n      \"options\": {\r\n        \"cartocss\": \"...\",\r\n        \"cartocss_version\": \"2.1.1\",\r\n        \"interactivity\": [ \"cartodb_id\", \"_feature_count\", \"iso2\", \"name\", \"population\" ],\r\n        \"sql\": \"select * from cities_subset\"\r\n      }\r\n    },\r\n    {\r\n      \"type\": \"cartodb\",\r\n      \"options\": {\r\n        \"cartocss\": \"...\",\r\n        \"cartocss_version\": \"2.1.0\",\r\n        \"interactivity\": [ \"cartodb_id\", \"_feature_count\", \"iso2\", \"name\", \"population\" ],\r\n        \"sql\": \"SELECT * FROM educacion\"\r\n      }\r\n    }\r\n  ],\r\n  \"dataviews\": { },\r\n  \"analyses\": [ ]\r\n}\r\n```\r\n\r\nNotice the interactivity columns are the same for both maps (and are those of `cities_subset`."}}
{"actor":{"display_login":"alonsogarciapablo"}}