{"action":"created","comment":{"url":"https://api.github.com/repos/hmcts/snl-frontend/pulls/comments/221842690","pull_request_review_id":160587031,"id":221842690,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMTg0MjY5MA==","diff_hunk":"@@ -67,16 +69,33 @@ const mockedNotes: Note[] = [\n         entityType: 'ListingRequest'\n     }];\n \n+const mockedHearingPartResponse: HearingPartResponse = {\n+  id: 'some-id',\n+  sessionId: undefined,\n+  caseNumber: 'abc123',\n+  caseTitle: 'some-case-title',\n+  caseTypeCode: stubCaseType.code,\n+  hearingTypeCode: stubHearingType.code,\n+  duration: durationStringFormat,\n+  scheduleStart: nowISOSting,\n+  scheduleEnd: nowISOSting,\n+  version: 2,\n+  priority: Priority.Low,\n+  reservedJudgeId: judgeId,\n+  communicationFacilitator: 'interpreter',\n+  deleted: false\n+}\n+\n const mockedUnlistedHearingPartVM: HearingPartViewModel = {\n     id: 'some-id',\n-    session: undefined,\n+    sessionId: undefined,\n     caseNumber: 'abc123',\n     caseTitle: 'some-case-title',\n     caseType: stubCaseType,\n     hearingType: stubHearingType,\n-    duration: moment.duration(sessionDuration),\n-    scheduleStart: nowMoment,\n-    scheduleEnd: nowMoment,\n+    duration: moment.duration(durationStringFormat),\n+    scheduleStart: moment(nowISOSting),","path":"src/app/sessions/containers/sessions-listings-search/sessions-listings-search.component.spec.ts","position":72,"original_position":72,"commit_id":"0eddc3c74fedaaedbf68b82160bbbc9ff5a2156d","original_commit_id":"5045975611fe74885afc5db1969641b5a58f4306","user":{"login":"zielinskikamil","id":12416106,"node_id":"MDQ6VXNlcjEyNDE2MTA2","avatar_url":"https://avatars0.githubusercontent.com/u/12416106?v=4","gravatar_id":"","url":"https://api.github.com/users/zielinskikamil","html_url":"https://github.com/zielinskikamil","followers_url":"https://api.github.com/users/zielinskikamil/followers","following_url":"https://api.github.com/users/zielinskikamil/following{/other_user}","gists_url":"https://api.github.com/users/zielinskikamil/gists{/gist_id}","starred_url":"https://api.github.com/users/zielinskikamil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zielinskikamil/subscriptions","organizations_url":"https://api.github.com/users/zielinskikamil/orgs","repos_url":"https://api.github.com/users/zielinskikamil/repos","events_url":"https://api.github.com/users/zielinskikamil/events{/privacy}","received_events_url":"https://api.github.com/users/zielinskikamil/received_events","type":"User","site_admin":false},"body":"It is fine ;-)\r\nduration is a time that tells how long it last, its also encoded is specific format eg  'PT30m'\r\nscheduleStart and scheduleEnd makes a border when given hear part can occur","created_at":"2018-10-02T07:06:12Z","updated_at":"2018-10-02T07:06:13Z","html_url":"https://github.com/hmcts/snl-frontend/pull/176#discussion_r221842690","pull_request_url":"https://api.github.com/repos/hmcts/snl-frontend/pulls/176","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/hmcts/snl-frontend/pulls/comments/221842690"},"html":{"href":"https://github.com/hmcts/snl-frontend/pull/176#discussion_r221842690"},"pull_request":{"href":"https://api.github.com/repos/hmcts/snl-frontend/pulls/176"}},"in_reply_to_id":221657303},"pull_request":{"url":"https://api.github.com/repos/hmcts/snl-frontend/pulls/176","id":218986541,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4OTg2NTQx","html_url":"https://github.com/hmcts/snl-frontend/pull/176","diff_url":"https://github.com/hmcts/snl-frontend/pull/176.diff","patch_url":"https://github.com/hmcts/snl-frontend/pull/176.patch","issue_url":"https://api.github.com/repos/hmcts/snl-frontend/issues/176","number":176,"state":"open","locked":false,"title":"[PREVIEW] SL-1535 Tidy up creation of listing request","user":{"login":"zielinskikamil","id":12416106,"node_id":"MDQ6VXNlcjEyNDE2MTA2","avatar_url":"https://avatars0.githubusercontent.com/u/12416106?v=4","gravatar_id":"","url":"https://api.github.com/users/zielinskikamil","html_url":"https://github.com/zielinskikamil","followers_url":"https://api.github.com/users/zielinskikamil/followers","following_url":"https://api.github.com/users/zielinskikamil/following{/other_user}","gists_url":"https://api.github.com/users/zielinskikamil/gists{/gist_id}","starred_url":"https://api.github.com/users/zielinskikamil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zielinskikamil/subscriptions","organizations_url":"https://api.github.com/users/zielinskikamil/orgs","repos_url":"https://api.github.com/users/zielinskikamil/repos","events_url":"https://api.github.com/users/zielinskikamil/events{/privacy}","received_events_url":"https://api.github.com/users/zielinskikamil/received_events","type":"User","site_admin":false},"body":"Hey, in events I've introduced new models for creating, updating and returning hearing part.\r\nThe same approach I've applied on frontend side. 3 new models has been added to reflect required changes. This required to update HearingParty and HearingPartViewModel as well. \r\nThis changed tided up a bit ListingCreate. I have removed duplicated userTransactionId\r\n\r\nAlso with these changes, I normalized out properties name from\r\nsession -> sessionId\r\ncaseType -> caseTypeCode\r\nhearingType -> hearingTypeCode\r\n\r\nTo do still, cover with unit tests new code + add e2e","created_at":"2018-09-28T14:26:55Z","updated_at":"2018-10-02T07:06:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5c192f3be8a8713f9dc656be3c3c340280020cab","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":999544948,"node_id":"MDU6TGFiZWw5OTk1NDQ5NDg=","url":"https://api.github.com/repos/hmcts/snl-frontend/labels/WIP","name":"WIP","color":"d4c5f9","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/hmcts/snl-frontend/pulls/176/commits","review_comments_url":"https://api.github.com/repos/hmcts/snl-frontend/pulls/176/comments","review_comment_url":"https://api.github.com/repos/hmcts/snl-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hmcts/snl-frontend/issues/176/comments","statuses_url":"https://api.github.com/repos/hmcts/snl-frontend/statuses/0eddc3c74fedaaedbf68b82160bbbc9ff5a2156d","head":{"label":"hmcts:feature/SL-1535/Tidy-up-creation-of-listing-request","ref":"feature/SL-1535/Tidy-up-creation-of-listing-request","sha":"0eddc3c74fedaaedbf68b82160bbbc9ff5a2156d","user":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"repo":{"id":129115277,"node_id":"MDEwOlJlcG9zaXRvcnkxMjkxMTUyNzc=","name":"snl-frontend","full_name":"hmcts/snl-frontend","private":false,"owner":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/hmcts/snl-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/hmcts/snl-frontend","forks_url":"https://api.github.com/repos/hmcts/snl-frontend/forks","keys_url":"https://api.github.com/repos/hmcts/snl-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmcts/snl-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmcts/snl-frontend/teams","hooks_url":"https://api.github.com/repos/hmcts/snl-frontend/hooks","issue_events_url":"https://api.github.com/repos/hmcts/snl-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/hmcts/snl-frontend/events","assignees_url":"https://api.github.com/repos/hmcts/snl-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/hmcts/snl-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/hmcts/snl-frontend/tags","blobs_url":"https://api.github.com/repos/hmcts/snl-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmcts/snl-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmcts/snl-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmcts/snl-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmcts/snl-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/hmcts/snl-frontend/languages","stargazers_url":"https://api.github.com/repos/hmcts/snl-frontend/stargazers","contributors_url":"https://api.github.com/repos/hmcts/snl-frontend/contributors","subscribers_url":"https://api.github.com/repos/hmcts/snl-frontend/subscribers","subscription_url":"https://api.github.com/repos/hmcts/snl-frontend/subscription","commits_url":"https://api.github.com/repos/hmcts/snl-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmcts/snl-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmcts/snl-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmcts/snl-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmcts/snl-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/hmcts/snl-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmcts/snl-frontend/merges","archive_url":"https://api.github.com/repos/hmcts/snl-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmcts/snl-frontend/downloads","issues_url":"https://api.github.com/repos/hmcts/snl-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/hmcts/snl-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/hmcts/snl-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/hmcts/snl-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmcts/snl-frontend/labels{/name}","releases_url":"https://api.github.com/repos/hmcts/snl-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/hmcts/snl-frontend/deployments","created_at":"2018-04-11T15:30:03Z","updated_at":"2018-10-01T10:40:45Z","pushed_at":"2018-10-02T06:51:32Z","git_url":"git://github.com/hmcts/snl-frontend.git","ssh_url":"git@github.com:hmcts/snl-frontend.git","clone_url":"https://github.com/hmcts/snl-frontend.git","svn_url":"https://github.com/hmcts/snl-frontend","homepage":null,"size":3001,"stargazers_count":2,"watchers_count":2,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":4,"watchers":2,"default_branch":"master"}},"base":{"label":"hmcts:master","ref":"master","sha":"109cc11afaa21ae8144af02339914690e25122fc","user":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"repo":{"id":129115277,"node_id":"MDEwOlJlcG9zaXRvcnkxMjkxMTUyNzc=","name":"snl-frontend","full_name":"hmcts/snl-frontend","private":false,"owner":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/hmcts/snl-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/hmcts/snl-frontend","forks_url":"https://api.github.com/repos/hmcts/snl-frontend/forks","keys_url":"https://api.github.com/repos/hmcts/snl-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmcts/snl-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmcts/snl-frontend/teams","hooks_url":"https://api.github.com/repos/hmcts/snl-frontend/hooks","issue_events_url":"https://api.github.com/repos/hmcts/snl-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/hmcts/snl-frontend/events","assignees_url":"https://api.github.com/repos/hmcts/snl-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/hmcts/snl-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/hmcts/snl-frontend/tags","blobs_url":"https://api.github.com/repos/hmcts/snl-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmcts/snl-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmcts/snl-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmcts/snl-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmcts/snl-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/hmcts/snl-frontend/languages","stargazers_url":"https://api.github.com/repos/hmcts/snl-frontend/stargazers","contributors_url":"https://api.github.com/repos/hmcts/snl-frontend/contributors","subscribers_url":"https://api.github.com/repos/hmcts/snl-frontend/subscribers","subscription_url":"https://api.github.com/repos/hmcts/snl-frontend/subscription","commits_url":"https://api.github.com/repos/hmcts/snl-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmcts/snl-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmcts/snl-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmcts/snl-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmcts/snl-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/hmcts/snl-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmcts/snl-frontend/merges","archive_url":"https://api.github.com/repos/hmcts/snl-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmcts/snl-frontend/downloads","issues_url":"https://api.github.com/repos/hmcts/snl-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/hmcts/snl-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/hmcts/snl-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/hmcts/snl-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmcts/snl-frontend/labels{/name}","releases_url":"https://api.github.com/repos/hmcts/snl-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/hmcts/snl-frontend/deployments","created_at":"2018-04-11T15:30:03Z","updated_at":"2018-10-01T10:40:45Z","pushed_at":"2018-10-02T06:51:32Z","git_url":"git://github.com/hmcts/snl-frontend.git","ssh_url":"git@github.com:hmcts/snl-frontend.git","clone_url":"https://github.com/hmcts/snl-frontend.git","svn_url":"https://github.com/hmcts/snl-frontend","homepage":null,"size":3001,"stargazers_count":2,"watchers_count":2,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":4,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hmcts/snl-frontend/pulls/176"},"html":{"href":"https://github.com/hmcts/snl-frontend/pull/176"},"issue":{"href":"https://api.github.com/repos/hmcts/snl-frontend/issues/176"},"comments":{"href":"https://api.github.com/repos/hmcts/snl-frontend/issues/176/comments"},"review_comments":{"href":"https://api.github.com/repos/hmcts/snl-frontend/pulls/176/comments"},"review_comment":{"href":"https://api.github.com/repos/hmcts/snl-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hmcts/snl-frontend/pulls/176/commits"},"statuses":{"href":"https://api.github.com/repos/hmcts/snl-frontend/statuses/0eddc3c74fedaaedbf68b82160bbbc9ff5a2156d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"zielinskikamil"}}