{"action":"created","comment":{"url":"https://api.github.com/repos/NWQMC/WQP_UI/pulls/comments/197275010","pull_request_review_id":130990331,"id":197275010,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NzI3NTAxMA==","diff_hunk":"@@ -168,3 +169,40 @@ export const initializeInput = function($el) {\n     const initValues = getAnchorQueryValues($el.attr('name'));\n     $el.val(initValues.length ? initValues[0] : '');\n };\n+\n+\n+/*\n+ * Assembles a curl string from the user entered form values\n+ * @param resultType {string} The value gathered from user input on the web form.\n+ * @param queryParamArray An array of values gathered from user input on web form.\n+ * @return {string} a formatted line that can be used a curl command.\n+ */\n+export const buildCurlString = function(resultType, queryParamArray) {\n+    let curlLeadingString = 'curl -X POST --header \\'Content-Type: application/json\\' --header \\'Accept: application/';","path":"assets/js/utils.js","position":23,"original_position":23,"commit_id":"c36345f2d83fd5194c3919189fda6df4e99adb81","original_commit_id":"c36345f2d83fd5194c3919189fda6df4e99adb81","user":{"login":"mbucknell","id":8104736,"node_id":"MDQ6VXNlcjgxMDQ3MzY=","avatar_url":"https://avatars2.githubusercontent.com/u/8104736?v=4","gravatar_id":"","url":"https://api.github.com/users/mbucknell","html_url":"https://github.com/mbucknell","followers_url":"https://api.github.com/users/mbucknell/followers","following_url":"https://api.github.com/users/mbucknell/following{/other_user}","gists_url":"https://api.github.com/users/mbucknell/gists{/gist_id}","starred_url":"https://api.github.com/users/mbucknell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbucknell/subscriptions","organizations_url":"https://api.github.com/users/mbucknell/orgs","repos_url":"https://api.github.com/users/mbucknell/repos","events_url":"https://api.github.com/users/mbucknell/events{/privacy}","received_events_url":"https://api.github.com/users/mbucknell/received_events","type":"User","site_admin":false},"body":"The other thing is that I just noticied is that if zip is selected the Accept is application/zip. You might want to ask Jim if you should ignore zip when forming the curl. If not this becomes super easy.","created_at":"2018-06-21T20:58:09Z","updated_at":"2018-06-21T20:58:09Z","html_url":"https://github.com/NWQMC/WQP_UI/pull/307#discussion_r197275010","pull_request_url":"https://api.github.com/repos/NWQMC/WQP_UI/pulls/307","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/NWQMC/WQP_UI/pulls/comments/197275010"},"html":{"href":"https://github.com/NWQMC/WQP_UI/pull/307#discussion_r197275010"},"pull_request":{"href":"https://api.github.com/repos/NWQMC/WQP_UI/pulls/307"}},"in_reply_to_id":197251244},"pull_request":{"url":"https://api.github.com/repos/NWQMC/WQP_UI/pulls/307","id":196206727,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2MjA2NzI3","html_url":"https://github.com/NWQMC/WQP_UI/pull/307","diff_url":"https://github.com/NWQMC/WQP_UI/pull/307.diff","patch_url":"https://github.com/NWQMC/WQP_UI/pull/307.patch","issue_url":"https://api.github.com/repos/NWQMC/WQP_UI/issues/307","number":307,"state":"open","locked":false,"title":"Wqp 1195 show only one webcall","user":{"login":"abriggs-usgs","id":36997804,"node_id":"MDQ6VXNlcjM2OTk3ODA0","avatar_url":"https://avatars0.githubusercontent.com/u/36997804?v=4","gravatar_id":"","url":"https://api.github.com/users/abriggs-usgs","html_url":"https://github.com/abriggs-usgs","followers_url":"https://api.github.com/users/abriggs-usgs/followers","following_url":"https://api.github.com/users/abriggs-usgs/following{/other_user}","gists_url":"https://api.github.com/users/abriggs-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/abriggs-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abriggs-usgs/subscriptions","organizations_url":"https://api.github.com/users/abriggs-usgs/orgs","repos_url":"https://api.github.com/users/abriggs-usgs/repos","events_url":"https://api.github.com/users/abriggs-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/abriggs-usgs/received_events","type":"User","site_admin":false},"body":"Before making a pull request\r\n----------------------------\r\n\r\n- [x] Make sure all tests run\r\n- [x] Update the changelog appropriately\r\n\r\nWQP-1195 Show Only One Web Service Call for the Portal Page\r\n-----------\r\nBrief description of changes. Reference the JIRA ticket if appropriate\r\n\r\nFor https://internal.cida.usgs.gov/jira/browse/WQP-1195 , the response of the 'Show Web Calls' button was changed from showing many calls to showing a single call based on which 'Select data to download' radio button was selected by the user. \r\n\r\nIn addition a text box was added to show a 'curl' command (when the 'Show Web Calls' button is pressed) based on the user selected form information.\r\n\r\n-----------\r\n\r\nAfter making a pull request\r\n---------------------------\r\n- [x] If appropriate, put the link to the PR in the JIRA ticket\r\n- [ ] Assign someone to review unless the change is trivial\r\n","created_at":"2018-06-20T16:46:28Z","updated_at":"2018-06-21T20:58:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6b7a3f619854490624ae97e1b39c7253e576ede2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/NWQMC/WQP_UI/pulls/307/commits","review_comments_url":"https://api.github.com/repos/NWQMC/WQP_UI/pulls/307/comments","review_comment_url":"https://api.github.com/repos/NWQMC/WQP_UI/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NWQMC/WQP_UI/issues/307/comments","statuses_url":"https://api.github.com/repos/NWQMC/WQP_UI/statuses/c36345f2d83fd5194c3919189fda6df4e99adb81","head":{"label":"abriggs-usgs:WQP-1195_show_only_one_webcall","ref":"WQP-1195_show_only_one_webcall","sha":"c36345f2d83fd5194c3919189fda6df4e99adb81","user":{"login":"abriggs-usgs","id":36997804,"node_id":"MDQ6VXNlcjM2OTk3ODA0","avatar_url":"https://avatars0.githubusercontent.com/u/36997804?v=4","gravatar_id":"","url":"https://api.github.com/users/abriggs-usgs","html_url":"https://github.com/abriggs-usgs","followers_url":"https://api.github.com/users/abriggs-usgs/followers","following_url":"https://api.github.com/users/abriggs-usgs/following{/other_user}","gists_url":"https://api.github.com/users/abriggs-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/abriggs-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abriggs-usgs/subscriptions","organizations_url":"https://api.github.com/users/abriggs-usgs/orgs","repos_url":"https://api.github.com/users/abriggs-usgs/repos","events_url":"https://api.github.com/users/abriggs-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/abriggs-usgs/received_events","type":"User","site_admin":false},"repo":{"id":134883163,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQ4ODMxNjM=","name":"WQP_UI","full_name":"abriggs-usgs/WQP_UI","owner":{"login":"abriggs-usgs","id":36997804,"node_id":"MDQ6VXNlcjM2OTk3ODA0","avatar_url":"https://avatars0.githubusercontent.com/u/36997804?v=4","gravatar_id":"","url":"https://api.github.com/users/abriggs-usgs","html_url":"https://github.com/abriggs-usgs","followers_url":"https://api.github.com/users/abriggs-usgs/followers","following_url":"https://api.github.com/users/abriggs-usgs/following{/other_user}","gists_url":"https://api.github.com/users/abriggs-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/abriggs-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abriggs-usgs/subscriptions","organizations_url":"https://api.github.com/users/abriggs-usgs/orgs","repos_url":"https://api.github.com/users/abriggs-usgs/repos","events_url":"https://api.github.com/users/abriggs-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/abriggs-usgs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/abriggs-usgs/WQP_UI","description":"Water Quality Portal User Interface","fork":true,"url":"https://api.github.com/repos/abriggs-usgs/WQP_UI","forks_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/forks","keys_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/teams","hooks_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/hooks","issue_events_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/issues/events{/number}","events_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/events","assignees_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/assignees{/user}","branches_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/branches{/branch}","tags_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/tags","blobs_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/git/refs{/sha}","trees_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/statuses/{sha}","languages_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/languages","stargazers_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/stargazers","contributors_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/contributors","subscribers_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/subscribers","subscription_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/subscription","commits_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/commits{/sha}","git_commits_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/git/commits{/sha}","comments_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/comments{/number}","issue_comment_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/issues/comments{/number}","contents_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/contents/{+path}","compare_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/merges","archive_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/downloads","issues_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/issues{/number}","pulls_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/pulls{/number}","milestones_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/milestones{/number}","notifications_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/labels{/name}","releases_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/releases{/id}","deployments_url":"https://api.github.com/repos/abriggs-usgs/WQP_UI/deployments","created_at":"2018-05-25T16:57:00Z","updated_at":"2018-06-14T15:54:00Z","pushed_at":"2018-06-21T18:48:39Z","git_url":"git://github.com/abriggs-usgs/WQP_UI.git","ssh_url":"git@github.com:abriggs-usgs/WQP_UI.git","clone_url":"https://github.com/abriggs-usgs/WQP_UI.git","svn_url":"https://github.com/abriggs-usgs/WQP_UI","homepage":null,"size":30716,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"NWQMC:master","ref":"master","sha":"677fab9e228d47ab9d374a66666f00e844b3f711","user":{"login":"NWQMC","id":34043503,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0MDQzNTAz","avatar_url":"https://avatars2.githubusercontent.com/u/34043503?v=4","gravatar_id":"","url":"https://api.github.com/users/NWQMC","html_url":"https://github.com/NWQMC","followers_url":"https://api.github.com/users/NWQMC/followers","following_url":"https://api.github.com/users/NWQMC/following{/other_user}","gists_url":"https://api.github.com/users/NWQMC/gists{/gist_id}","starred_url":"https://api.github.com/users/NWQMC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NWQMC/subscriptions","organizations_url":"https://api.github.com/users/NWQMC/orgs","repos_url":"https://api.github.com/users/NWQMC/repos","events_url":"https://api.github.com/users/NWQMC/events{/privacy}","received_events_url":"https://api.github.com/users/NWQMC/received_events","type":"Organization","site_admin":false},"repo":{"id":32877055,"node_id":"MDEwOlJlcG9zaXRvcnkzMjg3NzA1NQ==","name":"WQP_UI","full_name":"NWQMC/WQP_UI","owner":{"login":"NWQMC","id":34043503,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0MDQzNTAz","avatar_url":"https://avatars2.githubusercontent.com/u/34043503?v=4","gravatar_id":"","url":"https://api.github.com/users/NWQMC","html_url":"https://github.com/NWQMC","followers_url":"https://api.github.com/users/NWQMC/followers","following_url":"https://api.github.com/users/NWQMC/following{/other_user}","gists_url":"https://api.github.com/users/NWQMC/gists{/gist_id}","starred_url":"https://api.github.com/users/NWQMC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NWQMC/subscriptions","organizations_url":"https://api.github.com/users/NWQMC/orgs","repos_url":"https://api.github.com/users/NWQMC/repos","events_url":"https://api.github.com/users/NWQMC/events{/privacy}","received_events_url":"https://api.github.com/users/NWQMC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NWQMC/WQP_UI","description":"Water Quality Portal User Interface","fork":false,"url":"https://api.github.com/repos/NWQMC/WQP_UI","forks_url":"https://api.github.com/repos/NWQMC/WQP_UI/forks","keys_url":"https://api.github.com/repos/NWQMC/WQP_UI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NWQMC/WQP_UI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NWQMC/WQP_UI/teams","hooks_url":"https://api.github.com/repos/NWQMC/WQP_UI/hooks","issue_events_url":"https://api.github.com/repos/NWQMC/WQP_UI/issues/events{/number}","events_url":"https://api.github.com/repos/NWQMC/WQP_UI/events","assignees_url":"https://api.github.com/repos/NWQMC/WQP_UI/assignees{/user}","branches_url":"https://api.github.com/repos/NWQMC/WQP_UI/branches{/branch}","tags_url":"https://api.github.com/repos/NWQMC/WQP_UI/tags","blobs_url":"https://api.github.com/repos/NWQMC/WQP_UI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NWQMC/WQP_UI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NWQMC/WQP_UI/git/refs{/sha}","trees_url":"https://api.github.com/repos/NWQMC/WQP_UI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NWQMC/WQP_UI/statuses/{sha}","languages_url":"https://api.github.com/repos/NWQMC/WQP_UI/languages","stargazers_url":"https://api.github.com/repos/NWQMC/WQP_UI/stargazers","contributors_url":"https://api.github.com/repos/NWQMC/WQP_UI/contributors","subscribers_url":"https://api.github.com/repos/NWQMC/WQP_UI/subscribers","subscription_url":"https://api.github.com/repos/NWQMC/WQP_UI/subscription","commits_url":"https://api.github.com/repos/NWQMC/WQP_UI/commits{/sha}","git_commits_url":"https://api.github.com/repos/NWQMC/WQP_UI/git/commits{/sha}","comments_url":"https://api.github.com/repos/NWQMC/WQP_UI/comments{/number}","issue_comment_url":"https://api.github.com/repos/NWQMC/WQP_UI/issues/comments{/number}","contents_url":"https://api.github.com/repos/NWQMC/WQP_UI/contents/{+path}","compare_url":"https://api.github.com/repos/NWQMC/WQP_UI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NWQMC/WQP_UI/merges","archive_url":"https://api.github.com/repos/NWQMC/WQP_UI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NWQMC/WQP_UI/downloads","issues_url":"https://api.github.com/repos/NWQMC/WQP_UI/issues{/number}","pulls_url":"https://api.github.com/repos/NWQMC/WQP_UI/pulls{/number}","milestones_url":"https://api.github.com/repos/NWQMC/WQP_UI/milestones{/number}","notifications_url":"https://api.github.com/repos/NWQMC/WQP_UI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NWQMC/WQP_UI/labels{/name}","releases_url":"https://api.github.com/repos/NWQMC/WQP_UI/releases{/id}","deployments_url":"https://api.github.com/repos/NWQMC/WQP_UI/deployments","created_at":"2015-03-25T16:31:18Z","updated_at":"2018-06-20T15:06:04Z","pushed_at":"2018-06-21T18:48:40Z","git_url":"git://github.com/NWQMC/WQP_UI.git","ssh_url":"git@github.com:NWQMC/WQP_UI.git","clone_url":"https://github.com/NWQMC/WQP_UI.git","svn_url":"https://github.com/NWQMC/WQP_UI","homepage":null,"size":30659,"stargazers_count":3,"watchers_count":3,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":8,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NWQMC/WQP_UI/pulls/307"},"html":{"href":"https://github.com/NWQMC/WQP_UI/pull/307"},"issue":{"href":"https://api.github.com/repos/NWQMC/WQP_UI/issues/307"},"comments":{"href":"https://api.github.com/repos/NWQMC/WQP_UI/issues/307/comments"},"review_comments":{"href":"https://api.github.com/repos/NWQMC/WQP_UI/pulls/307/comments"},"review_comment":{"href":"https://api.github.com/repos/NWQMC/WQP_UI/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NWQMC/WQP_UI/pulls/307/commits"},"statuses":{"href":"https://api.github.com/repos/NWQMC/WQP_UI/statuses/c36345f2d83fd5194c3919189fda6df4e99adb81"}},"author_association":"NONE"}}
{"actor":{"display_login":"mbucknell"}}