{"action":"created","comment":{"url":"https://api.github.com/repos/ONSdigital/rm-case-service/pulls/comments/237851672","pull_request_review_id":180254038,"id":237851672,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNzg1MTY3Mg==","diff_hunk":"@@ -60,4 +66,8 @@\n \n   @Column(name = \"subcategory\")\n   private String subCategory;\n+\n+  @Column(name = \"metadata\")\n+  @Type(type = \"jsonb\")","path":"src/main/java/uk/gov/ons/ctp/response/casesvc/domain/model/CaseEvent.java","position":34,"original_position":34,"commit_id":"c777d22a63aea099f1cfe5be03125afbeb846c33","original_commit_id":"c777d22a63aea099f1cfe5be03125afbeb846c33","user":{"login":"NickGrantONS","id":41681172,"node_id":"MDQ6VXNlcjQxNjgxMTcy","avatar_url":"https://avatars2.githubusercontent.com/u/41681172?v=4","gravatar_id":"","url":"https://api.github.com/users/NickGrantONS","html_url":"https://github.com/NickGrantONS","followers_url":"https://api.github.com/users/NickGrantONS/followers","following_url":"https://api.github.com/users/NickGrantONS/following{/other_user}","gists_url":"https://api.github.com/users/NickGrantONS/gists{/gist_id}","starred_url":"https://api.github.com/users/NickGrantONS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickGrantONS/subscriptions","organizations_url":"https://api.github.com/users/NickGrantONS/orgs","repos_url":"https://api.github.com/users/NickGrantONS/repos","events_url":"https://api.github.com/users/NickGrantONS/events{/privacy}","received_events_url":"https://api.github.com/users/NickGrantONS/received_events","type":"User","site_admin":false},"body":"actually maybe ignore me... I guess there's only one way that this stuff can get into the database in the first place","created_at":"2018-11-30T12:58:44Z","updated_at":"2018-11-30T12:58:45Z","html_url":"https://github.com/ONSdigital/rm-case-service/pull/100#discussion_r237851672","pull_request_url":"https://api.github.com/repos/ONSdigital/rm-case-service/pulls/100","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ONSdigital/rm-case-service/pulls/comments/237851672"},"html":{"href":"https://github.com/ONSdigital/rm-case-service/pull/100#discussion_r237851672"},"pull_request":{"href":"https://api.github.com/repos/ONSdigital/rm-case-service/pulls/100"}},"in_reply_to_id":237843161},"pull_request":{"url":"https://api.github.com/repos/ONSdigital/rm-case-service/pulls/100","id":232319628,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyMzE5NjI4","html_url":"https://github.com/ONSdigital/rm-case-service/pull/100","diff_url":"https://github.com/ONSdigital/rm-case-service/pull/100.diff","patch_url":"https://github.com/ONSdigital/rm-case-service/pull/100.patch","issue_url":"https://api.github.com/repos/ONSdigital/rm-case-service/issues/100","number":100,"state":"open","locked":false,"title":"Adding metadata to caseevents","user":{"login":"ryangrundy7","id":35301276,"node_id":"MDQ6VXNlcjM1MzAxMjc2","avatar_url":"https://avatars2.githubusercontent.com/u/35301276?v=4","gravatar_id":"","url":"https://api.github.com/users/ryangrundy7","html_url":"https://github.com/ryangrundy7","followers_url":"https://api.github.com/users/ryangrundy7/followers","following_url":"https://api.github.com/users/ryangrundy7/following{/other_user}","gists_url":"https://api.github.com/users/ryangrundy7/gists{/gist_id}","starred_url":"https://api.github.com/users/ryangrundy7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryangrundy7/subscriptions","organizations_url":"https://api.github.com/users/ryangrundy7/orgs","repos_url":"https://api.github.com/users/ryangrundy7/repos","events_url":"https://api.github.com/users/ryangrundy7/events{/privacy}","received_events_url":"https://api.github.com/users/ryangrundy7/received_events","type":"User","site_admin":false},"body":"# Motivation and Context\r\nIn response-operation-ui, we want to be able to see the respondent name on the responses status page when a external user has completed a collection exercise. For this to happen, a new column needs to be added to the caseevents table which will hold metadata required to get the respondent name.\r\n\r\n# What has changed\r\n- Added a new column to case events table\r\n\r\n# How to test?\r\n- Run `mvn clean install` and it should build successfully\r\n- Run with the [case-svc-api PR](https://github.com/ONSdigital/rm-casesvc-api/pull/33), [R-ops branch](https://github.com/ONSdigital/response-operations-ui/tree/us211-display-respondent-for-seft-rus-ce-in-response-status), [Frontstage branch](https://github.com/ONSdigital/ras-frontstage/tree/us211-display-respondent-for-seft-rus-ce-in-response-status) and complete a SEFT collection exercise. When completed, look on response ops response status page and the completed collex should have a respondent name attached to it.\r\n- Run with acceptance tests\r\n\r\n# Links\r\n[Trello](https://trello.com/c/1rcfmtok)\r\n","created_at":"2018-11-20T13:36:46Z","updated_at":"2018-11-30T12:58:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2b3825726b2be1e4e4305351be19707887236b9c","assignee":null,"assignees":[],"requested_reviewers":[{"login":"AndrewTorrance","id":25481549,"node_id":"MDQ6VXNlcjI1NDgxNTQ5","avatar_url":"https://avatars1.githubusercontent.com/u/25481549?v=4","gravatar_id":"","url":"https://api.github.com/users/AndrewTorrance","html_url":"https://github.com/AndrewTorrance","followers_url":"https://api.github.com/users/AndrewTorrance/followers","following_url":"https://api.github.com/users/AndrewTorrance/following{/other_user}","gists_url":"https://api.github.com/users/AndrewTorrance/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewTorrance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewTorrance/subscriptions","organizations_url":"https://api.github.com/users/AndrewTorrance/orgs","repos_url":"https://api.github.com/users/AndrewTorrance/repos","events_url":"https://api.github.com/users/AndrewTorrance/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewTorrance/received_events","type":"User","site_admin":false},{"login":"gavinleeedwards","id":26113492,"node_id":"MDQ6VXNlcjI2MTEzNDky","avatar_url":"https://avatars1.githubusercontent.com/u/26113492?v=4","gravatar_id":"","url":"https://api.github.com/users/gavinleeedwards","html_url":"https://github.com/gavinleeedwards","followers_url":"https://api.github.com/users/gavinleeedwards/followers","following_url":"https://api.github.com/users/gavinleeedwards/following{/other_user}","gists_url":"https://api.github.com/users/gavinleeedwards/gists{/gist_id}","starred_url":"https://api.github.com/users/gavinleeedwards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavinleeedwards/subscriptions","organizations_url":"https://api.github.com/users/gavinleeedwards/orgs","repos_url":"https://api.github.com/users/gavinleeedwards/repos","events_url":"https://api.github.com/users/gavinleeedwards/events{/privacy}","received_events_url":"https://api.github.com/users/gavinleeedwards/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":982677598,"node_id":"MDU6TGFiZWw5ODI2Nzc1OTg=","url":"https://api.github.com/repos/ONSdigital/rm-case-service/labels/DO%20NOT%20MERGE","name":"DO NOT MERGE","color":"ef1c04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ONSdigital/rm-case-service/pulls/100/commits","review_comments_url":"https://api.github.com/repos/ONSdigital/rm-case-service/pulls/100/comments","review_comment_url":"https://api.github.com/repos/ONSdigital/rm-case-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ONSdigital/rm-case-service/issues/100/comments","statuses_url":"https://api.github.com/repos/ONSdigital/rm-case-service/statuses/c777d22a63aea099f1cfe5be03125afbeb846c33","head":{"label":"ONSdigital:adding-metadata-to-caseevents","ref":"adding-metadata-to-caseevents","sha":"c777d22a63aea099f1cfe5be03125afbeb846c33","user":{"login":"ONSdigital","id":6865137,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NjUxMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/6865137?v=4","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"repo":{"id":91565529,"node_id":"MDEwOlJlcG9zaXRvcnk5MTU2NTUyOQ==","name":"rm-case-service","full_name":"ONSdigital/rm-case-service","private":false,"owner":{"login":"ONSdigital","id":6865137,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NjUxMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/6865137?v=4","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ONSdigital/rm-case-service","description":"This microservice manages cases.","fork":false,"url":"https://api.github.com/repos/ONSdigital/rm-case-service","forks_url":"https://api.github.com/repos/ONSdigital/rm-case-service/forks","keys_url":"https://api.github.com/repos/ONSdigital/rm-case-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ONSdigital/rm-case-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ONSdigital/rm-case-service/teams","hooks_url":"https://api.github.com/repos/ONSdigital/rm-case-service/hooks","issue_events_url":"https://api.github.com/repos/ONSdigital/rm-case-service/issues/events{/number}","events_url":"https://api.github.com/repos/ONSdigital/rm-case-service/events","assignees_url":"https://api.github.com/repos/ONSdigital/rm-case-service/assignees{/user}","branches_url":"https://api.github.com/repos/ONSdigital/rm-case-service/branches{/branch}","tags_url":"https://api.github.com/repos/ONSdigital/rm-case-service/tags","blobs_url":"https://api.github.com/repos/ONSdigital/rm-case-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ONSdigital/rm-case-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ONSdigital/rm-case-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/ONSdigital/rm-case-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ONSdigital/rm-case-service/statuses/{sha}","languages_url":"https://api.github.com/repos/ONSdigital/rm-case-service/languages","stargazers_url":"https://api.github.com/repos/ONSdigital/rm-case-service/stargazers","contributors_url":"https://api.github.com/repos/ONSdigital/rm-case-service/contributors","subscribers_url":"https://api.github.com/repos/ONSdigital/rm-case-service/subscribers","subscription_url":"https://api.github.com/repos/ONSdigital/rm-case-service/subscription","commits_url":"https://api.github.com/repos/ONSdigital/rm-case-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/ONSdigital/rm-case-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/ONSdigital/rm-case-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/ONSdigital/rm-case-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/ONSdigital/rm-case-service/contents/{+path}","compare_url":"https://api.github.com/repos/ONSdigital/rm-case-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ONSdigital/rm-case-service/merges","archive_url":"https://api.github.com/repos/ONSdigital/rm-case-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ONSdigital/rm-case-service/downloads","issues_url":"https://api.github.com/repos/ONSdigital/rm-case-service/issues{/number}","pulls_url":"https://api.github.com/repos/ONSdigital/rm-case-service/pulls{/number}","milestones_url":"https://api.github.com/repos/ONSdigital/rm-case-service/milestones{/number}","notifications_url":"https://api.github.com/repos/ONSdigital/rm-case-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ONSdigital/rm-case-service/labels{/name}","releases_url":"https://api.github.com/repos/ONSdigital/rm-case-service/releases{/id}","deployments_url":"https://api.github.com/repos/ONSdigital/rm-case-service/deployments","created_at":"2017-05-17T10:45:21Z","updated_at":"2018-11-29T09:31:23Z","pushed_at":"2018-11-29T17:10:11Z","git_url":"git://github.com/ONSdigital/rm-case-service.git","ssh_url":"git@github.com:ONSdigital/rm-case-service.git","clone_url":"https://github.com/ONSdigital/rm-case-service.git","svn_url":"https://github.com/ONSdigital/rm-case-service","homepage":"","size":36575,"stargazers_count":2,"watchers_count":2,"language":"Java","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":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"ONSdigital:master","ref":"master","sha":"4c7dabc676898a27eddeb339b394a10f38315d13","user":{"login":"ONSdigital","id":6865137,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NjUxMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/6865137?v=4","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"repo":{"id":91565529,"node_id":"MDEwOlJlcG9zaXRvcnk5MTU2NTUyOQ==","name":"rm-case-service","full_name":"ONSdigital/rm-case-service","private":false,"owner":{"login":"ONSdigital","id":6865137,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NjUxMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/6865137?v=4","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ONSdigital/rm-case-service","description":"This microservice manages cases.","fork":false,"url":"https://api.github.com/repos/ONSdigital/rm-case-service","forks_url":"https://api.github.com/repos/ONSdigital/rm-case-service/forks","keys_url":"https://api.github.com/repos/ONSdigital/rm-case-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ONSdigital/rm-case-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ONSdigital/rm-case-service/teams","hooks_url":"https://api.github.com/repos/ONSdigital/rm-case-service/hooks","issue_events_url":"https://api.github.com/repos/ONSdigital/rm-case-service/issues/events{/number}","events_url":"https://api.github.com/repos/ONSdigital/rm-case-service/events","assignees_url":"https://api.github.com/repos/ONSdigital/rm-case-service/assignees{/user}","branches_url":"https://api.github.com/repos/ONSdigital/rm-case-service/branches{/branch}","tags_url":"https://api.github.com/repos/ONSdigital/rm-case-service/tags","blobs_url":"https://api.github.com/repos/ONSdigital/rm-case-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ONSdigital/rm-case-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ONSdigital/rm-case-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/ONSdigital/rm-case-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ONSdigital/rm-case-service/statuses/{sha}","languages_url":"https://api.github.com/repos/ONSdigital/rm-case-service/languages","stargazers_url":"https://api.github.com/repos/ONSdigital/rm-case-service/stargazers","contributors_url":"https://api.github.com/repos/ONSdigital/rm-case-service/contributors","subscribers_url":"https://api.github.com/repos/ONSdigital/rm-case-service/subscribers","subscription_url":"https://api.github.com/repos/ONSdigital/rm-case-service/subscription","commits_url":"https://api.github.com/repos/ONSdigital/rm-case-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/ONSdigital/rm-case-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/ONSdigital/rm-case-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/ONSdigital/rm-case-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/ONSdigital/rm-case-service/contents/{+path}","compare_url":"https://api.github.com/repos/ONSdigital/rm-case-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ONSdigital/rm-case-service/merges","archive_url":"https://api.github.com/repos/ONSdigital/rm-case-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ONSdigital/rm-case-service/downloads","issues_url":"https://api.github.com/repos/ONSdigital/rm-case-service/issues{/number}","pulls_url":"https://api.github.com/repos/ONSdigital/rm-case-service/pulls{/number}","milestones_url":"https://api.github.com/repos/ONSdigital/rm-case-service/milestones{/number}","notifications_url":"https://api.github.com/repos/ONSdigital/rm-case-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ONSdigital/rm-case-service/labels{/name}","releases_url":"https://api.github.com/repos/ONSdigital/rm-case-service/releases{/id}","deployments_url":"https://api.github.com/repos/ONSdigital/rm-case-service/deployments","created_at":"2017-05-17T10:45:21Z","updated_at":"2018-11-29T09:31:23Z","pushed_at":"2018-11-29T17:10:11Z","git_url":"git://github.com/ONSdigital/rm-case-service.git","ssh_url":"git@github.com:ONSdigital/rm-case-service.git","clone_url":"https://github.com/ONSdigital/rm-case-service.git","svn_url":"https://github.com/ONSdigital/rm-case-service","homepage":"","size":36575,"stargazers_count":2,"watchers_count":2,"language":"Java","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":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ONSdigital/rm-case-service/pulls/100"},"html":{"href":"https://github.com/ONSdigital/rm-case-service/pull/100"},"issue":{"href":"https://api.github.com/repos/ONSdigital/rm-case-service/issues/100"},"comments":{"href":"https://api.github.com/repos/ONSdigital/rm-case-service/issues/100/comments"},"review_comments":{"href":"https://api.github.com/repos/ONSdigital/rm-case-service/pulls/100/comments"},"review_comment":{"href":"https://api.github.com/repos/ONSdigital/rm-case-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ONSdigital/rm-case-service/pulls/100/commits"},"statuses":{"href":"https://api.github.com/repos/ONSdigital/rm-case-service/statuses/c777d22a63aea099f1cfe5be03125afbeb846c33"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"NickGrantONS"}}