{"action":"closed","issue":{"url":"https://api.github.com/repos/oyiptong/onyx/issues/33","labels_url":"https://api.github.com/repos/oyiptong/onyx/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/oyiptong/onyx/issues/33/comments","events_url":"https://api.github.com/repos/oyiptong/onyx/issues/33/events","html_url":"https://github.com/oyiptong/onyx/issues/33","id":117434284,"number":33,"title":"Add Support for The New Tile Index","user":{"login":"ncloudioj","id":1455254,"avatar_url":"https://avatars.githubusercontent.com/u/1455254?v=3","gravatar_id":"","url":"https://api.github.com/users/ncloudioj","html_url":"https://github.com/ncloudioj","followers_url":"https://api.github.com/users/ncloudioj/followers","following_url":"https://api.github.com/users/ncloudioj/following{/other_user}","gists_url":"https://api.github.com/users/ncloudioj/gists{/gist_id}","starred_url":"https://api.github.com/users/ncloudioj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncloudioj/subscriptions","organizations_url":"https://api.github.com/users/ncloudioj/orgs","repos_url":"https://api.github.com/users/ncloudioj/repos","events_url":"https://api.github.com/users/ncloudioj/events{/privacy}","received_events_url":"https://api.github.com/users/ncloudioj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-17T19:43:58Z","updated_at":"2015-11-18T16:04:55Z","closed_at":"2015-11-18T16:04:55Z","body":"The new tile index for Splice 2 now supports rotation for multiple sponsored directory tiles, as well as the tiles with the same full domain name. Instead of a single distribution for each \"country/locale\", the index might have multiple distributions, with each contains a different sponsored tile. For example, the tile index format switches from,\r\n```JSON\r\n{\r\n  \"AL/en-US\": {\r\n    \"ag\": \"distribution.ag.json\",\r\n    \"legacy\":  \"distribution.json\"\r\n}\r\n```\r\nTo\r\n```JSON\r\n{\r\n\"AL/en-US\": {\r\n    \"ag\": [\"distribution1.ag.json\", \"distribution2.ag.json\"],\r\n    \"legacy\":  [\"distribution1.json\", \"distribution2.json\"]\r\n}\r\n```\r\n\r\nWhen user hits the v3 endpoint \"/v3/links/fetch/<locale>/<channel>\", Onyx will return one of the distributions at random.\r\n\r\nNote that for the backwards compatibility, if the distribution is not an array or list but a plain string, it'll return it directly. "}}