{"action":"created","issue":{"url":"https://api.github.com/repos/CartoDB/cartodb/issues/6850","repository_url":"https://api.github.com/repos/CartoDB/cartodb","labels_url":"https://api.github.com/repos/CartoDB/cartodb/issues/6850/labels{/name}","comments_url":"https://api.github.com/repos/CartoDB/cartodb/issues/6850/comments","events_url":"https://api.github.com/repos/CartoDB/cartodb/issues/6850/events","html_url":"https://github.com/CartoDB/cartodb/pull/6850","id":140140555,"number":6850,"title":"Do not recreate viz table in collection_spec","user":{"login":"javitonino","id":7569673,"avatar_url":"https://avatars.githubusercontent.com/u/7569673?v=3","gravatar_id":"","url":"https://api.github.com/users/javitonino","html_url":"https://github.com/javitonino","followers_url":"https://api.github.com/users/javitonino/followers","following_url":"https://api.github.com/users/javitonino/following{/other_user}","gists_url":"https://api.github.com/users/javitonino/gists{/gist_id}","starred_url":"https://api.github.com/users/javitonino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javitonino/subscriptions","organizations_url":"https://api.github.com/users/javitonino/orgs","repos_url":"https://api.github.com/users/javitonino/repos","events_url":"https://api.github.com/users/javitonino/events{/privacy}","received_events_url":"https://api.github.com/users/javitonino/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-11T09:49:42Z","updated_at":"2016-03-11T12:05:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CartoDB/cartodb/pulls/6850","html_url":"https://github.com/CartoDB/cartodb/pull/6850","diff_url":"https://github.com/CartoDB/cartodb/pull/6850.diff","patch_url":"https://github.com/CartoDB/cartodb/pull/6850.patch"},"body":"`collection_spec` creates copies of the visualization tables to perform its tests. However, some tests (namely, testing the visualizations locator) use the main table, but still recreate it every time.\r\n\r\nThis PR avoids this situation by never recreating the main table and ensuring that the visualization repository is left pointing to the main table (instead of one of the temp tables). This fixes Maps API controller tests in master CI.\r\n\r\nIt also updates the Migrator schema to the current schema so tests are run against the real table.\r\n\r\nSee #6848 "},"comment":{"url":"https://api.github.com/repos/CartoDB/cartodb/issues/comments/195341658","html_url":"https://github.com/CartoDB/cartodb/pull/6850#issuecomment-195341658","issue_url":"https://api.github.com/repos/CartoDB/cartodb/issues/6850","id":195341658,"user":{"login":"javitonino","id":7569673,"avatar_url":"https://avatars.githubusercontent.com/u/7569673?v=3","gravatar_id":"","url":"https://api.github.com/users/javitonino","html_url":"https://github.com/javitonino","followers_url":"https://api.github.com/users/javitonino/followers","following_url":"https://api.github.com/users/javitonino/following{/other_user}","gists_url":"https://api.github.com/users/javitonino/gists{/gist_id}","starred_url":"https://api.github.com/users/javitonino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javitonino/subscriptions","organizations_url":"https://api.github.com/users/javitonino/orgs","repos_url":"https://api.github.com/users/javitonino/repos","events_url":"https://api.github.com/users/javitonino/events{/privacy}","received_events_url":"https://api.github.com/users/javitonino/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T12:05:32Z","updated_at":"2016-03-11T12:05:32Z","body":"CR @gfiorav "}}