{"action":"opened","number":33015,"pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/33015","id":209734756,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5NzM0NzU2","html_url":"https://github.com/elastic/elasticsearch/pull/33015","diff_url":"https://github.com/elastic/elasticsearch/pull/33015.diff","patch_url":"https://github.com/elastic/elasticsearch/pull/33015.patch","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/33015","number":33015,"state":"open","locked":false,"title":"Watcher: Simplify finding next date in cron schedule","user":{"login":"spinscale","id":667544,"node_id":"MDQ6VXNlcjY2NzU0NA==","avatar_url":"https://avatars2.githubusercontent.com/u/667544?v=4","gravatar_id":"","url":"https://api.github.com/users/spinscale","html_url":"https://github.com/spinscale","followers_url":"https://api.github.com/users/spinscale/followers","following_url":"https://api.github.com/users/spinscale/following{/other_user}","gists_url":"https://api.github.com/users/spinscale/gists{/gist_id}","starred_url":"https://api.github.com/users/spinscale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spinscale/subscriptions","organizations_url":"https://api.github.com/users/spinscale/orgs","repos_url":"https://api.github.com/users/spinscale/repos","events_url":"https://api.github.com/users/spinscale/events{/privacy}","received_events_url":"https://api.github.com/users/spinscale/received_events","type":"User","site_admin":false},"body":"The code introduced in 3fa36807f87ad90af593e86f9ed843ced3260973 to fix\r\nan issue with crons always returning -1 was not very readable. This\r\nimplementation uses streams to improve readability.\r\n\r\n","created_at":"2018-08-21T07:41:36Z","updated_at":"2018-08-21T07:41:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":912845062,"node_id":"MDU6TGFiZWw5MTI4NDUwNjI=","url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Core/Watcher","name":":Core/Watcher","color":"0e8a16","default":false},{"id":73544,"node_id":"MDU6TGFiZWw3MzU0NA==","url":"https://api.github.com/repos/elastic/elasticsearch/labels/%3Enon-issue","name":">non-issue","color":"cfcfcf","default":false},{"id":837440720,"node_id":"MDU6TGFiZWw4Mzc0NDA3MjA=","url":"https://api.github.com/repos/elastic/elasticsearch/labels/%3Erefactoring","name":">refactoring","color":"dddddd","default":false},{"id":94283388,"node_id":"MDU6TGFiZWw5NDI4MzM4OA==","url":"https://api.github.com/repos/elastic/elasticsearch/labels/review","name":"review","color":"0052cc","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/elastic/elasticsearch/pulls/33015/commits","review_comments_url":"https://api.github.com/repos/elastic/elasticsearch/pulls/33015/comments","review_comment_url":"https://api.github.com/repos/elastic/elasticsearch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/33015/comments","statuses_url":"https://api.github.com/repos/elastic/elasticsearch/statuses/f015ff2c2ac6857f33b5726f07b59051478e34aa","head":{"label":"spinscale:1808-simplify-finding-next-cron-value","ref":"1808-simplify-finding-next-cron-value","sha":"f015ff2c2ac6857f33b5726f07b59051478e34aa","user":{"login":"spinscale","id":667544,"node_id":"MDQ6VXNlcjY2NzU0NA==","avatar_url":"https://avatars2.githubusercontent.com/u/667544?v=4","gravatar_id":"","url":"https://api.github.com/users/spinscale","html_url":"https://github.com/spinscale","followers_url":"https://api.github.com/users/spinscale/followers","following_url":"https://api.github.com/users/spinscale/following{/other_user}","gists_url":"https://api.github.com/users/spinscale/gists{/gist_id}","starred_url":"https://api.github.com/users/spinscale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spinscale/subscriptions","organizations_url":"https://api.github.com/users/spinscale/orgs","repos_url":"https://api.github.com/users/spinscale/repos","events_url":"https://api.github.com/users/spinscale/events{/privacy}","received_events_url":"https://api.github.com/users/spinscale/received_events","type":"User","site_admin":false},"repo":{"id":8698747,"node_id":"MDEwOlJlcG9zaXRvcnk4Njk4NzQ3","name":"elasticsearch","full_name":"spinscale/elasticsearch","owner":{"login":"spinscale","id":667544,"node_id":"MDQ6VXNlcjY2NzU0NA==","avatar_url":"https://avatars2.githubusercontent.com/u/667544?v=4","gravatar_id":"","url":"https://api.github.com/users/spinscale","html_url":"https://github.com/spinscale","followers_url":"https://api.github.com/users/spinscale/followers","following_url":"https://api.github.com/users/spinscale/following{/other_user}","gists_url":"https://api.github.com/users/spinscale/gists{/gist_id}","starred_url":"https://api.github.com/users/spinscale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spinscale/subscriptions","organizations_url":"https://api.github.com/users/spinscale/orgs","repos_url":"https://api.github.com/users/spinscale/repos","events_url":"https://api.github.com/users/spinscale/events{/privacy}","received_events_url":"https://api.github.com/users/spinscale/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/spinscale/elasticsearch","description":"Open Source, Distributed, RESTful Search Engine","fork":true,"url":"https://api.github.com/repos/spinscale/elasticsearch","forks_url":"https://api.github.com/repos/spinscale/elasticsearch/forks","keys_url":"https://api.github.com/repos/spinscale/elasticsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spinscale/elasticsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spinscale/elasticsearch/teams","hooks_url":"https://api.github.com/repos/spinscale/elasticsearch/hooks","issue_events_url":"https://api.github.com/repos/spinscale/elasticsearch/issues/events{/number}","events_url":"https://api.github.com/repos/spinscale/elasticsearch/events","assignees_url":"https://api.github.com/repos/spinscale/elasticsearch/assignees{/user}","branches_url":"https://api.github.com/repos/spinscale/elasticsearch/branches{/branch}","tags_url":"https://api.github.com/repos/spinscale/elasticsearch/tags","blobs_url":"https://api.github.com/repos/spinscale/elasticsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spinscale/elasticsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spinscale/elasticsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/spinscale/elasticsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spinscale/elasticsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/spinscale/elasticsearch/languages","stargazers_url":"https://api.github.com/repos/spinscale/elasticsearch/stargazers","contributors_url":"https://api.github.com/repos/spinscale/elasticsearch/contributors","subscribers_url":"https://api.github.com/repos/spinscale/elasticsearch/subscribers","subscription_url":"https://api.github.com/repos/spinscale/elasticsearch/subscription","commits_url":"https://api.github.com/repos/spinscale/elasticsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/spinscale/elasticsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/spinscale/elasticsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/spinscale/elasticsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/spinscale/elasticsearch/contents/{+path}","compare_url":"https://api.github.com/repos/spinscale/elasticsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spinscale/elasticsearch/merges","archive_url":"https://api.github.com/repos/spinscale/elasticsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spinscale/elasticsearch/downloads","issues_url":"https://api.github.com/repos/spinscale/elasticsearch/issues{/number}","pulls_url":"https://api.github.com/repos/spinscale/elasticsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/spinscale/elasticsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/spinscale/elasticsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spinscale/elasticsearch/labels{/name}","releases_url":"https://api.github.com/repos/spinscale/elasticsearch/releases{/id}","deployments_url":"https://api.github.com/repos/spinscale/elasticsearch/deployments","created_at":"2013-03-11T07:47:35Z","updated_at":"2018-08-10T08:30:43Z","pushed_at":"2018-08-21T07:40:51Z","git_url":"git://github.com/spinscale/elasticsearch.git","ssh_url":"git@github.com:spinscale/elasticsearch.git","clone_url":"https://github.com/spinscale/elasticsearch.git","svn_url":"https://github.com/spinscale/elasticsearch","homepage":"http://elasticsearch.org","size":438336,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":4,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"elastic:master","ref":"master","sha":"38886e8f23153f69f6d4801dda121cfa352775f9","user":{"login":"elastic","id":6764390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3NjQzOTA=","avatar_url":"https://avatars0.githubusercontent.com/u/6764390?v=4","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"repo":{"id":507775,"node_id":"MDEwOlJlcG9zaXRvcnk1MDc3NzU=","name":"elasticsearch","full_name":"elastic/elasticsearch","owner":{"login":"elastic","id":6764390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3NjQzOTA=","avatar_url":"https://avatars0.githubusercontent.com/u/6764390?v=4","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elastic/elasticsearch","description":"Open Source, Distributed, RESTful Search Engine","fork":false,"url":"https://api.github.com/repos/elastic/elasticsearch","forks_url":"https://api.github.com/repos/elastic/elasticsearch/forks","keys_url":"https://api.github.com/repos/elastic/elasticsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elastic/elasticsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elastic/elasticsearch/teams","hooks_url":"https://api.github.com/repos/elastic/elasticsearch/hooks","issue_events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/events{/number}","events_url":"https://api.github.com/repos/elastic/elasticsearch/events","assignees_url":"https://api.github.com/repos/elastic/elasticsearch/assignees{/user}","branches_url":"https://api.github.com/repos/elastic/elasticsearch/branches{/branch}","tags_url":"https://api.github.com/repos/elastic/elasticsearch/tags","blobs_url":"https://api.github.com/repos/elastic/elasticsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elastic/elasticsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elastic/elasticsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/elastic/elasticsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elastic/elasticsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/elastic/elasticsearch/languages","stargazers_url":"https://api.github.com/repos/elastic/elasticsearch/stargazers","contributors_url":"https://api.github.com/repos/elastic/elasticsearch/contributors","subscribers_url":"https://api.github.com/repos/elastic/elasticsearch/subscribers","subscription_url":"https://api.github.com/repos/elastic/elasticsearch/subscription","commits_url":"https://api.github.com/repos/elastic/elasticsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/elastic/elasticsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/elastic/elasticsearch/contents/{+path}","compare_url":"https://api.github.com/repos/elastic/elasticsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elastic/elasticsearch/merges","archive_url":"https://api.github.com/repos/elastic/elasticsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elastic/elasticsearch/downloads","issues_url":"https://api.github.com/repos/elastic/elasticsearch/issues{/number}","pulls_url":"https://api.github.com/repos/elastic/elasticsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/elastic/elasticsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/elastic/elasticsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elastic/elasticsearch/labels{/name}","releases_url":"https://api.github.com/repos/elastic/elasticsearch/releases{/id}","deployments_url":"https://api.github.com/repos/elastic/elasticsearch/deployments","created_at":"2010-02-08T13:20:56Z","updated_at":"2018-08-21T06:59:05Z","pushed_at":"2018-08-21T07:40:54Z","git_url":"git://github.com/elastic/elasticsearch.git","ssh_url":"git@github.com:elastic/elasticsearch.git","clone_url":"https://github.com/elastic/elasticsearch.git","svn_url":"https://github.com/elastic/elasticsearch","homepage":"https://www.elastic.co/products/elasticsearch","size":504029,"stargazers_count":33620,"watchers_count":33620,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11427,"mirror_url":null,"archived":false,"open_issues_count":1615,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":11427,"open_issues":1615,"watchers":33620,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/33015"},"html":{"href":"https://github.com/elastic/elasticsearch/pull/33015"},"issue":{"href":"https://api.github.com/repos/elastic/elasticsearch/issues/33015"},"comments":{"href":"https://api.github.com/repos/elastic/elasticsearch/issues/33015/comments"},"review_comments":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/33015/comments"},"review_comment":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/33015/commits"},"statuses":{"href":"https://api.github.com/repos/elastic/elasticsearch/statuses/f015ff2c2ac6857f33b5726f07b59051478e34aa"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":7,"deletions":13,"changed_files":1}}
{"actor":{"display_login":"spinscale"}}