{"action":"created","issue":{"url":"https://api.github.com/repos/camptocamp/ngeo/issues/881","repository_url":"https://api.github.com/repos/camptocamp/ngeo","labels_url":"https://api.github.com/repos/camptocamp/ngeo/issues/881/labels{/name}","comments_url":"https://api.github.com/repos/camptocamp/ngeo/issues/881/comments","events_url":"https://api.github.com/repos/camptocamp/ngeo/issues/881/events","html_url":"https://github.com/camptocamp/ngeo/pull/881","id":140784875,"number":881,"title":"Allow the scales array to be refreshed","user":{"login":"rmichaelis","id":5594996,"avatar_url":"https://avatars.githubusercontent.com/u/5594996?v=3","gravatar_id":"","url":"https://api.github.com/users/rmichaelis","html_url":"https://github.com/rmichaelis","followers_url":"https://api.github.com/users/rmichaelis/followers","following_url":"https://api.github.com/users/rmichaelis/following{/other_user}","gists_url":"https://api.github.com/users/rmichaelis/gists{/gist_id}","starred_url":"https://api.github.com/users/rmichaelis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmichaelis/subscriptions","organizations_url":"https://api.github.com/users/rmichaelis/orgs","repos_url":"https://api.github.com/users/rmichaelis/repos","events_url":"https://api.github.com/users/rmichaelis/events{/privacy}","received_events_url":"https://api.github.com/users/rmichaelis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-14T20:12:58Z","updated_at":"2016-03-21T10:56:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/camptocamp/ngeo/pulls/881","html_url":"https://github.com/camptocamp/ngeo/pull/881","diff_url":"https://github.com/camptocamp/ngeo/pull/881.diff","patch_url":"https://github.com/camptocamp/ngeo/pull/881.patch"},"body":"The goal of this PR is to allow to the list of scales to be refreshed.\r\nThe use case in our app is that the list of available scales is theme dependent. When a user switches the current theme, then the number of scales could vary.\r\n\r\nMy first thought was to listen on the maxzoom and minzoom property of the view and to limit the scales using these values. But none of both are observable. Therefore I've chosen this solution but I'm not sure, I've chosen the best way to achieve this. Could you please review and give advices.\r\n"},"comment":{"url":"https://api.github.com/repos/camptocamp/ngeo/issues/comments/199224372","html_url":"https://github.com/camptocamp/ngeo/pull/881#issuecomment-199224372","issue_url":"https://api.github.com/repos/camptocamp/ngeo/issues/881","id":199224372,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T10:56:17Z","updated_at":"2016-03-21T10:56:17Z","body":"\n[![Coverage Status](https://coveralls.io/builds/5487115/badge)](https://coveralls.io/builds/5487115)\n\nCoverage increased (+0.02%) to 32.271% when pulling **79aa53ae13af4046e598e78f1405e842416b1d62 on rmichaelis:scale_selector** into **8fd8ef44480d3fa2d90247c2127a50cb65b5b768 on camptocamp:master**.\n"}}