{"action":"created","comment":{"url":"https://api.github.com/repos/metricly/metricly-cli/pulls/comments/174163466","pull_request_review_id":103468418,"id":174163466,"diff_hunk":"@@ -46,12 +47,27 @@ class DashboardService {\n         logger.info(response.dashboard.name);\n       }\n       if (config.format === 'json') {\n+        // remove some internal keys\n+        this.scrubDashboardKeys(response.dashboard);\n         logger.info(JSON.stringify(response, null, 2));\n       }\n     } catch (e) {\n       logger.error('There was an error getting the dashboard: ' + e);\n     }\n   }\n+\n+  private scrubDashboardKeys(dashboard) {","path":"ts/services/DashboardService.ts","position":21,"original_position":21,"commit_id":"a0c0d726d084db89561037fbe46b50ebaf7d0511","original_commit_id":"a0c0d726d084db89561037fbe46b50ebaf7d0511","user":{"login":"TheConnMan","id":1328448,"avatar_url":"https://avatars3.githubusercontent.com/u/1328448?v=4","gravatar_id":"","url":"https://api.github.com/users/TheConnMan","html_url":"https://github.com/TheConnMan","followers_url":"https://api.github.com/users/TheConnMan/followers","following_url":"https://api.github.com/users/TheConnMan/following{/other_user}","gists_url":"https://api.github.com/users/TheConnMan/gists{/gist_id}","starred_url":"https://api.github.com/users/TheConnMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheConnMan/subscriptions","organizations_url":"https://api.github.com/users/TheConnMan/orgs","repos_url":"https://api.github.com/users/TheConnMan/repos","events_url":"https://api.github.com/users/TheConnMan/events{/privacy}","received_events_url":"https://api.github.com/users/TheConnMan/received_events","type":"User","site_admin":false},"body":"I'm thinking more along the lines of the latter. We could make an export config as well and store the IDs in a dot file locally. Something like:\r\n```\r\n$ package export config\r\n$ Which dashboards do you want to export (comma delimited list of IDs)? xxx,yyy,zzz\r\n$ Which policies do you want to export (comma delimited list of IDs)? xxx,yyy,zzz\r\n$ cat .pkg.json\r\n{\r\n  \"dashboards\": [\"xxx\", \"yyy\", \"zzz\"],\r\n  \"policies\": [\"xxx\", \"yyy\", \"zzz\"]\r\n}\r\n```\r\n\r\nThen to re-export your package you just run `package export` and it pulls those dashboards and policies down, scrubs them, and you're g2g.","created_at":"2018-03-13T14:59:15Z","updated_at":"2018-03-13T14:59:15Z","html_url":"https://github.com/metricly/metricly-cli/pull/38#discussion_r174163466","pull_request_url":"https://api.github.com/repos/metricly/metricly-cli/pulls/38","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/metricly/metricly-cli/pulls/comments/174163466"},"html":{"href":"https://github.com/metricly/metricly-cli/pull/38#discussion_r174163466"},"pull_request":{"href":"https://api.github.com/repos/metricly/metricly-cli/pulls/38"}},"in_reply_to_id":174145242},"pull_request":{"url":"https://api.github.com/repos/metricly/metricly-cli/pulls/38","id":174502113,"html_url":"https://github.com/metricly/metricly-cli/pull/38","diff_url":"https://github.com/metricly/metricly-cli/pull/38.diff","patch_url":"https://github.com/metricly/metricly-cli/pull/38.patch","issue_url":"https://api.github.com/repos/metricly/metricly-cli/issues/38","number":38,"state":"open","locked":false,"title":"Scrub internal keys when formatting output is JSON","user":{"login":"bspindler","id":251221,"avatar_url":"https://avatars1.githubusercontent.com/u/251221?v=4","gravatar_id":"","url":"https://api.github.com/users/bspindler","html_url":"https://github.com/bspindler","followers_url":"https://api.github.com/users/bspindler/followers","following_url":"https://api.github.com/users/bspindler/following{/other_user}","gists_url":"https://api.github.com/users/bspindler/gists{/gist_id}","starred_url":"https://api.github.com/users/bspindler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bspindler/subscriptions","organizations_url":"https://api.github.com/users/bspindler/orgs","repos_url":"https://api.github.com/users/bspindler/repos","events_url":"https://api.github.com/users/bspindler/events{/privacy}","received_events_url":"https://api.github.com/users/bspindler/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-12T21:38:30Z","updated_at":"2018-03-13T14:59:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"77a80c748e03aece0dc931da1f5c5ee72e40aa13","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/metricly/metricly-cli/pulls/38/commits","review_comments_url":"https://api.github.com/repos/metricly/metricly-cli/pulls/38/comments","review_comment_url":"https://api.github.com/repos/metricly/metricly-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/metricly/metricly-cli/issues/38/comments","statuses_url":"https://api.github.com/repos/metricly/metricly-cli/statuses/a0c0d726d084db89561037fbe46b50ebaf7d0511","head":{"label":"metricly:improvement/scrub-dashboards","ref":"improvement/scrub-dashboards","sha":"a0c0d726d084db89561037fbe46b50ebaf7d0511","user":{"login":"metricly","id":25858582,"avatar_url":"https://avatars1.githubusercontent.com/u/25858582?v=4","gravatar_id":"","url":"https://api.github.com/users/metricly","html_url":"https://github.com/metricly","followers_url":"https://api.github.com/users/metricly/followers","following_url":"https://api.github.com/users/metricly/following{/other_user}","gists_url":"https://api.github.com/users/metricly/gists{/gist_id}","starred_url":"https://api.github.com/users/metricly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metricly/subscriptions","organizations_url":"https://api.github.com/users/metricly/orgs","repos_url":"https://api.github.com/users/metricly/repos","events_url":"https://api.github.com/users/metricly/events{/privacy}","received_events_url":"https://api.github.com/users/metricly/received_events","type":"Organization","site_admin":false},"repo":{"id":116410142,"name":"metricly-cli","full_name":"metricly/metricly-cli","owner":{"login":"metricly","id":25858582,"avatar_url":"https://avatars1.githubusercontent.com/u/25858582?v=4","gravatar_id":"","url":"https://api.github.com/users/metricly","html_url":"https://github.com/metricly","followers_url":"https://api.github.com/users/metricly/followers","following_url":"https://api.github.com/users/metricly/following{/other_user}","gists_url":"https://api.github.com/users/metricly/gists{/gist_id}","starred_url":"https://api.github.com/users/metricly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metricly/subscriptions","organizations_url":"https://api.github.com/users/metricly/orgs","repos_url":"https://api.github.com/users/metricly/repos","events_url":"https://api.github.com/users/metricly/events{/privacy}","received_events_url":"https://api.github.com/users/metricly/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/metricly/metricly-cli","description":null,"fork":false,"url":"https://api.github.com/repos/metricly/metricly-cli","forks_url":"https://api.github.com/repos/metricly/metricly-cli/forks","keys_url":"https://api.github.com/repos/metricly/metricly-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/metricly/metricly-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/metricly/metricly-cli/teams","hooks_url":"https://api.github.com/repos/metricly/metricly-cli/hooks","issue_events_url":"https://api.github.com/repos/metricly/metricly-cli/issues/events{/number}","events_url":"https://api.github.com/repos/metricly/metricly-cli/events","assignees_url":"https://api.github.com/repos/metricly/metricly-cli/assignees{/user}","branches_url":"https://api.github.com/repos/metricly/metricly-cli/branches{/branch}","tags_url":"https://api.github.com/repos/metricly/metricly-cli/tags","blobs_url":"https://api.github.com/repos/metricly/metricly-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/metricly/metricly-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/metricly/metricly-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/metricly/metricly-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/metricly/metricly-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/metricly/metricly-cli/languages","stargazers_url":"https://api.github.com/repos/metricly/metricly-cli/stargazers","contributors_url":"https://api.github.com/repos/metricly/metricly-cli/contributors","subscribers_url":"https://api.github.com/repos/metricly/metricly-cli/subscribers","subscription_url":"https://api.github.com/repos/metricly/metricly-cli/subscription","commits_url":"https://api.github.com/repos/metricly/metricly-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/metricly/metricly-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/metricly/metricly-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/metricly/metricly-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/metricly/metricly-cli/contents/{+path}","compare_url":"https://api.github.com/repos/metricly/metricly-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/metricly/metricly-cli/merges","archive_url":"https://api.github.com/repos/metricly/metricly-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/metricly/metricly-cli/downloads","issues_url":"https://api.github.com/repos/metricly/metricly-cli/issues{/number}","pulls_url":"https://api.github.com/repos/metricly/metricly-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/metricly/metricly-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/metricly/metricly-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/metricly/metricly-cli/labels{/name}","releases_url":"https://api.github.com/repos/metricly/metricly-cli/releases{/id}","deployments_url":"https://api.github.com/repos/metricly/metricly-cli/deployments","created_at":"2018-01-05T17:30:06Z","updated_at":"2018-03-13T14:14:07Z","pushed_at":"2018-03-12T21:38:31Z","git_url":"git://github.com/metricly/metricly-cli.git","ssh_url":"git@github.com:metricly/metricly-cli.git","clone_url":"https://github.com/metricly/metricly-cli.git","svn_url":"https://github.com/metricly/metricly-cli","homepage":null,"size":276,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":6,"watchers":1,"default_branch":"master"}},"base":{"label":"metricly:dev","ref":"dev","sha":"085f70985f920fc71fe63b9e36c4bf7d0df91ad9","user":{"login":"metricly","id":25858582,"avatar_url":"https://avatars1.githubusercontent.com/u/25858582?v=4","gravatar_id":"","url":"https://api.github.com/users/metricly","html_url":"https://github.com/metricly","followers_url":"https://api.github.com/users/metricly/followers","following_url":"https://api.github.com/users/metricly/following{/other_user}","gists_url":"https://api.github.com/users/metricly/gists{/gist_id}","starred_url":"https://api.github.com/users/metricly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metricly/subscriptions","organizations_url":"https://api.github.com/users/metricly/orgs","repos_url":"https://api.github.com/users/metricly/repos","events_url":"https://api.github.com/users/metricly/events{/privacy}","received_events_url":"https://api.github.com/users/metricly/received_events","type":"Organization","site_admin":false},"repo":{"id":116410142,"name":"metricly-cli","full_name":"metricly/metricly-cli","owner":{"login":"metricly","id":25858582,"avatar_url":"https://avatars1.githubusercontent.com/u/25858582?v=4","gravatar_id":"","url":"https://api.github.com/users/metricly","html_url":"https://github.com/metricly","followers_url":"https://api.github.com/users/metricly/followers","following_url":"https://api.github.com/users/metricly/following{/other_user}","gists_url":"https://api.github.com/users/metricly/gists{/gist_id}","starred_url":"https://api.github.com/users/metricly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metricly/subscriptions","organizations_url":"https://api.github.com/users/metricly/orgs","repos_url":"https://api.github.com/users/metricly/repos","events_url":"https://api.github.com/users/metricly/events{/privacy}","received_events_url":"https://api.github.com/users/metricly/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/metricly/metricly-cli","description":null,"fork":false,"url":"https://api.github.com/repos/metricly/metricly-cli","forks_url":"https://api.github.com/repos/metricly/metricly-cli/forks","keys_url":"https://api.github.com/repos/metricly/metricly-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/metricly/metricly-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/metricly/metricly-cli/teams","hooks_url":"https://api.github.com/repos/metricly/metricly-cli/hooks","issue_events_url":"https://api.github.com/repos/metricly/metricly-cli/issues/events{/number}","events_url":"https://api.github.com/repos/metricly/metricly-cli/events","assignees_url":"https://api.github.com/repos/metricly/metricly-cli/assignees{/user}","branches_url":"https://api.github.com/repos/metricly/metricly-cli/branches{/branch}","tags_url":"https://api.github.com/repos/metricly/metricly-cli/tags","blobs_url":"https://api.github.com/repos/metricly/metricly-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/metricly/metricly-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/metricly/metricly-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/metricly/metricly-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/metricly/metricly-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/metricly/metricly-cli/languages","stargazers_url":"https://api.github.com/repos/metricly/metricly-cli/stargazers","contributors_url":"https://api.github.com/repos/metricly/metricly-cli/contributors","subscribers_url":"https://api.github.com/repos/metricly/metricly-cli/subscribers","subscription_url":"https://api.github.com/repos/metricly/metricly-cli/subscription","commits_url":"https://api.github.com/repos/metricly/metricly-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/metricly/metricly-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/metricly/metricly-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/metricly/metricly-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/metricly/metricly-cli/contents/{+path}","compare_url":"https://api.github.com/repos/metricly/metricly-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/metricly/metricly-cli/merges","archive_url":"https://api.github.com/repos/metricly/metricly-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/metricly/metricly-cli/downloads","issues_url":"https://api.github.com/repos/metricly/metricly-cli/issues{/number}","pulls_url":"https://api.github.com/repos/metricly/metricly-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/metricly/metricly-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/metricly/metricly-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/metricly/metricly-cli/labels{/name}","releases_url":"https://api.github.com/repos/metricly/metricly-cli/releases{/id}","deployments_url":"https://api.github.com/repos/metricly/metricly-cli/deployments","created_at":"2018-01-05T17:30:06Z","updated_at":"2018-03-13T14:14:07Z","pushed_at":"2018-03-12T21:38:31Z","git_url":"git://github.com/metricly/metricly-cli.git","ssh_url":"git@github.com:metricly/metricly-cli.git","clone_url":"https://github.com/metricly/metricly-cli.git","svn_url":"https://github.com/metricly/metricly-cli","homepage":null,"size":276,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/metricly/metricly-cli/pulls/38"},"html":{"href":"https://github.com/metricly/metricly-cli/pull/38"},"issue":{"href":"https://api.github.com/repos/metricly/metricly-cli/issues/38"},"comments":{"href":"https://api.github.com/repos/metricly/metricly-cli/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/metricly/metricly-cli/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/metricly/metricly-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/metricly/metricly-cli/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/metricly/metricly-cli/statuses/a0c0d726d084db89561037fbe46b50ebaf7d0511"}},"author_association":"OWNER"}}
{"actor":{"display_login":"TheConnMan"}}