{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/22377","repository_url":"https://api.github.com/repos/elastic/elasticsearch","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/22377/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/22377/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/22377/events","html_url":"https://github.com/elastic/elasticsearch/pull/22377","id":198106418,"number":22377,"title":"Add Optional support to Setting","user":{"login":"tvernum","id":2244393,"avatar_url":"https://avatars.githubusercontent.com/u/2244393?v=3","gravatar_id":"","url":"https://api.github.com/users/tvernum","html_url":"https://github.com/tvernum","followers_url":"https://api.github.com/users/tvernum/followers","following_url":"https://api.github.com/users/tvernum/following{/other_user}","gists_url":"https://api.github.com/users/tvernum/gists{/gist_id}","starred_url":"https://api.github.com/users/tvernum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tvernum/subscriptions","organizations_url":"https://api.github.com/users/tvernum/orgs","repos_url":"https://api.github.com/users/tvernum/repos","events_url":"https://api.github.com/users/tvernum/events{/privacy}","received_events_url":"https://api.github.com/users/tvernum/received_events","type":"User","site_admin":false},"labels":[{"id":184103632,"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Internal","name":":Internal","color":"009800","default":false},{"id":73544,"url":"https://api.github.com/repos/elastic/elasticsearch/labels/non-issue","name":"non-issue","color":"cfcfcf","default":false},{"id":94283388,"url":"https://api.github.com/repos/elastic/elasticsearch/labels/review","name":"review","color":"0052cc","default":false},{"id":334286612,"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v6.0.0","name":"v6.0.0","color":"dddddd","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-30T05:33:51Z","updated_at":"2016-12-30T17:53:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/22377","html_url":"https://github.com/elastic/elasticsearch/pull/22377","diff_url":"https://github.com/elastic/elasticsearch/pull/22377.diff","patch_url":"https://github.com/elastic/elasticsearch/pull/22377.patch"},"body":"`Setting.optional` is a form of `Setting` that differentiates between specified (`Optional.isPresent()`) and unspecified (`Optional.empty()`).\r\nAllows for a more functional code-style when the system behaviour under the default configuration is more complex than simply returning a default value."},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/269801279","html_url":"https://github.com/elastic/elasticsearch/pull/22377#issuecomment-269801279","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/22377","id":269801279,"user":{"login":"rjernst","id":289412,"avatar_url":"https://avatars.githubusercontent.com/u/289412?v=3","gravatar_id":"","url":"https://api.github.com/users/rjernst","html_url":"https://github.com/rjernst","followers_url":"https://api.github.com/users/rjernst/followers","following_url":"https://api.github.com/users/rjernst/following{/other_user}","gists_url":"https://api.github.com/users/rjernst/gists{/gist_id}","starred_url":"https://api.github.com/users/rjernst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjernst/subscriptions","organizations_url":"https://api.github.com/users/rjernst/orgs","repos_url":"https://api.github.com/users/rjernst/repos","events_url":"https://api.github.com/users/rjernst/events{/privacy}","received_events_url":"https://api.github.com/users/rjernst/received_events","type":"User","site_admin":false},"created_at":"2016-12-30T17:53:24Z","updated_at":"2016-12-30T17:53:24Z","body":"I don't see the benefit. This is already easy to do using `Optiona::ofNullable` for the parser. See for example `DiscoveryModule.DISCOVERY_HOSTS_PROVIDER_SETTING`."}}
{"actor":{"display_login":"rjernst"}}