{"action":"created","comment":{"url":"https://api.github.com/repos/cumulus-nasa/cumulus/pulls/comments/187389827","pull_request_review_id":119161207,"id":187389827,"diff_hunk":"@@ -36,6 +37,17 @@ function parsePdr(event) {\n   return parse.ingest()\n     .then((payload) => {\n       if (parse.connected) parse.end();\n+      // opportunity to filter the granules of interest based on regex in granuleIdExtraction\n+      if (config && config.collection && config.collection.granuleIdExtraction) {\n+        const granuleIdExtraction = config.collection.granuleIdExtraction;\n+        const granules = payload.granules.filter((g) => g.files[0].name.match(granuleIdExtraction));\n+        const filteredPayload = {\n+          granules: granules,\n+          granulesCount: granules.length\n+        };\n+        return Object.assign({}, event.input, filteredPayload);","path":"tasks/parse-pdr/index.js","position":20,"original_position":20,"commit_id":"c2f8148cabfa65127b7e67d82d944496b0934a19","original_commit_id":"c2f8148cabfa65127b7e67d82d944496b0934a19","user":{"login":"cappelaere","id":7567,"avatar_url":"https://avatars2.githubusercontent.com/u/7567?v=4","gravatar_id":"","url":"https://api.github.com/users/cappelaere","html_url":"https://github.com/cappelaere","followers_url":"https://api.github.com/users/cappelaere/followers","following_url":"https://api.github.com/users/cappelaere/following{/other_user}","gists_url":"https://api.github.com/users/cappelaere/gists{/gist_id}","starred_url":"https://api.github.com/users/cappelaere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cappelaere/subscriptions","organizations_url":"https://api.github.com/users/cappelaere/orgs","repos_url":"https://api.github.com/users/cappelaere/repos","events_url":"https://api.github.com/users/cappelaere/events{/privacy}","received_events_url":"https://api.github.com/users/cappelaere/received_events","type":"User","site_admin":false},"body":"ok","created_at":"2018-05-10T16:50:15Z","updated_at":"2018-05-10T16:50:15Z","html_url":"https://github.com/cumulus-nasa/cumulus/pull/340#discussion_r187389827","pull_request_url":"https://api.github.com/repos/cumulus-nasa/cumulus/pulls/340","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/cumulus-nasa/cumulus/pulls/comments/187389827"},"html":{"href":"https://github.com/cumulus-nasa/cumulus/pull/340#discussion_r187389827"},"pull_request":{"href":"https://api.github.com/repos/cumulus-nasa/cumulus/pulls/340"}},"in_reply_to_id":187339258},"pull_request":{"url":"https://api.github.com/repos/cumulus-nasa/cumulus/pulls/340","id":186957690,"html_url":"https://github.com/cumulus-nasa/cumulus/pull/340","diff_url":"https://github.com/cumulus-nasa/cumulus/pull/340.diff","patch_url":"https://github.com/cumulus-nasa/cumulus/pull/340.patch","issue_url":"https://api.github.com/repos/cumulus-nasa/cumulus/issues/340","number":340,"state":"open","locked":false,"title":"Cumulus 527   parse pdr queues up selected granules","user":{"login":"cappelaere","id":7567,"avatar_url":"https://avatars2.githubusercontent.com/u/7567?v=4","gravatar_id":"","url":"https://api.github.com/users/cappelaere","html_url":"https://github.com/cappelaere","followers_url":"https://api.github.com/users/cappelaere/followers","following_url":"https://api.github.com/users/cappelaere/following{/other_user}","gists_url":"https://api.github.com/users/cappelaere/gists{/gist_id}","starred_url":"https://api.github.com/users/cappelaere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cappelaere/subscriptions","organizations_url":"https://api.github.com/users/cappelaere/orgs","repos_url":"https://api.github.com/users/cappelaere/repos","events_url":"https://api.github.com/users/cappelaere/events{/privacy}","received_events_url":"https://api.github.com/users/cappelaere/received_events","type":"User","site_admin":false},"body":"**Summary:** Summary of changes\r\n\r\nAddresses [CUMULUS-526: parse pdr selected granule](https://bugs.earthdata.nasa.gov/browse/CUMULUS-527)\r\n\r\n## Changes\r\n\r\n* Added capability to parse a pdr for selected granules\r\n\r\n## Test Plan\r\nThings that should succeed before merging.\r\n\r\n- [ x] Unit tests\r\n- [ x] Adhoc testing\r\n- [ x] Update CHANGELOG\r\n- [ ] Run `./bin/eslint-ratchet` and verify that eslint errors have not increased\r\n  - [ ] Commit `.eslint-ratchet-high-water-mark` if the score has improved\r\n\r\n## Release PR\r\n\r\nIf this is a **release** PR, make sure you branch name starts with `release-` prefix, e.g. `release-v-1.1.2`.\r\n\r\nReviewers: @tag-your-friends\r\n","created_at":"2018-05-09T15:28:03Z","updated_at":"2018-05-10T16:50:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7f6f0a9343a4e62943f94d8bcfecf4655176c536","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cumulus-nasa/cumulus/pulls/340/commits","review_comments_url":"https://api.github.com/repos/cumulus-nasa/cumulus/pulls/340/comments","review_comment_url":"https://api.github.com/repos/cumulus-nasa/cumulus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cumulus-nasa/cumulus/issues/340/comments","statuses_url":"https://api.github.com/repos/cumulus-nasa/cumulus/statuses/c2f8148cabfa65127b7e67d82d944496b0934a19","head":{"label":"cumulus-nasa:CUMULUS-527---Parse-pdr-queues-up-selected-granules","ref":"CUMULUS-527---Parse-pdr-queues-up-selected-granules","sha":"c2f8148cabfa65127b7e67d82d944496b0934a19","user":{"login":"cumulus-nasa","id":20669771,"avatar_url":"https://avatars3.githubusercontent.com/u/20669771?v=4","gravatar_id":"","url":"https://api.github.com/users/cumulus-nasa","html_url":"https://github.com/cumulus-nasa","followers_url":"https://api.github.com/users/cumulus-nasa/followers","following_url":"https://api.github.com/users/cumulus-nasa/following{/other_user}","gists_url":"https://api.github.com/users/cumulus-nasa/gists{/gist_id}","starred_url":"https://api.github.com/users/cumulus-nasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cumulus-nasa/subscriptions","organizations_url":"https://api.github.com/users/cumulus-nasa/orgs","repos_url":"https://api.github.com/users/cumulus-nasa/repos","events_url":"https://api.github.com/users/cumulus-nasa/events{/privacy}","received_events_url":"https://api.github.com/users/cumulus-nasa/received_events","type":"Organization","site_admin":false},"repo":{"id":95879196,"name":"cumulus","full_name":"cumulus-nasa/cumulus","owner":{"login":"cumulus-nasa","id":20669771,"avatar_url":"https://avatars3.githubusercontent.com/u/20669771?v=4","gravatar_id":"","url":"https://api.github.com/users/cumulus-nasa","html_url":"https://github.com/cumulus-nasa","followers_url":"https://api.github.com/users/cumulus-nasa/followers","following_url":"https://api.github.com/users/cumulus-nasa/following{/other_user}","gists_url":"https://api.github.com/users/cumulus-nasa/gists{/gist_id}","starred_url":"https://api.github.com/users/cumulus-nasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cumulus-nasa/subscriptions","organizations_url":"https://api.github.com/users/cumulus-nasa/orgs","repos_url":"https://api.github.com/users/cumulus-nasa/repos","events_url":"https://api.github.com/users/cumulus-nasa/events{/privacy}","received_events_url":"https://api.github.com/users/cumulus-nasa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cumulus-nasa/cumulus","description":"Cumulus Framework + Cumulus API","fork":false,"url":"https://api.github.com/repos/cumulus-nasa/cumulus","forks_url":"https://api.github.com/repos/cumulus-nasa/cumulus/forks","keys_url":"https://api.github.com/repos/cumulus-nasa/cumulus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cumulus-nasa/cumulus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cumulus-nasa/cumulus/teams","hooks_url":"https://api.github.com/repos/cumulus-nasa/cumulus/hooks","issue_events_url":"https://api.github.com/repos/cumulus-nasa/cumulus/issues/events{/number}","events_url":"https://api.github.com/repos/cumulus-nasa/cumulus/events","assignees_url":"https://api.github.com/repos/cumulus-nasa/cumulus/assignees{/user}","branches_url":"https://api.github.com/repos/cumulus-nasa/cumulus/branches{/branch}","tags_url":"https://api.github.com/repos/cumulus-nasa/cumulus/tags","blobs_url":"https://api.github.com/repos/cumulus-nasa/cumulus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cumulus-nasa/cumulus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cumulus-nasa/cumulus/git/refs{/sha}","trees_url":"https://api.github.com/repos/cumulus-nasa/cumulus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cumulus-nasa/cumulus/statuses/{sha}","languages_url":"https://api.github.com/repos/cumulus-nasa/cumulus/languages","stargazers_url":"https://api.github.com/repos/cumulus-nasa/cumulus/stargazers","contributors_url":"https://api.github.com/repos/cumulus-nasa/cumulus/contributors","subscribers_url":"https://api.github.com/repos/cumulus-nasa/cumulus/subscribers","subscription_url":"https://api.github.com/repos/cumulus-nasa/cumulus/subscription","commits_url":"https://api.github.com/repos/cumulus-nasa/cumulus/commits{/sha}","git_commits_url":"https://api.github.com/repos/cumulus-nasa/cumulus/git/commits{/sha}","comments_url":"https://api.github.com/repos/cumulus-nasa/cumulus/comments{/number}","issue_comment_url":"https://api.github.com/repos/cumulus-nasa/cumulus/issues/comments{/number}","contents_url":"https://api.github.com/repos/cumulus-nasa/cumulus/contents/{+path}","compare_url":"https://api.github.com/repos/cumulus-nasa/cumulus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cumulus-nasa/cumulus/merges","archive_url":"https://api.github.com/repos/cumulus-nasa/cumulus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cumulus-nasa/cumulus/downloads","issues_url":"https://api.github.com/repos/cumulus-nasa/cumulus/issues{/number}","pulls_url":"https://api.github.com/repos/cumulus-nasa/cumulus/pulls{/number}","milestones_url":"https://api.github.com/repos/cumulus-nasa/cumulus/milestones{/number}","notifications_url":"https://api.github.com/repos/cumulus-nasa/cumulus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cumulus-nasa/cumulus/labels{/name}","releases_url":"https://api.github.com/repos/cumulus-nasa/cumulus/releases{/id}","deployments_url":"https://api.github.com/repos/cumulus-nasa/cumulus/deployments","created_at":"2017-06-30T10:52:28Z","updated_at":"2018-05-09T15:22:23Z","pushed_at":"2018-05-10T15:22:45Z","git_url":"git://github.com/cumulus-nasa/cumulus.git","ssh_url":"git@github.com:cumulus-nasa/cumulus.git","clone_url":"https://github.com/cumulus-nasa/cumulus.git","svn_url":"https://github.com/cumulus-nasa/cumulus","homepage":"","size":56656,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":4,"open_issues":7,"watchers":8,"default_branch":"master"}},"base":{"label":"cumulus-nasa:master","ref":"master","sha":"9e1de5fe92746c751a020866f2575114590ac7e0","user":{"login":"cumulus-nasa","id":20669771,"avatar_url":"https://avatars3.githubusercontent.com/u/20669771?v=4","gravatar_id":"","url":"https://api.github.com/users/cumulus-nasa","html_url":"https://github.com/cumulus-nasa","followers_url":"https://api.github.com/users/cumulus-nasa/followers","following_url":"https://api.github.com/users/cumulus-nasa/following{/other_user}","gists_url":"https://api.github.com/users/cumulus-nasa/gists{/gist_id}","starred_url":"https://api.github.com/users/cumulus-nasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cumulus-nasa/subscriptions","organizations_url":"https://api.github.com/users/cumulus-nasa/orgs","repos_url":"https://api.github.com/users/cumulus-nasa/repos","events_url":"https://api.github.com/users/cumulus-nasa/events{/privacy}","received_events_url":"https://api.github.com/users/cumulus-nasa/received_events","type":"Organization","site_admin":false},"repo":{"id":95879196,"name":"cumulus","full_name":"cumulus-nasa/cumulus","owner":{"login":"cumulus-nasa","id":20669771,"avatar_url":"https://avatars3.githubusercontent.com/u/20669771?v=4","gravatar_id":"","url":"https://api.github.com/users/cumulus-nasa","html_url":"https://github.com/cumulus-nasa","followers_url":"https://api.github.com/users/cumulus-nasa/followers","following_url":"https://api.github.com/users/cumulus-nasa/following{/other_user}","gists_url":"https://api.github.com/users/cumulus-nasa/gists{/gist_id}","starred_url":"https://api.github.com/users/cumulus-nasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cumulus-nasa/subscriptions","organizations_url":"https://api.github.com/users/cumulus-nasa/orgs","repos_url":"https://api.github.com/users/cumulus-nasa/repos","events_url":"https://api.github.com/users/cumulus-nasa/events{/privacy}","received_events_url":"https://api.github.com/users/cumulus-nasa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cumulus-nasa/cumulus","description":"Cumulus Framework + Cumulus API","fork":false,"url":"https://api.github.com/repos/cumulus-nasa/cumulus","forks_url":"https://api.github.com/repos/cumulus-nasa/cumulus/forks","keys_url":"https://api.github.com/repos/cumulus-nasa/cumulus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cumulus-nasa/cumulus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cumulus-nasa/cumulus/teams","hooks_url":"https://api.github.com/repos/cumulus-nasa/cumulus/hooks","issue_events_url":"https://api.github.com/repos/cumulus-nasa/cumulus/issues/events{/number}","events_url":"https://api.github.com/repos/cumulus-nasa/cumulus/events","assignees_url":"https://api.github.com/repos/cumulus-nasa/cumulus/assignees{/user}","branches_url":"https://api.github.com/repos/cumulus-nasa/cumulus/branches{/branch}","tags_url":"https://api.github.com/repos/cumulus-nasa/cumulus/tags","blobs_url":"https://api.github.com/repos/cumulus-nasa/cumulus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cumulus-nasa/cumulus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cumulus-nasa/cumulus/git/refs{/sha}","trees_url":"https://api.github.com/repos/cumulus-nasa/cumulus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cumulus-nasa/cumulus/statuses/{sha}","languages_url":"https://api.github.com/repos/cumulus-nasa/cumulus/languages","stargazers_url":"https://api.github.com/repos/cumulus-nasa/cumulus/stargazers","contributors_url":"https://api.github.com/repos/cumulus-nasa/cumulus/contributors","subscribers_url":"https://api.github.com/repos/cumulus-nasa/cumulus/subscribers","subscription_url":"https://api.github.com/repos/cumulus-nasa/cumulus/subscription","commits_url":"https://api.github.com/repos/cumulus-nasa/cumulus/commits{/sha}","git_commits_url":"https://api.github.com/repos/cumulus-nasa/cumulus/git/commits{/sha}","comments_url":"https://api.github.com/repos/cumulus-nasa/cumulus/comments{/number}","issue_comment_url":"https://api.github.com/repos/cumulus-nasa/cumulus/issues/comments{/number}","contents_url":"https://api.github.com/repos/cumulus-nasa/cumulus/contents/{+path}","compare_url":"https://api.github.com/repos/cumulus-nasa/cumulus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cumulus-nasa/cumulus/merges","archive_url":"https://api.github.com/repos/cumulus-nasa/cumulus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cumulus-nasa/cumulus/downloads","issues_url":"https://api.github.com/repos/cumulus-nasa/cumulus/issues{/number}","pulls_url":"https://api.github.com/repos/cumulus-nasa/cumulus/pulls{/number}","milestones_url":"https://api.github.com/repos/cumulus-nasa/cumulus/milestones{/number}","notifications_url":"https://api.github.com/repos/cumulus-nasa/cumulus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cumulus-nasa/cumulus/labels{/name}","releases_url":"https://api.github.com/repos/cumulus-nasa/cumulus/releases{/id}","deployments_url":"https://api.github.com/repos/cumulus-nasa/cumulus/deployments","created_at":"2017-06-30T10:52:28Z","updated_at":"2018-05-09T15:22:23Z","pushed_at":"2018-05-10T15:22:45Z","git_url":"git://github.com/cumulus-nasa/cumulus.git","ssh_url":"git@github.com:cumulus-nasa/cumulus.git","clone_url":"https://github.com/cumulus-nasa/cumulus.git","svn_url":"https://github.com/cumulus-nasa/cumulus","homepage":"","size":56656,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":4,"open_issues":7,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cumulus-nasa/cumulus/pulls/340"},"html":{"href":"https://github.com/cumulus-nasa/cumulus/pull/340"},"issue":{"href":"https://api.github.com/repos/cumulus-nasa/cumulus/issues/340"},"comments":{"href":"https://api.github.com/repos/cumulus-nasa/cumulus/issues/340/comments"},"review_comments":{"href":"https://api.github.com/repos/cumulus-nasa/cumulus/pulls/340/comments"},"review_comment":{"href":"https://api.github.com/repos/cumulus-nasa/cumulus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cumulus-nasa/cumulus/pulls/340/commits"},"statuses":{"href":"https://api.github.com/repos/cumulus-nasa/cumulus/statuses/c2f8148cabfa65127b7e67d82d944496b0934a19"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"cappelaere"}}