{"action":"created","comment":{"url":"https://api.github.com/repos/hmcts/snl-frontend/pulls/comments/222619105","pull_request_review_id":161548201,"id":222619105,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMjYxOTEwNQ==","diff_hunk":"@@ -9,23 +9,25 @@ import { Moment } from 'moment';\n   templateUrl: './problems-table.component.html',\n   styleUrls: ['./problems-table.component.scss']\n })\n-export class ProblemsTableComponent implements OnInit, OnChanges {\n+export class ProblemsTableComponent {\n   displayedColumns = ['severity', 'createdAt', 'message', 'references description'];\n-  dataSource;\n+  dataSource: MatTableDataSource<Problem>;\n \n-  @Input() problems: Problem[];\n+  private _problems: Problem[];\n+  @Input() set problems(problems: Problem[]) {\n+    this._problems = problems;\n+    this.dataSource = new MatTableDataSource(Object.values(this.problems));\n+    this.dataSource.paginator = this.paginator;\n+  }\n+\n+  get problems(): Problem[] {\n+    return this._problems;\n+  }\n \n   @ViewChild(MatPaginator) paginator: MatPaginator;\n \n   constructor() {}\n \n-  ngOnInit() {}\n-\n-  ngOnChanges() {\n-    this.dataSource = new MatTableDataSource(Object.values(this.problems));\n-    this.dataSource.paginator = this.paginator;","path":"src/app/problems/components/problems-table/problems-table.component.ts","position":37,"original_position":37,"commit_id":"c543b6a4738fa3029a8624df1fda75738732cfc7","original_commit_id":"c543b6a4738fa3029a8624df1fda75738732cfc7","user":{"login":"radoslawlandowskikainos","id":20284067,"node_id":"MDQ6VXNlcjIwMjg0MDY3","avatar_url":"https://avatars1.githubusercontent.com/u/20284067?v=4","gravatar_id":"","url":"https://api.github.com/users/radoslawlandowskikainos","html_url":"https://github.com/radoslawlandowskikainos","followers_url":"https://api.github.com/users/radoslawlandowskikainos/followers","following_url":"https://api.github.com/users/radoslawlandowskikainos/following{/other_user}","gists_url":"https://api.github.com/users/radoslawlandowskikainos/gists{/gist_id}","starred_url":"https://api.github.com/users/radoslawlandowskikainos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radoslawlandowskikainos/subscriptions","organizations_url":"https://api.github.com/users/radoslawlandowskikainos/orgs","repos_url":"https://api.github.com/users/radoslawlandowskikainos/repos","events_url":"https://api.github.com/users/radoslawlandowskikainos/events{/privacy}","received_events_url":"https://api.github.com/users/radoslawlandowskikainos/received_events","type":"User","site_admin":false},"body":"👍","created_at":"2018-10-04T10:43:01Z","updated_at":"2018-10-04T10:43:01Z","html_url":"https://github.com/hmcts/snl-frontend/pull/181#discussion_r222619105","pull_request_url":"https://api.github.com/repos/hmcts/snl-frontend/pulls/181","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/hmcts/snl-frontend/pulls/comments/222619105"},"html":{"href":"https://github.com/hmcts/snl-frontend/pull/181#discussion_r222619105"},"pull_request":{"href":"https://api.github.com/repos/hmcts/snl-frontend/pulls/181"}},"in_reply_to_id":222615832},"pull_request":{"url":"https://api.github.com/repos/hmcts/snl-frontend/pulls/181","id":219969344,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5OTY5MzQ0","html_url":"https://github.com/hmcts/snl-frontend/pull/181","diff_url":"https://github.com/hmcts/snl-frontend/pull/181.diff","patch_url":"https://github.com/hmcts/snl-frontend/pull/181.patch","issue_url":"https://api.github.com/repos/hmcts/snl-frontend/issues/181","number":181,"state":"open","locked":false,"title":"[PREVIEW] SL-1564 sort problems by descending date of creation within severity","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":"","created_at":"2018-10-03T09:26:59Z","updated_at":"2018-10-04T10:43:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ffb5e6a8bbd0214aeb0c6de5921cb9017b83384e","assignee":null,"assignees":[],"requested_reviewers":[{"login":"radoslawlandowskikainos","id":20284067,"node_id":"MDQ6VXNlcjIwMjg0MDY3","avatar_url":"https://avatars1.githubusercontent.com/u/20284067?v=4","gravatar_id":"","url":"https://api.github.com/users/radoslawlandowskikainos","html_url":"https://github.com/radoslawlandowskikainos","followers_url":"https://api.github.com/users/radoslawlandowskikainos/followers","following_url":"https://api.github.com/users/radoslawlandowskikainos/following{/other_user}","gists_url":"https://api.github.com/users/radoslawlandowskikainos/gists{/gist_id}","starred_url":"https://api.github.com/users/radoslawlandowskikainos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radoslawlandowskikainos/subscriptions","organizations_url":"https://api.github.com/users/radoslawlandowskikainos/orgs","repos_url":"https://api.github.com/users/radoslawlandowskikainos/repos","events_url":"https://api.github.com/users/radoslawlandowskikainos/events{/privacy}","received_events_url":"https://api.github.com/users/radoslawlandowskikainos/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hmcts/snl-frontend/pulls/181/commits","review_comments_url":"https://api.github.com/repos/hmcts/snl-frontend/pulls/181/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/181/comments","statuses_url":"https://api.github.com/repos/hmcts/snl-frontend/statuses/c543b6a4738fa3029a8624df1fda75738732cfc7","head":{"label":"hmcts:feature/SL-1564/Sort-Problems-by-descending-date-of-creation-within-severity","ref":"feature/SL-1564/Sort-Problems-by-descending-date-of-creation-within-severity","sha":"c543b6a4738fa3029a8624df1fda75738732cfc7","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-03T14:46:02Z","pushed_at":"2018-10-04T10:25:24Z","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":3146,"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":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":5,"watchers":2,"default_branch":"master"}},"base":{"label":"hmcts:master","ref":"master","sha":"9b05d2a7cf9099f5eb7da195c60baa27f7d67370","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-03T14:46:02Z","pushed_at":"2018-10-04T10:25:24Z","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":3146,"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":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":5,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hmcts/snl-frontend/pulls/181"},"html":{"href":"https://github.com/hmcts/snl-frontend/pull/181"},"issue":{"href":"https://api.github.com/repos/hmcts/snl-frontend/issues/181"},"comments":{"href":"https://api.github.com/repos/hmcts/snl-frontend/issues/181/comments"},"review_comments":{"href":"https://api.github.com/repos/hmcts/snl-frontend/pulls/181/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/181/commits"},"statuses":{"href":"https://api.github.com/repos/hmcts/snl-frontend/statuses/c543b6a4738fa3029a8624df1fda75738732cfc7"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"radoslawlandowskikainos"}}