{"action":"created","comment":{"url":"https://api.github.com/repos/snowplow-incubator/piinguin/pulls/comments/187000070","pull_request_review_id":118681340,"id":187000070,"diff_hunk":"@@ -0,0 +1,67 @@\n+/*\n+ * Copyright (c) 2018 Snowplow Analytics Ltd. All rights reserved.\n+ *\n+ * This program is licensed to you under the Apache License Version 2.0,\n+ * and you may not use this file except in compliance with the Apache License Version 2.0.\n+ * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0.\n+ *\n+ * Unless required by applicable law or agreed to in writing,\n+ * software distributed under the Apache License Version 2.0 is distributed on an\n+ * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.\n+ */\n+\n+package com.snowplowanalytics.piinguin.server\n+\n+// Scala\n+import scala.concurrent.ExecutionContext\n+\n+// Logging\n+import org.slf4j.LoggerFactory\n+\n+// Scopt\n+import scopt.OptionParser\n+\n+// Generated BuildInfo\n+import com.snowplowanalytics.piinguin.BuildInfo\n+\n+/**\n+ * Entry point (see scala.App)\n+ */\n+object Main extends App {\n+  implicit val ec              = ExecutionContext.global\n+  private val logger           = LoggerFactory.getLogger(classOf[PiinguinServer].getName)\n+  private val APPLICATION_NAME = \"piinguin-server\"\n+\n+  private val configParser = new OptionParser[PiinguinServerConfig](APPLICATION_NAME) {\n+    head(APPLICATION_NAME, BuildInfo.version, BuildInfo.scalaVersion, BuildInfo.sbtVersion, BuildInfo.builtAtString)\n+    help(\"help\").text(\"prints this help message\")\n+    version(\"version\").text(\"prints the server version\")\n+    opt[Int]('p', \"port\")\n+      .required()\n+      .text(\"port number to bind server to\")\n+      .action((x, c) => c.copy(port = x))\n+    opt[String]('t', \"table-name\")\n+      .required()\n+      .text(\"the dynamodb table to use\")\n+      .action((x, c) => c.copy(tableName = x))\n+    opt[Unit](\"dynamo-test-endpoint\")\n+      .text(\"Use the dynamoDB test endoint at http://localhost:8000 with dummy credentials (for testing)\")\n+      .action((_, c) => c.copy(dynamoTestEndPoint = true))","path":"2-servers/src/main/scala/com/snowplowanalytics/piinguin/server/Main.scala","position":50,"original_position":50,"commit_id":"108442df33ccf4b386334aee5e086264b457e119","original_commit_id":"108442df33ccf4b386334aee5e086264b457e119","user":{"login":"BenFradet","id":1737211,"avatar_url":"https://avatars2.githubusercontent.com/u/1737211?v=4","gravatar_id":"","url":"https://api.github.com/users/BenFradet","html_url":"https://github.com/BenFradet","followers_url":"https://api.github.com/users/BenFradet/followers","following_url":"https://api.github.com/users/BenFradet/following{/other_user}","gists_url":"https://api.github.com/users/BenFradet/gists{/gist_id}","starred_url":"https://api.github.com/users/BenFradet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenFradet/subscriptions","organizations_url":"https://api.github.com/users/BenFradet/orgs","repos_url":"https://api.github.com/users/BenFradet/repos","events_url":"https://api.github.com/users/BenFradet/events{/privacy}","received_events_url":"https://api.github.com/users/BenFradet/received_events","type":"User","site_admin":false},"body":"can we hide this option?","created_at":"2018-05-09T10:39:08Z","updated_at":"2018-05-09T10:52:40Z","html_url":"https://github.com/snowplow-incubator/piinguin/pull/10#discussion_r187000070","pull_request_url":"https://api.github.com/repos/snowplow-incubator/piinguin/pulls/10","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/snowplow-incubator/piinguin/pulls/comments/187000070"},"html":{"href":"https://github.com/snowplow-incubator/piinguin/pull/10#discussion_r187000070"},"pull_request":{"href":"https://api.github.com/repos/snowplow-incubator/piinguin/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/snowplow-incubator/piinguin/pulls/10","id":186845914,"html_url":"https://github.com/snowplow-incubator/piinguin/pull/10","diff_url":"https://github.com/snowplow-incubator/piinguin/pull/10.diff","patch_url":"https://github.com/snowplow-incubator/piinguin/pull/10.patch","issue_url":"https://api.github.com/repos/snowplow-incubator/piinguin/issues/10","number":10,"state":"open","locked":false,"title":"Initial release","user":{"login":"knservis","id":2175283,"avatar_url":"https://avatars1.githubusercontent.com/u/2175283?v=4","gravatar_id":"","url":"https://api.github.com/users/knservis","html_url":"https://github.com/knservis","followers_url":"https://api.github.com/users/knservis/followers","following_url":"https://api.github.com/users/knservis/following{/other_user}","gists_url":"https://api.github.com/users/knservis/gists{/gist_id}","starred_url":"https://api.github.com/users/knservis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knservis/subscriptions","organizations_url":"https://api.github.com/users/knservis/orgs","repos_url":"https://api.github.com/users/knservis/repos","events_url":"https://api.github.com/users/knservis/events{/privacy}","received_events_url":"https://api.github.com/users/knservis/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-09T08:04:02Z","updated_at":"2018-05-09T10:52:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c119855f2ecc4339d5d68980f09d3cf395a1fff","assignee":null,"assignees":[],"requested_reviewers":[{"login":"chuwy","id":681171,"avatar_url":"https://avatars2.githubusercontent.com/u/681171?v=4","gravatar_id":"","url":"https://api.github.com/users/chuwy","html_url":"https://github.com/chuwy","followers_url":"https://api.github.com/users/chuwy/followers","following_url":"https://api.github.com/users/chuwy/following{/other_user}","gists_url":"https://api.github.com/users/chuwy/gists{/gist_id}","starred_url":"https://api.github.com/users/chuwy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuwy/subscriptions","organizations_url":"https://api.github.com/users/chuwy/orgs","repos_url":"https://api.github.com/users/chuwy/repos","events_url":"https://api.github.com/users/chuwy/events{/privacy}","received_events_url":"https://api.github.com/users/chuwy/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/snowplow-incubator/piinguin/pulls/10/commits","review_comments_url":"https://api.github.com/repos/snowplow-incubator/piinguin/pulls/10/comments","review_comment_url":"https://api.github.com/repos/snowplow-incubator/piinguin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/snowplow-incubator/piinguin/issues/10/comments","statuses_url":"https://api.github.com/repos/snowplow-incubator/piinguin/statuses/108442df33ccf4b386334aee5e086264b457e119","head":{"label":"snowplow-incubator:initial","ref":"initial","sha":"108442df33ccf4b386334aee5e086264b457e119","user":{"login":"snowplow-incubator","id":32620604,"avatar_url":"https://avatars2.githubusercontent.com/u/32620604?v=4","gravatar_id":"","url":"https://api.github.com/users/snowplow-incubator","html_url":"https://github.com/snowplow-incubator","followers_url":"https://api.github.com/users/snowplow-incubator/followers","following_url":"https://api.github.com/users/snowplow-incubator/following{/other_user}","gists_url":"https://api.github.com/users/snowplow-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/snowplow-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snowplow-incubator/subscriptions","organizations_url":"https://api.github.com/users/snowplow-incubator/orgs","repos_url":"https://api.github.com/users/snowplow-incubator/repos","events_url":"https://api.github.com/users/snowplow-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/snowplow-incubator/received_events","type":"Organization","site_admin":false},"repo":{"id":125128992,"name":"piinguin","full_name":"snowplow-incubator/piinguin","owner":{"login":"snowplow-incubator","id":32620604,"avatar_url":"https://avatars2.githubusercontent.com/u/32620604?v=4","gravatar_id":"","url":"https://api.github.com/users/snowplow-incubator","html_url":"https://github.com/snowplow-incubator","followers_url":"https://api.github.com/users/snowplow-incubator/followers","following_url":"https://api.github.com/users/snowplow-incubator/following{/other_user}","gists_url":"https://api.github.com/users/snowplow-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/snowplow-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snowplow-incubator/subscriptions","organizations_url":"https://api.github.com/users/snowplow-incubator/orgs","repos_url":"https://api.github.com/users/snowplow-incubator/repos","events_url":"https://api.github.com/users/snowplow-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/snowplow-incubator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/snowplow-incubator/piinguin","description":"A micro-service to securely store pseudonomized PII data","fork":false,"url":"https://api.github.com/repos/snowplow-incubator/piinguin","forks_url":"https://api.github.com/repos/snowplow-incubator/piinguin/forks","keys_url":"https://api.github.com/repos/snowplow-incubator/piinguin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/snowplow-incubator/piinguin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/snowplow-incubator/piinguin/teams","hooks_url":"https://api.github.com/repos/snowplow-incubator/piinguin/hooks","issue_events_url":"https://api.github.com/repos/snowplow-incubator/piinguin/issues/events{/number}","events_url":"https://api.github.com/repos/snowplow-incubator/piinguin/events","assignees_url":"https://api.github.com/repos/snowplow-incubator/piinguin/assignees{/user}","branches_url":"https://api.github.com/repos/snowplow-incubator/piinguin/branches{/branch}","tags_url":"https://api.github.com/repos/snowplow-incubator/piinguin/tags","blobs_url":"https://api.github.com/repos/snowplow-incubator/piinguin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/snowplow-incubator/piinguin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/snowplow-incubator/piinguin/git/refs{/sha}","trees_url":"https://api.github.com/repos/snowplow-incubator/piinguin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/snowplow-incubator/piinguin/statuses/{sha}","languages_url":"https://api.github.com/repos/snowplow-incubator/piinguin/languages","stargazers_url":"https://api.github.com/repos/snowplow-incubator/piinguin/stargazers","contributors_url":"https://api.github.com/repos/snowplow-incubator/piinguin/contributors","subscribers_url":"https://api.github.com/repos/snowplow-incubator/piinguin/subscribers","subscription_url":"https://api.github.com/repos/snowplow-incubator/piinguin/subscription","commits_url":"https://api.github.com/repos/snowplow-incubator/piinguin/commits{/sha}","git_commits_url":"https://api.github.com/repos/snowplow-incubator/piinguin/git/commits{/sha}","comments_url":"https://api.github.com/repos/snowplow-incubator/piinguin/comments{/number}","issue_comment_url":"https://api.github.com/repos/snowplow-incubator/piinguin/issues/comments{/number}","contents_url":"https://api.github.com/repos/snowplow-incubator/piinguin/contents/{+path}","compare_url":"https://api.github.com/repos/snowplow-incubator/piinguin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/snowplow-incubator/piinguin/merges","archive_url":"https://api.github.com/repos/snowplow-incubator/piinguin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/snowplow-incubator/piinguin/downloads","issues_url":"https://api.github.com/repos/snowplow-incubator/piinguin/issues{/number}","pulls_url":"https://api.github.com/repos/snowplow-incubator/piinguin/pulls{/number}","milestones_url":"https://api.github.com/repos/snowplow-incubator/piinguin/milestones{/number}","notifications_url":"https://api.github.com/repos/snowplow-incubator/piinguin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/snowplow-incubator/piinguin/labels{/name}","releases_url":"https://api.github.com/repos/snowplow-incubator/piinguin/releases{/id}","deployments_url":"https://api.github.com/repos/snowplow-incubator/piinguin/deployments","created_at":"2018-03-13T23:46:35Z","updated_at":"2018-05-09T08:01:31Z","pushed_at":"2018-05-09T10:15:49Z","git_url":"git://github.com/snowplow-incubator/piinguin.git","ssh_url":"git@github.com:snowplow-incubator/piinguin.git","clone_url":"https://github.com/snowplow-incubator/piinguin.git","svn_url":"https://github.com/snowplow-incubator/piinguin","homepage":null,"size":61,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":8,"license":null,"forks":1,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"snowplow-incubator:master","ref":"master","sha":"6405fd79cff41a370fd40f4eb6c3736e174c25f8","user":{"login":"snowplow-incubator","id":32620604,"avatar_url":"https://avatars2.githubusercontent.com/u/32620604?v=4","gravatar_id":"","url":"https://api.github.com/users/snowplow-incubator","html_url":"https://github.com/snowplow-incubator","followers_url":"https://api.github.com/users/snowplow-incubator/followers","following_url":"https://api.github.com/users/snowplow-incubator/following{/other_user}","gists_url":"https://api.github.com/users/snowplow-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/snowplow-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snowplow-incubator/subscriptions","organizations_url":"https://api.github.com/users/snowplow-incubator/orgs","repos_url":"https://api.github.com/users/snowplow-incubator/repos","events_url":"https://api.github.com/users/snowplow-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/snowplow-incubator/received_events","type":"Organization","site_admin":false},"repo":{"id":125128992,"name":"piinguin","full_name":"snowplow-incubator/piinguin","owner":{"login":"snowplow-incubator","id":32620604,"avatar_url":"https://avatars2.githubusercontent.com/u/32620604?v=4","gravatar_id":"","url":"https://api.github.com/users/snowplow-incubator","html_url":"https://github.com/snowplow-incubator","followers_url":"https://api.github.com/users/snowplow-incubator/followers","following_url":"https://api.github.com/users/snowplow-incubator/following{/other_user}","gists_url":"https://api.github.com/users/snowplow-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/snowplow-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snowplow-incubator/subscriptions","organizations_url":"https://api.github.com/users/snowplow-incubator/orgs","repos_url":"https://api.github.com/users/snowplow-incubator/repos","events_url":"https://api.github.com/users/snowplow-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/snowplow-incubator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/snowplow-incubator/piinguin","description":"A micro-service to securely store pseudonomized PII data","fork":false,"url":"https://api.github.com/repos/snowplow-incubator/piinguin","forks_url":"https://api.github.com/repos/snowplow-incubator/piinguin/forks","keys_url":"https://api.github.com/repos/snowplow-incubator/piinguin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/snowplow-incubator/piinguin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/snowplow-incubator/piinguin/teams","hooks_url":"https://api.github.com/repos/snowplow-incubator/piinguin/hooks","issue_events_url":"https://api.github.com/repos/snowplow-incubator/piinguin/issues/events{/number}","events_url":"https://api.github.com/repos/snowplow-incubator/piinguin/events","assignees_url":"https://api.github.com/repos/snowplow-incubator/piinguin/assignees{/user}","branches_url":"https://api.github.com/repos/snowplow-incubator/piinguin/branches{/branch}","tags_url":"https://api.github.com/repos/snowplow-incubator/piinguin/tags","blobs_url":"https://api.github.com/repos/snowplow-incubator/piinguin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/snowplow-incubator/piinguin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/snowplow-incubator/piinguin/git/refs{/sha}","trees_url":"https://api.github.com/repos/snowplow-incubator/piinguin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/snowplow-incubator/piinguin/statuses/{sha}","languages_url":"https://api.github.com/repos/snowplow-incubator/piinguin/languages","stargazers_url":"https://api.github.com/repos/snowplow-incubator/piinguin/stargazers","contributors_url":"https://api.github.com/repos/snowplow-incubator/piinguin/contributors","subscribers_url":"https://api.github.com/repos/snowplow-incubator/piinguin/subscribers","subscription_url":"https://api.github.com/repos/snowplow-incubator/piinguin/subscription","commits_url":"https://api.github.com/repos/snowplow-incubator/piinguin/commits{/sha}","git_commits_url":"https://api.github.com/repos/snowplow-incubator/piinguin/git/commits{/sha}","comments_url":"https://api.github.com/repos/snowplow-incubator/piinguin/comments{/number}","issue_comment_url":"https://api.github.com/repos/snowplow-incubator/piinguin/issues/comments{/number}","contents_url":"https://api.github.com/repos/snowplow-incubator/piinguin/contents/{+path}","compare_url":"https://api.github.com/repos/snowplow-incubator/piinguin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/snowplow-incubator/piinguin/merges","archive_url":"https://api.github.com/repos/snowplow-incubator/piinguin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/snowplow-incubator/piinguin/downloads","issues_url":"https://api.github.com/repos/snowplow-incubator/piinguin/issues{/number}","pulls_url":"https://api.github.com/repos/snowplow-incubator/piinguin/pulls{/number}","milestones_url":"https://api.github.com/repos/snowplow-incubator/piinguin/milestones{/number}","notifications_url":"https://api.github.com/repos/snowplow-incubator/piinguin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/snowplow-incubator/piinguin/labels{/name}","releases_url":"https://api.github.com/repos/snowplow-incubator/piinguin/releases{/id}","deployments_url":"https://api.github.com/repos/snowplow-incubator/piinguin/deployments","created_at":"2018-03-13T23:46:35Z","updated_at":"2018-05-09T08:01:31Z","pushed_at":"2018-05-09T10:15:49Z","git_url":"git://github.com/snowplow-incubator/piinguin.git","ssh_url":"git@github.com:snowplow-incubator/piinguin.git","clone_url":"https://github.com/snowplow-incubator/piinguin.git","svn_url":"https://github.com/snowplow-incubator/piinguin","homepage":null,"size":61,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":8,"license":null,"forks":1,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/snowplow-incubator/piinguin/pulls/10"},"html":{"href":"https://github.com/snowplow-incubator/piinguin/pull/10"},"issue":{"href":"https://api.github.com/repos/snowplow-incubator/piinguin/issues/10"},"comments":{"href":"https://api.github.com/repos/snowplow-incubator/piinguin/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/snowplow-incubator/piinguin/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/snowplow-incubator/piinguin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/snowplow-incubator/piinguin/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/snowplow-incubator/piinguin/statuses/108442df33ccf4b386334aee5e086264b457e119"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"BenFradet"}}