{"action":"created","issue":{"url":"https://api.github.com/repos/CartoDB/cartodb/issues/6499","labels_url":"https://api.github.com/repos/CartoDB/cartodb/issues/6499/labels{/name}","comments_url":"https://api.github.com/repos/CartoDB/cartodb/issues/6499/comments","events_url":"https://api.github.com/repos/CartoDB/cartodb/issues/6499/events","html_url":"https://github.com/CartoDB/cartodb/issues/6499","id":130402150,"number":6499,"title":"Provide map ID for (client-side) data model","user":{"login":"viddo","id":978461,"avatar_url":"https://avatars.githubusercontent.com/u/978461?v=3","gravatar_id":"","url":"https://api.github.com/users/viddo","html_url":"https://github.com/viddo","followers_url":"https://api.github.com/users/viddo/followers","following_url":"https://api.github.com/users/viddo/following{/other_user}","gists_url":"https://api.github.com/users/viddo/gists{/gist_id}","starred_url":"https://api.github.com/users/viddo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viddo/subscriptions","organizations_url":"https://api.github.com/users/viddo/orgs","repos_url":"https://api.github.com/users/viddo/repos","events_url":"https://api.github.com/users/viddo/events{/privacy}","received_events_url":"https://api.github.com/users/viddo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CartoDB/cartodb/labels/editor-3","name":"editor-3","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"juanignaciosl","id":932968,"avatar_url":"https://avatars.githubusercontent.com/u/932968?v=3","gravatar_id":"","url":"https://api.github.com/users/juanignaciosl","html_url":"https://github.com/juanignaciosl","followers_url":"https://api.github.com/users/juanignaciosl/followers","following_url":"https://api.github.com/users/juanignaciosl/following{/other_user}","gists_url":"https://api.github.com/users/juanignaciosl/gists{/gist_id}","starred_url":"https://api.github.com/users/juanignaciosl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanignaciosl/subscriptions","organizations_url":"https://api.github.com/users/juanignaciosl/orgs","repos_url":"https://api.github.com/users/juanignaciosl/repos","events_url":"https://api.github.com/users/juanignaciosl/events{/privacy}","received_events_url":"https://api.github.com/users/juanignaciosl/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/CartoDB/cartodb/milestones/57","html_url":"https://github.com/CartoDB/cartodb/milestones/Lomo%20del%20Gato","labels_url":"https://api.github.com/repos/CartoDB/cartodb/milestones/57/labels","id":1546905,"number":57,"title":"Lomo del Gato","description":"","creator":{"login":"saleiva","id":132149,"avatar_url":"https://avatars.githubusercontent.com/u/132149?v=3","gravatar_id":"","url":"https://api.github.com/users/saleiva","html_url":"https://github.com/saleiva","followers_url":"https://api.github.com/users/saleiva/followers","following_url":"https://api.github.com/users/saleiva/following{/other_user}","gists_url":"https://api.github.com/users/saleiva/gists{/gist_id}","starred_url":"https://api.github.com/users/saleiva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saleiva/subscriptions","organizations_url":"https://api.github.com/users/saleiva/orgs","repos_url":"https://api.github.com/users/saleiva/repos","events_url":"https://api.github.com/users/saleiva/events{/privacy}","received_events_url":"https://api.github.com/users/saleiva/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":2,"state":"open","created_at":"2016-01-27T18:34:07Z","updated_at":"2016-02-01T15:58:40Z","due_on":"2016-02-10T23:00:00Z","closed_at":null},"comments":1,"created_at":"2016-02-01T15:58:40Z","updated_at":"2016-02-01T16:00:23Z","closed_at":null,"body":"The (client-side) `MapModel` need the id to generate the appropriate URL base, e.g.:\r\n`http://localhost.lan:3000/user/pepe/maps/abc-123/layers/…`\r\n\r\nRight now [it's hardcoded](https://github.com/CartoDB/cartodb/commit/a08b86d67692e744cd71739a10b41b669573895b#diff-d27b00749653f54e193fd10402d14d8dR58) while WIP.\r\n\r\nFrom what we understand it's something that should only be provided to the client-side of the editor, perhaps it's not to pass it through some serialized model like we're doing for [vizJSON and userData](https://github.com/CartoDB/cartodb/commit/a08b86d67692e744cd71739a10b41b669573895b#diff-e689b35dd9493bc346dbad25c9991ca6R7)?\r\n\r\ncc @xavijam "},"comment":{"url":"https://api.github.com/repos/CartoDB/cartodb/issues/comments/178042351","html_url":"https://github.com/CartoDB/cartodb/issues/6499#issuecomment-178042351","issue_url":"https://api.github.com/repos/CartoDB/cartodb/issues/6499","id":178042351,"user":{"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},"created_at":"2016-02-01T16:00:22Z","updated_at":"2016-02-01T16:00:22Z","body":"Could we get rid of it from the widgets api perspective?"}}