{"action":"created","comment":{"url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/pulls/comments/146188604","pull_request_review_id":71093926,"id":146188604,"diff_hunk":"@@ -0,0 +1,55 @@\n+package uk.nhs.digital.ps.components;\n+\n+import org.hippoecm.hst.content.beans.query.HstQuery;\n+import org.hippoecm.hst.content.beans.query.HstQueryResult;\n+import org.hippoecm.hst.content.beans.query.exceptions.QueryException;\n+import org.hippoecm.hst.content.beans.standard.HippoBean;\n+import org.hippoecm.hst.core.component.HstComponentException;\n+import org.hippoecm.hst.core.component.HstRequest;\n+import org.hippoecm.hst.core.component.HstResponse;\n+import org.hippoecm.hst.core.request.HstRequestContext;\n+import org.onehippo.cms7.essentials.components.EssentialsContentComponent;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+import uk.nhs.digital.ps.beans.Publication;\n+import uk.nhs.digital.ps.beans.Series;\n+\n+import java.util.Iterator;\n+\n+public class SeriesComponent extends EssentialsContentComponent {\n+\n+    private static final Logger log = LoggerFactory.getLogger(SeriesComponent.class);\n+\n+    @Override\n+    public void doBeforeRender(final HstRequest request, final HstResponse response) throws HstComponentException {\n+        super.doBeforeRender(request, response);\n+\n+        HstRequestContext requestContext = request.getRequestContext();\n+        HippoBean contentBean =  requestContext.getContentBean();\n+\n+        if (contentBean.isHippoFolderBean()) {\n+            Iterator<Series> iterator = contentBean.getChildBeans(Series.class).iterator();\n+            if (iterator.hasNext()) {","path":"site/src/main/java/uk/nhs/digital/ps/components/SeriesComponent.java","position":32,"original_position":32,"commit_id":"5ee0fece01653969c931cab195742ebec922077a","original_commit_id":"5ee0fece01653969c931cab195742ebec922077a","user":{"login":"ziemsky","id":6630284,"avatar_url":"https://avatars2.githubusercontent.com/u/6630284?v=4","gravatar_id":"","url":"https://api.github.com/users/ziemsky","html_url":"https://github.com/ziemsky","followers_url":"https://api.github.com/users/ziemsky/followers","following_url":"https://api.github.com/users/ziemsky/following{/other_user}","gists_url":"https://api.github.com/users/ziemsky/gists{/gist_id}","starred_url":"https://api.github.com/users/ziemsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ziemsky/subscriptions","organizations_url":"https://api.github.com/users/ziemsky/orgs","repos_url":"https://api.github.com/users/ziemsky/repos","events_url":"https://api.github.com/users/ziemsky/events{/privacy}","received_events_url":"https://api.github.com/users/ziemsky/received_events","type":"User","site_admin":false},"body":"Done. An error is logged and the user is notified so that they can flag it to admins.","created_at":"2017-10-23T07:58:57Z","updated_at":"2017-10-23T07:58:57Z","html_url":"https://github.com/NHS-digital-website/ps-hippo/pull/19#discussion_r146188604","pull_request_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/pulls/19","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/NHS-digital-website/ps-hippo/pulls/comments/146188604"},"html":{"href":"https://github.com/NHS-digital-website/ps-hippo/pull/19#discussion_r146188604"},"pull_request":{"href":"https://api.github.com/repos/NHS-digital-website/ps-hippo/pulls/19"}},"in_reply_to_id":145722905},"pull_request":{"url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/pulls/19","id":147520408,"html_url":"https://github.com/NHS-digital-website/ps-hippo/pull/19","diff_url":"https://github.com/NHS-digital-website/ps-hippo/pull/19.diff","patch_url":"https://github.com/NHS-digital-website/ps-hippo/pull/19.patch","issue_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/issues/19","number":19,"state":"open","locked":false,"title":"[RPS-100] Time Series - display publications of a single series","user":{"login":"ziemsky","id":6630284,"avatar_url":"https://avatars2.githubusercontent.com/u/6630284?v=4","gravatar_id":"","url":"https://api.github.com/users/ziemsky","html_url":"https://github.com/ziemsky","followers_url":"https://api.github.com/users/ziemsky/followers","following_url":"https://api.github.com/users/ziemsky/following{/other_user}","gists_url":"https://api.github.com/users/ziemsky/gists{/gist_id}","starred_url":"https://api.github.com/users/ziemsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ziemsky/subscriptions","organizations_url":"https://api.github.com/users/ziemsky/orgs","repos_url":"https://api.github.com/users/ziemsky/repos","events_url":"https://api.github.com/users/ziemsky/events{/privacy}","received_events_url":"https://api.github.com/users/ziemsky/received_events","type":"User","site_admin":false},"body":"Also covers:\r\n- RPS-115 Publication Series Page - Series Title\r\n- RPS-112 Publication Series Page - each publication title is a\r\n  clickable link to that publication\r\n- RPS-114 Publication Series Page - component publications sorted by\r\n  date, most recently published first\r\n- RPS-117 Publication Series - identify a publication as being part of a\r\n  series","created_at":"2017-10-19T10:31:18Z","updated_at":"2017-10-23T07:58:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"10b189d3e3da89ca97da743402101f32419551f7","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/pulls/19/commits","review_comments_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/pulls/19/comments","review_comment_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/issues/19/comments","statuses_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/statuses/5ee0fece01653969c931cab195742ebec922077a","head":{"label":"NHS-digital-website:RPS-100","ref":"RPS-100","sha":"5ee0fece01653969c931cab195742ebec922077a","user":{"login":"NHS-digital-website","id":31284465,"avatar_url":"https://avatars1.githubusercontent.com/u/31284465?v=4","gravatar_id":"","url":"https://api.github.com/users/NHS-digital-website","html_url":"https://github.com/NHS-digital-website","followers_url":"https://api.github.com/users/NHS-digital-website/followers","following_url":"https://api.github.com/users/NHS-digital-website/following{/other_user}","gists_url":"https://api.github.com/users/NHS-digital-website/gists{/gist_id}","starred_url":"https://api.github.com/users/NHS-digital-website/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NHS-digital-website/subscriptions","organizations_url":"https://api.github.com/users/NHS-digital-website/orgs","repos_url":"https://api.github.com/users/NHS-digital-website/repos","events_url":"https://api.github.com/users/NHS-digital-website/events{/privacy}","received_events_url":"https://api.github.com/users/NHS-digital-website/received_events","type":"Organization","site_admin":false},"repo":{"id":104457155,"name":"ps-hippo","full_name":"NHS-digital-website/ps-hippo","owner":{"login":"NHS-digital-website","id":31284465,"avatar_url":"https://avatars1.githubusercontent.com/u/31284465?v=4","gravatar_id":"","url":"https://api.github.com/users/NHS-digital-website","html_url":"https://github.com/NHS-digital-website","followers_url":"https://api.github.com/users/NHS-digital-website/followers","following_url":"https://api.github.com/users/NHS-digital-website/following{/other_user}","gists_url":"https://api.github.com/users/NHS-digital-website/gists{/gist_id}","starred_url":"https://api.github.com/users/NHS-digital-website/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NHS-digital-website/subscriptions","organizations_url":"https://api.github.com/users/NHS-digital-website/orgs","repos_url":"https://api.github.com/users/NHS-digital-website/repos","events_url":"https://api.github.com/users/NHS-digital-website/events{/privacy}","received_events_url":"https://api.github.com/users/NHS-digital-website/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NHS-digital-website/ps-hippo","description":"Hippo CMS","fork":false,"url":"https://api.github.com/repos/NHS-digital-website/ps-hippo","forks_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/forks","keys_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/teams","hooks_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/hooks","issue_events_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/issues/events{/number}","events_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/events","assignees_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/assignees{/user}","branches_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/branches{/branch}","tags_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/tags","blobs_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/git/refs{/sha}","trees_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/statuses/{sha}","languages_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/languages","stargazers_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/stargazers","contributors_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/contributors","subscribers_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/subscribers","subscription_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/subscription","commits_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/commits{/sha}","git_commits_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/git/commits{/sha}","comments_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/comments{/number}","issue_comment_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/issues/comments{/number}","contents_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/contents/{+path}","compare_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/merges","archive_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/downloads","issues_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/issues{/number}","pulls_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/pulls{/number}","milestones_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/milestones{/number}","notifications_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/labels{/name}","releases_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/releases{/id}","deployments_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/deployments","created_at":"2017-09-22T09:29:54Z","updated_at":"2017-09-27T15:27:20Z","pushed_at":"2017-10-20T15:59:59Z","git_url":"git://github.com/NHS-digital-website/ps-hippo.git","ssh_url":"git@github.com:NHS-digital-website/ps-hippo.git","clone_url":"https://github.com/NHS-digital-website/ps-hippo.git","svn_url":"https://github.com/NHS-digital-website/ps-hippo","homepage":null,"size":254,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"NHS-digital-website:master","ref":"master","sha":"03fadf39adcb6222dc834ef2062df9f875e0eab5","user":{"login":"NHS-digital-website","id":31284465,"avatar_url":"https://avatars1.githubusercontent.com/u/31284465?v=4","gravatar_id":"","url":"https://api.github.com/users/NHS-digital-website","html_url":"https://github.com/NHS-digital-website","followers_url":"https://api.github.com/users/NHS-digital-website/followers","following_url":"https://api.github.com/users/NHS-digital-website/following{/other_user}","gists_url":"https://api.github.com/users/NHS-digital-website/gists{/gist_id}","starred_url":"https://api.github.com/users/NHS-digital-website/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NHS-digital-website/subscriptions","organizations_url":"https://api.github.com/users/NHS-digital-website/orgs","repos_url":"https://api.github.com/users/NHS-digital-website/repos","events_url":"https://api.github.com/users/NHS-digital-website/events{/privacy}","received_events_url":"https://api.github.com/users/NHS-digital-website/received_events","type":"Organization","site_admin":false},"repo":{"id":104457155,"name":"ps-hippo","full_name":"NHS-digital-website/ps-hippo","owner":{"login":"NHS-digital-website","id":31284465,"avatar_url":"https://avatars1.githubusercontent.com/u/31284465?v=4","gravatar_id":"","url":"https://api.github.com/users/NHS-digital-website","html_url":"https://github.com/NHS-digital-website","followers_url":"https://api.github.com/users/NHS-digital-website/followers","following_url":"https://api.github.com/users/NHS-digital-website/following{/other_user}","gists_url":"https://api.github.com/users/NHS-digital-website/gists{/gist_id}","starred_url":"https://api.github.com/users/NHS-digital-website/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NHS-digital-website/subscriptions","organizations_url":"https://api.github.com/users/NHS-digital-website/orgs","repos_url":"https://api.github.com/users/NHS-digital-website/repos","events_url":"https://api.github.com/users/NHS-digital-website/events{/privacy}","received_events_url":"https://api.github.com/users/NHS-digital-website/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NHS-digital-website/ps-hippo","description":"Hippo CMS","fork":false,"url":"https://api.github.com/repos/NHS-digital-website/ps-hippo","forks_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/forks","keys_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/teams","hooks_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/hooks","issue_events_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/issues/events{/number}","events_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/events","assignees_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/assignees{/user}","branches_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/branches{/branch}","tags_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/tags","blobs_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/git/refs{/sha}","trees_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/statuses/{sha}","languages_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/languages","stargazers_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/stargazers","contributors_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/contributors","subscribers_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/subscribers","subscription_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/subscription","commits_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/commits{/sha}","git_commits_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/git/commits{/sha}","comments_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/comments{/number}","issue_comment_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/issues/comments{/number}","contents_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/contents/{+path}","compare_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/merges","archive_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/downloads","issues_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/issues{/number}","pulls_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/pulls{/number}","milestones_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/milestones{/number}","notifications_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/labels{/name}","releases_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/releases{/id}","deployments_url":"https://api.github.com/repos/NHS-digital-website/ps-hippo/deployments","created_at":"2017-09-22T09:29:54Z","updated_at":"2017-09-27T15:27:20Z","pushed_at":"2017-10-20T15:59:59Z","git_url":"git://github.com/NHS-digital-website/ps-hippo.git","ssh_url":"git@github.com:NHS-digital-website/ps-hippo.git","clone_url":"https://github.com/NHS-digital-website/ps-hippo.git","svn_url":"https://github.com/NHS-digital-website/ps-hippo","homepage":null,"size":254,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NHS-digital-website/ps-hippo/pulls/19"},"html":{"href":"https://github.com/NHS-digital-website/ps-hippo/pull/19"},"issue":{"href":"https://api.github.com/repos/NHS-digital-website/ps-hippo/issues/19"},"comments":{"href":"https://api.github.com/repos/NHS-digital-website/ps-hippo/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/NHS-digital-website/ps-hippo/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/NHS-digital-website/ps-hippo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NHS-digital-website/ps-hippo/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/NHS-digital-website/ps-hippo/statuses/5ee0fece01653969c931cab195742ebec922077a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ziemsky"}}