{"action":"created","comment":{"url":"https://api.github.com/repos/influxdata/platform/pulls/comments/220962729","pull_request_review_id":159496012,"id":220962729,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMDk2MjcyOQ==","diff_hunk":"@@ -0,0 +1,32 @@\n+package platform\n+\n+import \"context\"\n+\n+// OnboardingDefaults is a group of elements required for first run.\n+type OnboardingDefaults struct {\n+\tUser   User          `json:\"user\"`\n+\tOrg    Organization  `json:\"org\"`\n+\tBucket Bucket        `json:\"bucket\"`\n+\tAuth   Authorization `json:\"auth\"`\n+}\n+\n+// OnboardingRequest is the request\n+// to setup defaults.\n+type OnboardingRequest struct {\n+\tUserName   string `json:\"username\"`\n+\tPassword   string `json:\"password\"`\n+\tOrgName    string `json:\"org\"`\n+\tBucketName string `json:\"bucket\"`\n+}\n+\n+// OnboardingService represents a service for the first run.\n+type OnboardingService interface {\n+\t// IsOnboarding determine if onboarding request is allowed.\n+\tIsOnboarding(ctx context.Context) bool\n+\t// OnboardingFinished will update the flag.\n+\t// Set it true, future onboarding request will be denied.\n+\t// Set it false, future onboarding request will allowed.\n+\tOnboardingFinished(ctx context.Context, v bool) error","path":"onboarding.go","position":29,"original_position":29,"commit_id":"fe5e3b770e0f94dcef4be20a9c84f39326c74868","original_commit_id":"ec18b6caad2e7198cd7551139c8a7c18a2825985","user":{"login":"kelwang","id":8237958,"node_id":"MDQ6VXNlcjgyMzc5NTg=","avatar_url":"https://avatars2.githubusercontent.com/u/8237958?v=4","gravatar_id":"","url":"https://api.github.com/users/kelwang","html_url":"https://github.com/kelwang","followers_url":"https://api.github.com/users/kelwang/followers","following_url":"https://api.github.com/users/kelwang/following{/other_user}","gists_url":"https://api.github.com/users/kelwang/gists{/gist_id}","starred_url":"https://api.github.com/users/kelwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelwang/subscriptions","organizations_url":"https://api.github.com/users/kelwang/orgs","repos_url":"https://api.github.com/users/kelwang/repos","events_url":"https://api.github.com/users/kelwang/events{/privacy}","received_events_url":"https://api.github.com/users/kelwang/received_events","type":"User","site_admin":false},"body":"Hi, @desa, maybe you can help me to figure out a better name, it's really just for testing. More like PUT method of the other services. What do you think?","created_at":"2018-09-27T15:08:14Z","updated_at":"2018-09-27T15:08:14Z","html_url":"https://github.com/influxdata/platform/pull/824#discussion_r220962729","pull_request_url":"https://api.github.com/repos/influxdata/platform/pulls/824","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/influxdata/platform/pulls/comments/220962729"},"html":{"href":"https://github.com/influxdata/platform/pull/824#discussion_r220962729"},"pull_request":{"href":"https://api.github.com/repos/influxdata/platform/pulls/824"}},"in_reply_to_id":220625456},"pull_request":{"url":"https://api.github.com/repos/influxdata/platform/pulls/824","id":215069816,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1MDY5ODE2","html_url":"https://github.com/influxdata/platform/pull/824","diff_url":"https://github.com/influxdata/platform/pull/824.diff","patch_url":"https://github.com/influxdata/platform/pull/824.patch","issue_url":"https://api.github.com/repos/influxdata/platform/issues/824","number":824,"state":"open","locked":false,"title":"feat: add onboarding defaults","user":{"login":"kelwang","id":8237958,"node_id":"MDQ6VXNlcjgyMzc5NTg=","avatar_url":"https://avatars2.githubusercontent.com/u/8237958?v=4","gravatar_id":"","url":"https://api.github.com/users/kelwang","html_url":"https://github.com/kelwang","followers_url":"https://api.github.com/users/kelwang/followers","following_url":"https://api.github.com/users/kelwang/following{/other_user}","gists_url":"https://api.github.com/users/kelwang/gists{/gist_id}","starred_url":"https://api.github.com/users/kelwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelwang/subscriptions","organizations_url":"https://api.github.com/users/kelwang/orgs","repos_url":"https://api.github.com/users/kelwang/repos","events_url":"https://api.github.com/users/kelwang/events{/privacy}","received_events_url":"https://api.github.com/users/kelwang/received_events","type":"User","site_admin":false},"body":"resolve https://github.com/influxdata/platform/issues/792\r\n\r\ncheck if boltPath existed, before call client.Open()\r\nif not, we assume, this is the first time start the single binary.\r\nThen bolt client is opened, create default user, default bucket, default org, default auth.\r\n\r\nprint out the token ","created_at":"2018-09-12T19:27:21Z","updated_at":"2018-09-27T15:08:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4360a72ed16044685d373b17caac2edca09aea38","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/influxdata/platform/pulls/824/commits","review_comments_url":"https://api.github.com/repos/influxdata/platform/pulls/824/comments","review_comment_url":"https://api.github.com/repos/influxdata/platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/influxdata/platform/issues/824/comments","statuses_url":"https://api.github.com/repos/influxdata/platform/statuses/fe5e3b770e0f94dcef4be20a9c84f39326c74868","head":{"label":"influxdata:feat/default_ids","ref":"feat/default_ids","sha":"fe5e3b770e0f94dcef4be20a9c84f39326c74868","user":{"login":"influxdata","id":5713248,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3MTMyNDg=","avatar_url":"https://avatars2.githubusercontent.com/u/5713248?v=4","gravatar_id":"","url":"https://api.github.com/users/influxdata","html_url":"https://github.com/influxdata","followers_url":"https://api.github.com/users/influxdata/followers","following_url":"https://api.github.com/users/influxdata/following{/other_user}","gists_url":"https://api.github.com/users/influxdata/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdata/subscriptions","organizations_url":"https://api.github.com/users/influxdata/orgs","repos_url":"https://api.github.com/users/influxdata/repos","events_url":"https://api.github.com/users/influxdata/events{/privacy}","received_events_url":"https://api.github.com/users/influxdata/received_events","type":"Organization","site_admin":false},"repo":{"id":132783164,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI3ODMxNjQ=","name":"platform","full_name":"influxdata/platform","private":false,"owner":{"login":"influxdata","id":5713248,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3MTMyNDg=","avatar_url":"https://avatars2.githubusercontent.com/u/5713248?v=4","gravatar_id":"","url":"https://api.github.com/users/influxdata","html_url":"https://github.com/influxdata","followers_url":"https://api.github.com/users/influxdata/followers","following_url":"https://api.github.com/users/influxdata/following{/other_user}","gists_url":"https://api.github.com/users/influxdata/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdata/subscriptions","organizations_url":"https://api.github.com/users/influxdata/orgs","repos_url":"https://api.github.com/users/influxdata/repos","events_url":"https://api.github.com/users/influxdata/events{/privacy}","received_events_url":"https://api.github.com/users/influxdata/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/influxdata/platform","description":"InfluxDB 2.0: The community version of the InfluxData Platform for Time Series","fork":false,"url":"https://api.github.com/repos/influxdata/platform","forks_url":"https://api.github.com/repos/influxdata/platform/forks","keys_url":"https://api.github.com/repos/influxdata/platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/influxdata/platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/influxdata/platform/teams","hooks_url":"https://api.github.com/repos/influxdata/platform/hooks","issue_events_url":"https://api.github.com/repos/influxdata/platform/issues/events{/number}","events_url":"https://api.github.com/repos/influxdata/platform/events","assignees_url":"https://api.github.com/repos/influxdata/platform/assignees{/user}","branches_url":"https://api.github.com/repos/influxdata/platform/branches{/branch}","tags_url":"https://api.github.com/repos/influxdata/platform/tags","blobs_url":"https://api.github.com/repos/influxdata/platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/influxdata/platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/influxdata/platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/influxdata/platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/influxdata/platform/statuses/{sha}","languages_url":"https://api.github.com/repos/influxdata/platform/languages","stargazers_url":"https://api.github.com/repos/influxdata/platform/stargazers","contributors_url":"https://api.github.com/repos/influxdata/platform/contributors","subscribers_url":"https://api.github.com/repos/influxdata/platform/subscribers","subscription_url":"https://api.github.com/repos/influxdata/platform/subscription","commits_url":"https://api.github.com/repos/influxdata/platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/influxdata/platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/influxdata/platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/influxdata/platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/influxdata/platform/contents/{+path}","compare_url":"https://api.github.com/repos/influxdata/platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/influxdata/platform/merges","archive_url":"https://api.github.com/repos/influxdata/platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/influxdata/platform/downloads","issues_url":"https://api.github.com/repos/influxdata/platform/issues{/number}","pulls_url":"https://api.github.com/repos/influxdata/platform/pulls{/number}","milestones_url":"https://api.github.com/repos/influxdata/platform/milestones{/number}","notifications_url":"https://api.github.com/repos/influxdata/platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/influxdata/platform/labels{/name}","releases_url":"https://api.github.com/repos/influxdata/platform/releases{/id}","deployments_url":"https://api.github.com/repos/influxdata/platform/deployments","created_at":"2018-05-09T16:17:29Z","updated_at":"2018-09-27T14:42:39Z","pushed_at":"2018-09-27T14:58:44Z","git_url":"git://github.com/influxdata/platform.git","ssh_url":"git@github.com:influxdata/platform.git","clone_url":"https://github.com/influxdata/platform.git","svn_url":"https://github.com/influxdata/platform","homepage":"","size":27425,"stargazers_count":162,"watchers_count":162,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"archived":false,"open_issues_count":329,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":11,"open_issues":329,"watchers":162,"default_branch":"master"}},"base":{"label":"influxdata:master","ref":"master","sha":"6a86f8ee1426653dd81dbc65e0652e015b347d83","user":{"login":"influxdata","id":5713248,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3MTMyNDg=","avatar_url":"https://avatars2.githubusercontent.com/u/5713248?v=4","gravatar_id":"","url":"https://api.github.com/users/influxdata","html_url":"https://github.com/influxdata","followers_url":"https://api.github.com/users/influxdata/followers","following_url":"https://api.github.com/users/influxdata/following{/other_user}","gists_url":"https://api.github.com/users/influxdata/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdata/subscriptions","organizations_url":"https://api.github.com/users/influxdata/orgs","repos_url":"https://api.github.com/users/influxdata/repos","events_url":"https://api.github.com/users/influxdata/events{/privacy}","received_events_url":"https://api.github.com/users/influxdata/received_events","type":"Organization","site_admin":false},"repo":{"id":132783164,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI3ODMxNjQ=","name":"platform","full_name":"influxdata/platform","private":false,"owner":{"login":"influxdata","id":5713248,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3MTMyNDg=","avatar_url":"https://avatars2.githubusercontent.com/u/5713248?v=4","gravatar_id":"","url":"https://api.github.com/users/influxdata","html_url":"https://github.com/influxdata","followers_url":"https://api.github.com/users/influxdata/followers","following_url":"https://api.github.com/users/influxdata/following{/other_user}","gists_url":"https://api.github.com/users/influxdata/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdata/subscriptions","organizations_url":"https://api.github.com/users/influxdata/orgs","repos_url":"https://api.github.com/users/influxdata/repos","events_url":"https://api.github.com/users/influxdata/events{/privacy}","received_events_url":"https://api.github.com/users/influxdata/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/influxdata/platform","description":"InfluxDB 2.0: The community version of the InfluxData Platform for Time Series","fork":false,"url":"https://api.github.com/repos/influxdata/platform","forks_url":"https://api.github.com/repos/influxdata/platform/forks","keys_url":"https://api.github.com/repos/influxdata/platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/influxdata/platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/influxdata/platform/teams","hooks_url":"https://api.github.com/repos/influxdata/platform/hooks","issue_events_url":"https://api.github.com/repos/influxdata/platform/issues/events{/number}","events_url":"https://api.github.com/repos/influxdata/platform/events","assignees_url":"https://api.github.com/repos/influxdata/platform/assignees{/user}","branches_url":"https://api.github.com/repos/influxdata/platform/branches{/branch}","tags_url":"https://api.github.com/repos/influxdata/platform/tags","blobs_url":"https://api.github.com/repos/influxdata/platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/influxdata/platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/influxdata/platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/influxdata/platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/influxdata/platform/statuses/{sha}","languages_url":"https://api.github.com/repos/influxdata/platform/languages","stargazers_url":"https://api.github.com/repos/influxdata/platform/stargazers","contributors_url":"https://api.github.com/repos/influxdata/platform/contributors","subscribers_url":"https://api.github.com/repos/influxdata/platform/subscribers","subscription_url":"https://api.github.com/repos/influxdata/platform/subscription","commits_url":"https://api.github.com/repos/influxdata/platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/influxdata/platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/influxdata/platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/influxdata/platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/influxdata/platform/contents/{+path}","compare_url":"https://api.github.com/repos/influxdata/platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/influxdata/platform/merges","archive_url":"https://api.github.com/repos/influxdata/platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/influxdata/platform/downloads","issues_url":"https://api.github.com/repos/influxdata/platform/issues{/number}","pulls_url":"https://api.github.com/repos/influxdata/platform/pulls{/number}","milestones_url":"https://api.github.com/repos/influxdata/platform/milestones{/number}","notifications_url":"https://api.github.com/repos/influxdata/platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/influxdata/platform/labels{/name}","releases_url":"https://api.github.com/repos/influxdata/platform/releases{/id}","deployments_url":"https://api.github.com/repos/influxdata/platform/deployments","created_at":"2018-05-09T16:17:29Z","updated_at":"2018-09-27T14:42:39Z","pushed_at":"2018-09-27T14:58:44Z","git_url":"git://github.com/influxdata/platform.git","ssh_url":"git@github.com:influxdata/platform.git","clone_url":"https://github.com/influxdata/platform.git","svn_url":"https://github.com/influxdata/platform","homepage":"","size":27425,"stargazers_count":162,"watchers_count":162,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"archived":false,"open_issues_count":329,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":11,"open_issues":329,"watchers":162,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/influxdata/platform/pulls/824"},"html":{"href":"https://github.com/influxdata/platform/pull/824"},"issue":{"href":"https://api.github.com/repos/influxdata/platform/issues/824"},"comments":{"href":"https://api.github.com/repos/influxdata/platform/issues/824/comments"},"review_comments":{"href":"https://api.github.com/repos/influxdata/platform/pulls/824/comments"},"review_comment":{"href":"https://api.github.com/repos/influxdata/platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/influxdata/platform/pulls/824/commits"},"statuses":{"href":"https://api.github.com/repos/influxdata/platform/statuses/fe5e3b770e0f94dcef4be20a9c84f39326c74868"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"kelwang"}}