{"action":"created","comment":{"url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/pulls/comments/26561824","id":26561824,"diff_hunk":"@@ -0,0 +1,16 @@\n+package mama.ng.scheduler\n+\n+class Message {\n+\n+    static hasOne = [schedule: Schedule]\n+\n+    String id = UUID.randomUUID().toString()\n+    Date nextSend\n+    Date dateCreated\n+\n+    static constraints = {\n+        id generator:'assigned'\n+        schedule(nullable: false)\n+        nextSend(min: new Date(), nullable: false)","path":"grails-app/domain/mama/ng/scheduler/Message.groovy","position":14,"original_position":14,"commit_id":"289998301929be432772dca3acafec3f9dde9fdd","original_commit_id":"620640144f66acd559d4925250863a8d6ba939bd","user":{"login":"hodgestar","id":165551,"avatar_url":"https://avatars.githubusercontent.com/u/165551?v=3","gravatar_id":"","url":"https://api.github.com/users/hodgestar","html_url":"https://github.com/hodgestar","followers_url":"https://api.github.com/users/hodgestar/followers","following_url":"https://api.github.com/users/hodgestar/following{/other_user}","gists_url":"https://api.github.com/users/hodgestar/gists{/gist_id}","starred_url":"https://api.github.com/users/hodgestar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hodgestar/subscriptions","organizations_url":"https://api.github.com/users/hodgestar/orgs","repos_url":"https://api.github.com/users/hodgestar/repos","events_url":"https://api.github.com/users/hodgestar/events{/privacy}","received_events_url":"https://api.github.com/users/hodgestar/received_events","type":"User","site_admin":false},"body":"Should we also require ``dateCreated`` to be non-null? Not quite sure of the value of requiring ``nextSend`` to be later than ``now`` -- seems slightly odd to have a constraint that will be violated at some point in the future.","created_at":"2015-03-17T10:27:13Z","updated_at":"2015-03-17T10:27:13Z","html_url":"https://github.com/praekelt/mama-ng-scheduler/pull/7#discussion_r26561824","pull_request_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/praekelt/mama-ng-scheduler/pulls/comments/26561824"},"html":{"href":"https://github.com/praekelt/mama-ng-scheduler/pull/7#discussion_r26561824"},"pull_request":{"href":"https://api.github.com/repos/praekelt/mama-ng-scheduler/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/pulls/7","id":30752083,"html_url":"https://github.com/praekelt/mama-ng-scheduler/pull/7","diff_url":"https://github.com/praekelt/mama-ng-scheduler/pull/7.diff","patch_url":"https://github.com/praekelt/mama-ng-scheduler/pull/7.patch","issue_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/issues/7","number":7,"state":"open","locked":false,"title":"Created Schedule domain object. Added validation for cron with regex.","user":{"login":"LyndsayLawrence","id":4456256,"avatar_url":"https://avatars.githubusercontent.com/u/4456256?v=3","gravatar_id":"","url":"https://api.github.com/users/LyndsayLawrence","html_url":"https://github.com/LyndsayLawrence","followers_url":"https://api.github.com/users/LyndsayLawrence/followers","following_url":"https://api.github.com/users/LyndsayLawrence/following{/other_user}","gists_url":"https://api.github.com/users/LyndsayLawrence/gists{/gist_id}","starred_url":"https://api.github.com/users/LyndsayLawrence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LyndsayLawrence/subscriptions","organizations_url":"https://api.github.com/users/LyndsayLawrence/orgs","repos_url":"https://api.github.com/users/LyndsayLawrence/repos","events_url":"https://api.github.com/users/LyndsayLawrence/events{/privacy}","received_events_url":"https://api.github.com/users/LyndsayLawrence/received_events","type":"User","site_admin":false},"body":"Hey could you please sanity check my Regex. I have used the following definition:\r\nhttp://en.wikipedia.org/wiki/Cron#Nonstandard_predefined_scheduling_definitions","created_at":"2015-03-09T11:13:51Z","updated_at":"2015-03-17T10:27:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0756a53967e5a60d59ad54da27259872adf0c7ac","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/pulls/7/commits","review_comments_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/pulls/7/comments","review_comment_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/issues/7/comments","statuses_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/statuses/289998301929be432772dca3acafec3f9dde9fdd","head":{"label":"praekelt:feature/issue-2-CreateDomainObjects","ref":"feature/issue-2-CreateDomainObjects","sha":"289998301929be432772dca3acafec3f9dde9fdd","user":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"repo":{"id":31584897,"name":"mama-ng-scheduler","full_name":"praekelt/mama-ng-scheduler","owner":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/praekelt/mama-ng-scheduler","description":"A re-usable scheduler for MAMA Nigeria.","fork":false,"url":"https://api.github.com/repos/praekelt/mama-ng-scheduler","forks_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/forks","keys_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/teams","hooks_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/hooks","issue_events_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/issues/events{/number}","events_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/events","assignees_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/assignees{/user}","branches_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/branches{/branch}","tags_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/tags","blobs_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/git/refs{/sha}","trees_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/statuses/{sha}","languages_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/languages","stargazers_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/stargazers","contributors_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/contributors","subscribers_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/subscribers","subscription_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/subscription","commits_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/commits{/sha}","git_commits_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/git/commits{/sha}","comments_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/comments{/number}","issue_comment_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/issues/comments{/number}","contents_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/contents/{+path}","compare_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/merges","archive_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/downloads","issues_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/issues{/number}","pulls_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/pulls{/number}","milestones_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/milestones{/number}","notifications_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/labels{/name}","releases_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/releases{/id}","created_at":"2015-03-03T07:21:06Z","updated_at":"2015-03-03T09:58:02Z","pushed_at":"2015-03-17T10:21:09Z","git_url":"git://github.com/praekelt/mama-ng-scheduler.git","ssh_url":"git@github.com:praekelt/mama-ng-scheduler.git","clone_url":"https://github.com/praekelt/mama-ng-scheduler.git","svn_url":"https://github.com/praekelt/mama-ng-scheduler","homepage":null,"size":680,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"develop"}},"base":{"label":"praekelt:develop","ref":"develop","sha":"10707e80cb4236e367ab5e67ead7d4297195a5f8","user":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"repo":{"id":31584897,"name":"mama-ng-scheduler","full_name":"praekelt/mama-ng-scheduler","owner":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/praekelt/mama-ng-scheduler","description":"A re-usable scheduler for MAMA Nigeria.","fork":false,"url":"https://api.github.com/repos/praekelt/mama-ng-scheduler","forks_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/forks","keys_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/teams","hooks_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/hooks","issue_events_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/issues/events{/number}","events_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/events","assignees_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/assignees{/user}","branches_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/branches{/branch}","tags_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/tags","blobs_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/git/refs{/sha}","trees_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/statuses/{sha}","languages_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/languages","stargazers_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/stargazers","contributors_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/contributors","subscribers_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/subscribers","subscription_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/subscription","commits_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/commits{/sha}","git_commits_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/git/commits{/sha}","comments_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/comments{/number}","issue_comment_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/issues/comments{/number}","contents_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/contents/{+path}","compare_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/merges","archive_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/downloads","issues_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/issues{/number}","pulls_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/pulls{/number}","milestones_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/milestones{/number}","notifications_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/labels{/name}","releases_url":"https://api.github.com/repos/praekelt/mama-ng-scheduler/releases{/id}","created_at":"2015-03-03T07:21:06Z","updated_at":"2015-03-03T09:58:02Z","pushed_at":"2015-03-17T10:21:09Z","git_url":"git://github.com/praekelt/mama-ng-scheduler.git","ssh_url":"git@github.com:praekelt/mama-ng-scheduler.git","clone_url":"https://github.com/praekelt/mama-ng-scheduler.git","svn_url":"https://github.com/praekelt/mama-ng-scheduler","homepage":null,"size":680,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/praekelt/mama-ng-scheduler/pulls/7"},"html":{"href":"https://github.com/praekelt/mama-ng-scheduler/pull/7"},"issue":{"href":"https://api.github.com/repos/praekelt/mama-ng-scheduler/issues/7"},"comments":{"href":"https://api.github.com/repos/praekelt/mama-ng-scheduler/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/praekelt/mama-ng-scheduler/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/praekelt/mama-ng-scheduler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/praekelt/mama-ng-scheduler/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/praekelt/mama-ng-scheduler/statuses/289998301929be432772dca3acafec3f9dde9fdd"}}}}