{"action":"created","issue":{"url":"https://api.github.com/repos/Wikia/mercury/issues/2968","repository_url":"https://api.github.com/repos/Wikia/mercury","labels_url":"https://api.github.com/repos/Wikia/mercury/issues/2968/labels{/name}","comments_url":"https://api.github.com/repos/Wikia/mercury/issues/2968/comments","events_url":"https://api.github.com/repos/Wikia/mercury/issues/2968/events","html_url":"https://github.com/Wikia/mercury/pull/2968","id":191728004,"number":2968,"title":"XW-2195 | Setup mercury for staging","user":{"login":"hakubo","id":1018759,"avatar_url":"https://avatars.githubusercontent.com/u/1018759?v=3","gravatar_id":"","url":"https://api.github.com/users/hakubo","html_url":"https://github.com/hakubo","followers_url":"https://api.github.com/users/hakubo/followers","following_url":"https://api.github.com/users/hakubo/following{/other_user}","gists_url":"https://api.github.com/users/hakubo/gists{/gist_id}","starred_url":"https://api.github.com/users/hakubo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hakubo/subscriptions","organizations_url":"https://api.github.com/users/hakubo/orgs","repos_url":"https://api.github.com/users/hakubo/repos","events_url":"https://api.github.com/users/hakubo/events{/privacy}","received_events_url":"https://api.github.com/users/hakubo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-25T15:47:53Z","updated_at":"2016-11-28T09:39:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Wikia/mercury/pulls/2968","html_url":"https://github.com/Wikia/mercury/pull/2968","diff_url":"https://github.com/Wikia/mercury/pull/2968.diff","patch_url":"https://github.com/Wikia/mercury/pull/2968.patch"},"body":"## Links\r\n\r\n* https://wikia-inc.atlassian.net/browse/XW-2195\r\n\r\n## Description\r\n\r\nChanges needed to support mercury in a staging environment.\r\nI took a moment to clean up a bit settings for mercury and rename some files.\r\n\r\nChanges introduced with this PR\r\n\r\n### localSettings renamed to settings\r\nIt is not local anymore. Local is just confusing in this context.\r\n\r\nSo all localSettings.*.js got renamed to settings.*.js\r\nlocalSettings.js -> settings.js\r\nlocalSettings.base.js -> settings.base.js\r\nlocalSettings.dev.js -> settings.dev.js\r\nlocalSettings.example.js -> settings.example.js\r\n\r\nI have also added \r\nsettings.prod.js\r\nand \r\nsettings.staging.js\r\n\r\n### Settings cascading\r\nWhen settings.js is imported it loads\r\nsettings.base.js and all settings are based on this file\r\nthen it loads\r\nsettings.${environment}.js\r\nand merges it with base\r\n\r\nif such a file is not found (e.g. for sanbox)\r\nit just loads base settings\r\n\r\nin settings.js - you can override all settings for your local instance\r\n\r\nBREAKING CHANGE - move your local config from\r\nlocalSettings.js to settings.js\r\n\r\n### Environments.Prod -> environments.prod\r\nin utils.js\r\nyou could find Environments that is not a num and is not a class\r\nI renamed it to environments\r\nand all its keys to lower case (prod, dev etc.)\r\n\r\n## Reviewers\r\n\r\n@Wikia/x-wing \r\n"},"comment":{"url":"https://api.github.com/repos/Wikia/mercury/issues/comments/263225280","html_url":"https://github.com/Wikia/mercury/pull/2968#issuecomment-263225280","issue_url":"https://api.github.com/repos/Wikia/mercury/issues/2968","id":263225280,"user":{"login":"hakubo","id":1018759,"avatar_url":"https://avatars.githubusercontent.com/u/1018759?v=3","gravatar_id":"","url":"https://api.github.com/users/hakubo","html_url":"https://github.com/hakubo","followers_url":"https://api.github.com/users/hakubo/followers","following_url":"https://api.github.com/users/hakubo/following{/other_user}","gists_url":"https://api.github.com/users/hakubo/gists{/gist_id}","starred_url":"https://api.github.com/users/hakubo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hakubo/subscriptions","organizations_url":"https://api.github.com/users/hakubo/orgs","repos_url":"https://api.github.com/users/hakubo/repos","events_url":"https://api.github.com/users/hakubo/events{/privacy}","received_events_url":"https://api.github.com/users/hakubo/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T09:39:46Z","updated_at":"2016-11-28T09:39:46Z","body":"@rogatty thanks for links - copied them to tickets"}}
{"actor":{"display_login":"hakubo"}}