{"action":"created","comment":{"url":"https://api.github.com/repos/nasa/cumulus/pulls/comments/233116627","pull_request_review_id":174442512,"id":233116627,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMzExNjYyNw==","diff_hunk":"@@ -52,8 +38,70 @@ function isWorkflowTriggeredByRule(taskInput, params) {\n   return taskInput.meta.triggerRule && taskInput.meta.triggerRule === params.rule;\n }\n \n+describe('When I create a scheduled rule via the Cumulus API', () => {\n+  const scheduledRuleName = timestampedName('SchedHelloWorldIntegrationTestRule');\n+  const scheduledHelloWorldRule = {\n+    name: scheduledRuleName,\n+    workflow: 'HelloWorldWorkflow',\n+    rule: {\n+      type: 'scheduled',\n+      value: 'rate(3 minutes)'\n+    },\n+    meta: {\n+      triggerRule: scheduledRuleName\n+    }\n+  };\n+\n+  beforeAll(async () => {\n+    // Create a scheduled rule\n+    await rulesApiTestUtils.postRule({\n+      prefix: config.stackName,\n+      rule: scheduledHelloWorldRule\n+    });\n+  });\n+\n+  describe('the scheduled rule is deleted', () => {","path":"example/spec/parallel/testAPI/ruleSpec.js","position":47,"original_position":47,"commit_id":"c5164c73406799b7f746cb8978c9b2bbe6210bff","original_commit_id":"c5164c73406799b7f746cb8978c9b2bbe6210bff","user":{"login":"laurenfrederick","id":25331898,"node_id":"MDQ6VXNlcjI1MzMxODk4","avatar_url":"https://avatars3.githubusercontent.com/u/25331898?v=4","gravatar_id":"","url":"https://api.github.com/users/laurenfrederick","html_url":"https://github.com/laurenfrederick","followers_url":"https://api.github.com/users/laurenfrederick/followers","following_url":"https://api.github.com/users/laurenfrederick/following{/other_user}","gists_url":"https://api.github.com/users/laurenfrederick/gists{/gist_id}","starred_url":"https://api.github.com/users/laurenfrederick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurenfrederick/subscriptions","organizations_url":"https://api.github.com/users/laurenfrederick/orgs","repos_url":"https://api.github.com/users/laurenfrederick/repos","events_url":"https://api.github.com/users/laurenfrederick/events{/privacy}","received_events_url":"https://api.github.com/users/laurenfrederick/received_events","type":"User","site_admin":false},"body":"Before this we should test that the rule got kicked off. Maybe drop the rate down to 1 or 2 minutes.\r\n\r\nSo it should be like \r\n```\r\nit('the rule kicks off a workflow')\r\n\r\ndescribe('when the scheduled rule is deleted')\r\n\r\nit('does not kick off a workflow')\r\n```","created_at":"2018-11-13T16:20:59Z","updated_at":"2018-11-13T16:23:54Z","html_url":"https://github.com/nasa/cumulus/pull/661#discussion_r233116627","pull_request_url":"https://api.github.com/repos/nasa/cumulus/pulls/661","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/nasa/cumulus/pulls/comments/233116627"},"html":{"href":"https://github.com/nasa/cumulus/pull/661#discussion_r233116627"},"pull_request":{"href":"https://api.github.com/repos/nasa/cumulus/pulls/661"}}},"pull_request":{"url":"https://api.github.com/repos/nasa/cumulus/pulls/661","id":227052803,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3MDUyODAz","html_url":"https://github.com/nasa/cumulus/pull/661","diff_url":"https://github.com/nasa/cumulus/pull/661.diff","patch_url":"https://github.com/nasa/cumulus/pull/661.patch","issue_url":"https://api.github.com/repos/nasa/cumulus/issues/661","number":661,"state":"open","locked":false,"title":"CUMULUS-658 Delete rules using the API (tests)","user":{"login":"ifestus","id":27758492,"node_id":"MDQ6VXNlcjI3NzU4NDky","avatar_url":"https://avatars0.githubusercontent.com/u/27758492?v=4","gravatar_id":"","url":"https://api.github.com/users/ifestus","html_url":"https://github.com/ifestus","followers_url":"https://api.github.com/users/ifestus/followers","following_url":"https://api.github.com/users/ifestus/following{/other_user}","gists_url":"https://api.github.com/users/ifestus/gists{/gist_id}","starred_url":"https://api.github.com/users/ifestus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifestus/subscriptions","organizations_url":"https://api.github.com/users/ifestus/orgs","repos_url":"https://api.github.com/users/ifestus/repos","events_url":"https://api.github.com/users/ifestus/events{/privacy}","received_events_url":"https://api.github.com/users/ifestus/received_events","type":"User","site_admin":false},"body":"**Summary:** Summary of changes\r\n\r\nAddresses [CUMULUS-658: As a DAAC operator, I want to delete triggers defining when and how workflows are run using the API so I may manage when data is ingested](https://bugs.earthdata.nasa.gov/browse/CUMULUS-658)\r\n\r\n## Changes\r\n\r\n* Added unit tests to `packages/api/tests/serial/endpoints/rules.js`\r\n* Added integration tests to `example/spec/parallel/testAPI/ruleSpec.js`\r\n\r\n## Test Plan\r\n\r\n- [x] Unit tests\r\n- [x] Integration tests\r\n","created_at":"2018-10-30T19:30:31Z","updated_at":"2018-11-13T16:23:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ac4184e1c72ffe6c66f9f5b65697f6c32ed3991","assignee":{"login":"laurenfrederick","id":25331898,"node_id":"MDQ6VXNlcjI1MzMxODk4","avatar_url":"https://avatars3.githubusercontent.com/u/25331898?v=4","gravatar_id":"","url":"https://api.github.com/users/laurenfrederick","html_url":"https://github.com/laurenfrederick","followers_url":"https://api.github.com/users/laurenfrederick/followers","following_url":"https://api.github.com/users/laurenfrederick/following{/other_user}","gists_url":"https://api.github.com/users/laurenfrederick/gists{/gist_id}","starred_url":"https://api.github.com/users/laurenfrederick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurenfrederick/subscriptions","organizations_url":"https://api.github.com/users/laurenfrederick/orgs","repos_url":"https://api.github.com/users/laurenfrederick/repos","events_url":"https://api.github.com/users/laurenfrederick/events{/privacy}","received_events_url":"https://api.github.com/users/laurenfrederick/received_events","type":"User","site_admin":false},"assignees":[{"login":"laurenfrederick","id":25331898,"node_id":"MDQ6VXNlcjI1MzMxODk4","avatar_url":"https://avatars3.githubusercontent.com/u/25331898?v=4","gravatar_id":"","url":"https://api.github.com/users/laurenfrederick","html_url":"https://github.com/laurenfrederick","followers_url":"https://api.github.com/users/laurenfrederick/followers","following_url":"https://api.github.com/users/laurenfrederick/following{/other_user}","gists_url":"https://api.github.com/users/laurenfrederick/gists{/gist_id}","starred_url":"https://api.github.com/users/laurenfrederick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurenfrederick/subscriptions","organizations_url":"https://api.github.com/users/laurenfrederick/orgs","repos_url":"https://api.github.com/users/laurenfrederick/repos","events_url":"https://api.github.com/users/laurenfrederick/events{/privacy}","received_events_url":"https://api.github.com/users/laurenfrederick/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1108834091,"node_id":"MDU6TGFiZWwxMTA4ODM0MDkx","url":"https://api.github.com/repos/nasa/cumulus/labels/in%20review","name":"in review","color":"169638","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/nasa/cumulus/pulls/661/commits","review_comments_url":"https://api.github.com/repos/nasa/cumulus/pulls/661/comments","review_comment_url":"https://api.github.com/repos/nasa/cumulus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nasa/cumulus/issues/661/comments","statuses_url":"https://api.github.com/repos/nasa/cumulus/statuses/c5164c73406799b7f746cb8978c9b2bbe6210bff","head":{"label":"nasa:CUMULUS-658","ref":"CUMULUS-658","sha":"c5164c73406799b7f746cb8978c9b2bbe6210bff","user":{"login":"nasa","id":848102,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg0ODEwMg==","avatar_url":"https://avatars2.githubusercontent.com/u/848102?v=4","gravatar_id":"","url":"https://api.github.com/users/nasa","html_url":"https://github.com/nasa","followers_url":"https://api.github.com/users/nasa/followers","following_url":"https://api.github.com/users/nasa/following{/other_user}","gists_url":"https://api.github.com/users/nasa/gists{/gist_id}","starred_url":"https://api.github.com/users/nasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nasa/subscriptions","organizations_url":"https://api.github.com/users/nasa/orgs","repos_url":"https://api.github.com/users/nasa/repos","events_url":"https://api.github.com/users/nasa/events{/privacy}","received_events_url":"https://api.github.com/users/nasa/received_events","type":"Organization","site_admin":false},"repo":{"id":95879196,"node_id":"MDEwOlJlcG9zaXRvcnk5NTg3OTE5Ng==","name":"cumulus","full_name":"nasa/cumulus","private":false,"owner":{"login":"nasa","id":848102,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg0ODEwMg==","avatar_url":"https://avatars2.githubusercontent.com/u/848102?v=4","gravatar_id":"","url":"https://api.github.com/users/nasa","html_url":"https://github.com/nasa","followers_url":"https://api.github.com/users/nasa/followers","following_url":"https://api.github.com/users/nasa/following{/other_user}","gists_url":"https://api.github.com/users/nasa/gists{/gist_id}","starred_url":"https://api.github.com/users/nasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nasa/subscriptions","organizations_url":"https://api.github.com/users/nasa/orgs","repos_url":"https://api.github.com/users/nasa/repos","events_url":"https://api.github.com/users/nasa/events{/privacy}","received_events_url":"https://api.github.com/users/nasa/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/nasa/cumulus","description":"Cumulus Framework + Cumulus API","fork":false,"url":"https://api.github.com/repos/nasa/cumulus","forks_url":"https://api.github.com/repos/nasa/cumulus/forks","keys_url":"https://api.github.com/repos/nasa/cumulus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nasa/cumulus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nasa/cumulus/teams","hooks_url":"https://api.github.com/repos/nasa/cumulus/hooks","issue_events_url":"https://api.github.com/repos/nasa/cumulus/issues/events{/number}","events_url":"https://api.github.com/repos/nasa/cumulus/events","assignees_url":"https://api.github.com/repos/nasa/cumulus/assignees{/user}","branches_url":"https://api.github.com/repos/nasa/cumulus/branches{/branch}","tags_url":"https://api.github.com/repos/nasa/cumulus/tags","blobs_url":"https://api.github.com/repos/nasa/cumulus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nasa/cumulus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nasa/cumulus/git/refs{/sha}","trees_url":"https://api.github.com/repos/nasa/cumulus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nasa/cumulus/statuses/{sha}","languages_url":"https://api.github.com/repos/nasa/cumulus/languages","stargazers_url":"https://api.github.com/repos/nasa/cumulus/stargazers","contributors_url":"https://api.github.com/repos/nasa/cumulus/contributors","subscribers_url":"https://api.github.com/repos/nasa/cumulus/subscribers","subscription_url":"https://api.github.com/repos/nasa/cumulus/subscription","commits_url":"https://api.github.com/repos/nasa/cumulus/commits{/sha}","git_commits_url":"https://api.github.com/repos/nasa/cumulus/git/commits{/sha}","comments_url":"https://api.github.com/repos/nasa/cumulus/comments{/number}","issue_comment_url":"https://api.github.com/repos/nasa/cumulus/issues/comments{/number}","contents_url":"https://api.github.com/repos/nasa/cumulus/contents/{+path}","compare_url":"https://api.github.com/repos/nasa/cumulus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nasa/cumulus/merges","archive_url":"https://api.github.com/repos/nasa/cumulus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nasa/cumulus/downloads","issues_url":"https://api.github.com/repos/nasa/cumulus/issues{/number}","pulls_url":"https://api.github.com/repos/nasa/cumulus/pulls{/number}","milestones_url":"https://api.github.com/repos/nasa/cumulus/milestones{/number}","notifications_url":"https://api.github.com/repos/nasa/cumulus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nasa/cumulus/labels{/name}","releases_url":"https://api.github.com/repos/nasa/cumulus/releases{/id}","deployments_url":"https://api.github.com/repos/nasa/cumulus/deployments","created_at":"2017-06-30T10:52:28Z","updated_at":"2018-11-13T14:35:17Z","pushed_at":"2018-11-13T15:53:56Z","git_url":"git://github.com/nasa/cumulus.git","ssh_url":"git@github.com:nasa/cumulus.git","clone_url":"https://github.com/nasa/cumulus.git","svn_url":"https://github.com/nasa/cumulus","homepage":"","size":63107,"stargazers_count":26,"watchers_count":26,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":18,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":18,"open_issues":4,"watchers":26,"default_branch":"master"}},"base":{"label":"nasa:master","ref":"master","sha":"046296ff76a09a2294c4206aef1e290828ae534f","user":{"login":"nasa","id":848102,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg0ODEwMg==","avatar_url":"https://avatars2.githubusercontent.com/u/848102?v=4","gravatar_id":"","url":"https://api.github.com/users/nasa","html_url":"https://github.com/nasa","followers_url":"https://api.github.com/users/nasa/followers","following_url":"https://api.github.com/users/nasa/following{/other_user}","gists_url":"https://api.github.com/users/nasa/gists{/gist_id}","starred_url":"https://api.github.com/users/nasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nasa/subscriptions","organizations_url":"https://api.github.com/users/nasa/orgs","repos_url":"https://api.github.com/users/nasa/repos","events_url":"https://api.github.com/users/nasa/events{/privacy}","received_events_url":"https://api.github.com/users/nasa/received_events","type":"Organization","site_admin":false},"repo":{"id":95879196,"node_id":"MDEwOlJlcG9zaXRvcnk5NTg3OTE5Ng==","name":"cumulus","full_name":"nasa/cumulus","private":false,"owner":{"login":"nasa","id":848102,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg0ODEwMg==","avatar_url":"https://avatars2.githubusercontent.com/u/848102?v=4","gravatar_id":"","url":"https://api.github.com/users/nasa","html_url":"https://github.com/nasa","followers_url":"https://api.github.com/users/nasa/followers","following_url":"https://api.github.com/users/nasa/following{/other_user}","gists_url":"https://api.github.com/users/nasa/gists{/gist_id}","starred_url":"https://api.github.com/users/nasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nasa/subscriptions","organizations_url":"https://api.github.com/users/nasa/orgs","repos_url":"https://api.github.com/users/nasa/repos","events_url":"https://api.github.com/users/nasa/events{/privacy}","received_events_url":"https://api.github.com/users/nasa/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/nasa/cumulus","description":"Cumulus Framework + Cumulus API","fork":false,"url":"https://api.github.com/repos/nasa/cumulus","forks_url":"https://api.github.com/repos/nasa/cumulus/forks","keys_url":"https://api.github.com/repos/nasa/cumulus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nasa/cumulus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nasa/cumulus/teams","hooks_url":"https://api.github.com/repos/nasa/cumulus/hooks","issue_events_url":"https://api.github.com/repos/nasa/cumulus/issues/events{/number}","events_url":"https://api.github.com/repos/nasa/cumulus/events","assignees_url":"https://api.github.com/repos/nasa/cumulus/assignees{/user}","branches_url":"https://api.github.com/repos/nasa/cumulus/branches{/branch}","tags_url":"https://api.github.com/repos/nasa/cumulus/tags","blobs_url":"https://api.github.com/repos/nasa/cumulus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nasa/cumulus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nasa/cumulus/git/refs{/sha}","trees_url":"https://api.github.com/repos/nasa/cumulus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nasa/cumulus/statuses/{sha}","languages_url":"https://api.github.com/repos/nasa/cumulus/languages","stargazers_url":"https://api.github.com/repos/nasa/cumulus/stargazers","contributors_url":"https://api.github.com/repos/nasa/cumulus/contributors","subscribers_url":"https://api.github.com/repos/nasa/cumulus/subscribers","subscription_url":"https://api.github.com/repos/nasa/cumulus/subscription","commits_url":"https://api.github.com/repos/nasa/cumulus/commits{/sha}","git_commits_url":"https://api.github.com/repos/nasa/cumulus/git/commits{/sha}","comments_url":"https://api.github.com/repos/nasa/cumulus/comments{/number}","issue_comment_url":"https://api.github.com/repos/nasa/cumulus/issues/comments{/number}","contents_url":"https://api.github.com/repos/nasa/cumulus/contents/{+path}","compare_url":"https://api.github.com/repos/nasa/cumulus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nasa/cumulus/merges","archive_url":"https://api.github.com/repos/nasa/cumulus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nasa/cumulus/downloads","issues_url":"https://api.github.com/repos/nasa/cumulus/issues{/number}","pulls_url":"https://api.github.com/repos/nasa/cumulus/pulls{/number}","milestones_url":"https://api.github.com/repos/nasa/cumulus/milestones{/number}","notifications_url":"https://api.github.com/repos/nasa/cumulus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nasa/cumulus/labels{/name}","releases_url":"https://api.github.com/repos/nasa/cumulus/releases{/id}","deployments_url":"https://api.github.com/repos/nasa/cumulus/deployments","created_at":"2017-06-30T10:52:28Z","updated_at":"2018-11-13T14:35:17Z","pushed_at":"2018-11-13T15:53:56Z","git_url":"git://github.com/nasa/cumulus.git","ssh_url":"git@github.com:nasa/cumulus.git","clone_url":"https://github.com/nasa/cumulus.git","svn_url":"https://github.com/nasa/cumulus","homepage":"","size":63107,"stargazers_count":26,"watchers_count":26,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":18,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":18,"open_issues":4,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nasa/cumulus/pulls/661"},"html":{"href":"https://github.com/nasa/cumulus/pull/661"},"issue":{"href":"https://api.github.com/repos/nasa/cumulus/issues/661"},"comments":{"href":"https://api.github.com/repos/nasa/cumulus/issues/661/comments"},"review_comments":{"href":"https://api.github.com/repos/nasa/cumulus/pulls/661/comments"},"review_comment":{"href":"https://api.github.com/repos/nasa/cumulus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nasa/cumulus/pulls/661/commits"},"statuses":{"href":"https://api.github.com/repos/nasa/cumulus/statuses/c5164c73406799b7f746cb8978c9b2bbe6210bff"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"laurenfrederick"}}