{"action":"created","comment":{"url":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls/comments/199869884","pull_request_review_id":134074125,"id":199869884,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTg2OTg4NA==","diff_hunk":"@@ -327,3 +334,21 @@ func (r *GormRepository) createOrUpdateWITGs(ctx context.Context, s *ImportHelpe\n \t}\n \treturn nil\n }\n+\n+func (r *GormRepository) createOrUpdateWIBs(ctx context.Context, s *ImportHelper) error {\n+\t// Delete old work item boards (if any) associated with this space\n+\t// template. There's no need to retain information about old boards as\n+\t// it is just a linkage of work item type groups.\n+\tdb := r.db.Unscoped().Delete(workitem.Board{}, \"space_template_id = ?\", s.Template.ID)\n+\tif db.Error != nil {\n+\t\treturn errors.NewInternalError(ctx, errs.Wrapf(db.Error, \"failed to deleted previous work item boards for space template '%s'\", s.Template.ID))","path":"spacetemplate/importer/repository.go","position":32,"original_position":32,"commit_id":"5d697f3e22da7a3da63009ba3f6f556badc104d9","original_commit_id":"5d697f3e22da7a3da63009ba3f6f556badc104d9","user":{"login":"michaelkleinhenz","id":7101098,"node_id":"MDQ6VXNlcjcxMDEwOTg=","avatar_url":"https://avatars1.githubusercontent.com/u/7101098?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelkleinhenz","html_url":"https://github.com/michaelkleinhenz","followers_url":"https://api.github.com/users/michaelkleinhenz/followers","following_url":"https://api.github.com/users/michaelkleinhenz/following{/other_user}","gists_url":"https://api.github.com/users/michaelkleinhenz/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelkleinhenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelkleinhenz/subscriptions","organizations_url":"https://api.github.com/users/michaelkleinhenz/orgs","repos_url":"https://api.github.com/users/michaelkleinhenz/repos","events_url":"https://api.github.com/users/michaelkleinhenz/events{/privacy}","received_events_url":"https://api.github.com/users/michaelkleinhenz/received_events","type":"User","site_admin":false},"body":"Fixed.","created_at":"2018-07-03T16:22:18Z","updated_at":"2018-07-03T16:22:18Z","html_url":"https://github.com/fabric8-services/fabric8-wit/pull/2111#discussion_r199869884","pull_request_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls/2111","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls/comments/199869884"},"html":{"href":"https://github.com/fabric8-services/fabric8-wit/pull/2111#discussion_r199869884"},"pull_request":{"href":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls/2111"}},"in_reply_to_id":199800874},"pull_request":{"url":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls/2111","id":193559160,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzNTU5MTYw","html_url":"https://github.com/fabric8-services/fabric8-wit/pull/2111","diff_url":"https://github.com/fabric8-services/fabric8-wit/pull/2111.diff","patch_url":"https://github.com/fabric8-services/fabric8-wit/pull/2111.patch","issue_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/issues/2111","number":2111,"state":"open","locked":false,"title":"feat(boardview): Board View for WIT.","user":{"login":"michaelkleinhenz","id":7101098,"node_id":"MDQ6VXNlcjcxMDEwOTg=","avatar_url":"https://avatars1.githubusercontent.com/u/7101098?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelkleinhenz","html_url":"https://github.com/michaelkleinhenz","followers_url":"https://api.github.com/users/michaelkleinhenz/followers","following_url":"https://api.github.com/users/michaelkleinhenz/following{/other_user}","gists_url":"https://api.github.com/users/michaelkleinhenz/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelkleinhenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelkleinhenz/subscriptions","organizations_url":"https://api.github.com/users/michaelkleinhenz/orgs","repos_url":"https://api.github.com/users/michaelkleinhenz/repos","events_url":"https://api.github.com/users/michaelkleinhenz/events{/privacy}","received_events_url":"https://api.github.com/users/michaelkleinhenz/received_events","type":"User","site_admin":false},"body":"# Board View for WIT Backend Services\r\n\r\n## Description\r\nThis implements the backend support for board views. It contains changes to the JSONAPI services as well as to the space template system. It provides backend support for a flexible, extensible board view implementation.\r\n\r\nThe full documentation can be found in [this document](https://github.com/michaelkleinhenz/fabric8-wit/blob/boardview/board_view.md) which is part of this PR and thereby can be tracked nicely according to comments and suggested changes.","created_at":"2018-06-08T09:34:23Z","updated_at":"2018-07-03T16:22:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"912a063d85bf0f601774e0a53c0188f25991aaef","assignee":null,"assignees":[],"requested_reviewers":[{"login":"baijum","id":121129,"node_id":"MDQ6VXNlcjEyMTEyOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/121129?v=4","gravatar_id":"","url":"https://api.github.com/users/baijum","html_url":"https://github.com/baijum","followers_url":"https://api.github.com/users/baijum/followers","following_url":"https://api.github.com/users/baijum/following{/other_user}","gists_url":"https://api.github.com/users/baijum/gists{/gist_id}","starred_url":"https://api.github.com/users/baijum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baijum/subscriptions","organizations_url":"https://api.github.com/users/baijum/orgs","repos_url":"https://api.github.com/users/baijum/repos","events_url":"https://api.github.com/users/baijum/events{/privacy}","received_events_url":"https://api.github.com/users/baijum/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls/2111/commits","review_comments_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls/2111/comments","review_comment_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/issues/2111/comments","statuses_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/statuses/5d697f3e22da7a3da63009ba3f6f556badc104d9","head":{"label":"michaelkleinhenz:boardview","ref":"boardview","sha":"5d697f3e22da7a3da63009ba3f6f556badc104d9","user":{"login":"michaelkleinhenz","id":7101098,"node_id":"MDQ6VXNlcjcxMDEwOTg=","avatar_url":"https://avatars1.githubusercontent.com/u/7101098?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelkleinhenz","html_url":"https://github.com/michaelkleinhenz","followers_url":"https://api.github.com/users/michaelkleinhenz/followers","following_url":"https://api.github.com/users/michaelkleinhenz/following{/other_user}","gists_url":"https://api.github.com/users/michaelkleinhenz/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelkleinhenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelkleinhenz/subscriptions","organizations_url":"https://api.github.com/users/michaelkleinhenz/orgs","repos_url":"https://api.github.com/users/michaelkleinhenz/repos","events_url":"https://api.github.com/users/michaelkleinhenz/events{/privacy}","received_events_url":"https://api.github.com/users/michaelkleinhenz/received_events","type":"User","site_admin":false},"repo":{"id":131597385,"node_id":"MDEwOlJlcG9zaXRvcnkxMzE1OTczODU=","name":"fabric8-wit","full_name":"michaelkleinhenz/fabric8-wit","owner":{"login":"michaelkleinhenz","id":7101098,"node_id":"MDQ6VXNlcjcxMDEwOTg=","avatar_url":"https://avatars1.githubusercontent.com/u/7101098?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelkleinhenz","html_url":"https://github.com/michaelkleinhenz","followers_url":"https://api.github.com/users/michaelkleinhenz/followers","following_url":"https://api.github.com/users/michaelkleinhenz/following{/other_user}","gists_url":"https://api.github.com/users/michaelkleinhenz/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelkleinhenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelkleinhenz/subscriptions","organizations_url":"https://api.github.com/users/michaelkleinhenz/orgs","repos_url":"https://api.github.com/users/michaelkleinhenz/repos","events_url":"https://api.github.com/users/michaelkleinhenz/events{/privacy}","received_events_url":"https://api.github.com/users/michaelkleinhenz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/michaelkleinhenz/fabric8-wit","description":null,"fork":true,"url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit","forks_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/forks","keys_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/teams","hooks_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/hooks","issue_events_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/issues/events{/number}","events_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/events","assignees_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/assignees{/user}","branches_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/branches{/branch}","tags_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/tags","blobs_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/git/refs{/sha}","trees_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/statuses/{sha}","languages_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/languages","stargazers_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/stargazers","contributors_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/contributors","subscribers_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/subscribers","subscription_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/subscription","commits_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/commits{/sha}","git_commits_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/git/commits{/sha}","comments_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/comments{/number}","issue_comment_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/issues/comments{/number}","contents_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/contents/{+path}","compare_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/merges","archive_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/downloads","issues_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/issues{/number}","pulls_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/pulls{/number}","milestones_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/milestones{/number}","notifications_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/labels{/name}","releases_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/releases{/id}","deployments_url":"https://api.github.com/repos/michaelkleinhenz/fabric8-wit/deployments","created_at":"2018-04-30T13:11:46Z","updated_at":"2018-04-30T13:11:50Z","pushed_at":"2018-07-03T13:03:10Z","git_url":"git://github.com/michaelkleinhenz/fabric8-wit.git","ssh_url":"git@github.com:michaelkleinhenz/fabric8-wit.git","clone_url":"https://github.com/michaelkleinhenz/fabric8-wit.git","svn_url":"https://github.com/michaelkleinhenz/fabric8-wit","homepage":"http://devdoc.almighty.io/","size":9020,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fabric8-services:master","ref":"master","sha":"67a3d3a631e1e2a92cd7ce833eb64573f30f0fa0","user":{"login":"fabric8-services","id":29751612,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NzUxNjEy","avatar_url":"https://avatars1.githubusercontent.com/u/29751612?v=4","gravatar_id":"","url":"https://api.github.com/users/fabric8-services","html_url":"https://github.com/fabric8-services","followers_url":"https://api.github.com/users/fabric8-services/followers","following_url":"https://api.github.com/users/fabric8-services/following{/other_user}","gists_url":"https://api.github.com/users/fabric8-services/gists{/gist_id}","starred_url":"https://api.github.com/users/fabric8-services/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabric8-services/subscriptions","organizations_url":"https://api.github.com/users/fabric8-services/orgs","repos_url":"https://api.github.com/users/fabric8-services/repos","events_url":"https://api.github.com/users/fabric8-services/events{/privacy}","received_events_url":"https://api.github.com/users/fabric8-services/received_events","type":"Organization","site_admin":false},"repo":{"id":54260706,"node_id":"MDEwOlJlcG9zaXRvcnk1NDI2MDcwNg==","name":"fabric8-wit","full_name":"fabric8-services/fabric8-wit","owner":{"login":"fabric8-services","id":29751612,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NzUxNjEy","avatar_url":"https://avatars1.githubusercontent.com/u/29751612?v=4","gravatar_id":"","url":"https://api.github.com/users/fabric8-services","html_url":"https://github.com/fabric8-services","followers_url":"https://api.github.com/users/fabric8-services/followers","following_url":"https://api.github.com/users/fabric8-services/following{/other_user}","gists_url":"https://api.github.com/users/fabric8-services/gists{/gist_id}","starred_url":"https://api.github.com/users/fabric8-services/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabric8-services/subscriptions","organizations_url":"https://api.github.com/users/fabric8-services/orgs","repos_url":"https://api.github.com/users/fabric8-services/repos","events_url":"https://api.github.com/users/fabric8-services/events{/privacy}","received_events_url":"https://api.github.com/users/fabric8-services/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fabric8-services/fabric8-wit","description":null,"fork":false,"url":"https://api.github.com/repos/fabric8-services/fabric8-wit","forks_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/forks","keys_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/teams","hooks_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/hooks","issue_events_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/issues/events{/number}","events_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/events","assignees_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/assignees{/user}","branches_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/branches{/branch}","tags_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/tags","blobs_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/git/refs{/sha}","trees_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/statuses/{sha}","languages_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/languages","stargazers_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/stargazers","contributors_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/contributors","subscribers_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/subscribers","subscription_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/subscription","commits_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/commits{/sha}","git_commits_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/git/commits{/sha}","comments_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/comments{/number}","issue_comment_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/issues/comments{/number}","contents_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/contents/{+path}","compare_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/merges","archive_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/downloads","issues_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/issues{/number}","pulls_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls{/number}","milestones_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/milestones{/number}","notifications_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/labels{/name}","releases_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/releases{/id}","deployments_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/deployments","created_at":"2016-03-19T10:42:15Z","updated_at":"2018-07-03T06:34:34Z","pushed_at":"2018-07-03T14:47:57Z","git_url":"git://github.com/fabric8-services/fabric8-wit.git","ssh_url":"git@github.com:fabric8-services/fabric8-wit.git","clone_url":"https://github.com/fabric8-services/fabric8-wit.git","svn_url":"https://github.com/fabric8-services/fabric8-wit","homepage":"http://devdoc.almighty.io/","size":12904,"stargazers_count":38,"watchers_count":38,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":78,"mirror_url":null,"archived":false,"open_issues_count":175,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":78,"open_issues":175,"watchers":38,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls/2111"},"html":{"href":"https://github.com/fabric8-services/fabric8-wit/pull/2111"},"issue":{"href":"https://api.github.com/repos/fabric8-services/fabric8-wit/issues/2111"},"comments":{"href":"https://api.github.com/repos/fabric8-services/fabric8-wit/issues/2111/comments"},"review_comments":{"href":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls/2111/comments"},"review_comment":{"href":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls/2111/commits"},"statuses":{"href":"https://api.github.com/repos/fabric8-services/fabric8-wit/statuses/5d697f3e22da7a3da63009ba3f6f556badc104d9"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"michaelkleinhenz"}}