{"action":"created","issue":{"url":"https://api.github.com/repos/consul/consul/issues/759","labels_url":"https://api.github.com/repos/consul/consul/issues/759/labels{/name}","comments_url":"https://api.github.com/repos/consul/consul/issues/759/comments","events_url":"https://api.github.com/repos/consul/consul/issues/759/events","html_url":"https://github.com/consul/consul/pull/759","id":121452407,"number":759,"title":"Store settings in a YAML (and still allow them being overriden)","user":{"login":"josepjaume","id":111746,"avatar_url":"https://avatars.githubusercontent.com/u/111746?v=3","gravatar_id":"","url":"https://api.github.com/users/josepjaume","html_url":"https://github.com/josepjaume","followers_url":"https://api.github.com/users/josepjaume/followers","following_url":"https://api.github.com/users/josepjaume/following{/other_user}","gists_url":"https://api.github.com/users/josepjaume/gists{/gist_id}","starred_url":"https://api.github.com/users/josepjaume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josepjaume/subscriptions","organizations_url":"https://api.github.com/users/josepjaume/orgs","repos_url":"https://api.github.com/users/josepjaume/repos","events_url":"https://api.github.com/users/josepjaume/events{/privacy}","received_events_url":"https://api.github.com/users/josepjaume/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-10T10:28:24Z","updated_at":"2015-12-10T12:01:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/consul/consul/pulls/759","html_url":"https://github.com/consul/consul/pull/759","diff_url":"https://github.com/consul/consul/pull/759.diff","patch_url":"https://github.com/consul/consul/pull/759.patch"},"body":"By storing settings in a YAML, we make settings more explicit and easier to customize in each one's fork. It is also way more flexible in terms of data types, and less prone to errors.\r\n\r\nThis PR still allows you to override a setting if found on the database, allowing you to choose between the simplicity of use of YAML-based config or the customizability of storing it in the DB.\r\n\r\nIt's also a good place to set global feature flags /cc @rodowi\r\n\r\n*Note*: We should probably be serializing settings as JSON in the DB, so we could keep more complicated structures there: Arrays, booleans, numbers and so on. Right now we're relying on the consumer to sanitize that data."},"comment":{"url":"https://api.github.com/repos/consul/consul/issues/comments/163591047","html_url":"https://github.com/consul/consul/pull/759#issuecomment-163591047","issue_url":"https://api.github.com/repos/consul/consul/issues/759","id":163591047,"user":{"login":"josepjaume","id":111746,"avatar_url":"https://avatars.githubusercontent.com/u/111746?v=3","gravatar_id":"","url":"https://api.github.com/users/josepjaume","html_url":"https://github.com/josepjaume","followers_url":"https://api.github.com/users/josepjaume/followers","following_url":"https://api.github.com/users/josepjaume/following{/other_user}","gists_url":"https://api.github.com/users/josepjaume/gists{/gist_id}","starred_url":"https://api.github.com/users/josepjaume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josepjaume/subscriptions","organizations_url":"https://api.github.com/users/josepjaume/orgs","repos_url":"https://api.github.com/users/josepjaume/repos","events_url":"https://api.github.com/users/josepjaume/events{/privacy}","received_events_url":"https://api.github.com/users/josepjaume/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T12:01:05Z","updated_at":"2015-12-10T12:01:05Z","body":"Looks like a random failure, but I can't force rebuilding on Travis :crying_cat_face: "}}