{"action":"opened","issue":{"url":"https://api.github.com/repos/coopcycle/coopcycle-app/issues/93","repository_url":"https://api.github.com/repos/coopcycle/coopcycle-app","labels_url":"https://api.github.com/repos/coopcycle/coopcycle-app/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/coopcycle/coopcycle-app/issues/93/comments","events_url":"https://api.github.com/repos/coopcycle/coopcycle-app/issues/93/events","html_url":"https://github.com/coopcycle/coopcycle-app/issues/93","id":324917475,"number":93,"title":"Making sure the server settings are in sync","user":{"login":"alexsegura","id":1162230,"avatar_url":"https://avatars1.githubusercontent.com/u/1162230?v=4","gravatar_id":"","url":"https://api.github.com/users/alexsegura","html_url":"https://github.com/alexsegura","followers_url":"https://api.github.com/users/alexsegura/followers","following_url":"https://api.github.com/users/alexsegura/following{/other_user}","gists_url":"https://api.github.com/users/alexsegura/gists{/gist_id}","starred_url":"https://api.github.com/users/alexsegura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexsegura/subscriptions","organizations_url":"https://api.github.com/users/alexsegura/orgs","repos_url":"https://api.github.com/users/alexsegura/repos","events_url":"https://api.github.com/users/alexsegura/events{/privacy}","received_events_url":"https://api.github.com/users/alexsegura/received_events","type":"User","site_admin":false},"labels":[{"id":490931398,"url":"https://api.github.com/repos/coopcycle/coopcycle-app/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-21T13:32:22Z","updated_at":"2018-05-21T13:32:22Z","closed_at":null,"author_association":"MEMBER","body":"Since 6cf1df56d3acfbd4e5d4fbd8d89d7b8644994be3 the app settings are loaded from the server. \r\n\r\nHowever, they are loaded when the user changes the server. \r\nWe should reload the settings when the app starts, because they may have changed. \r\n\r\nWe could for example return a hash for the settings on the API:\r\n```\r\nGET /api/settings?format=hash\r\n```\r\n\r\nThen, the app just needs to store this hash & compare it each time it starts, to make sure it has the latest version of the settings. "}}
{"actor":{"display_login":"alexsegura"}}