{"action":"opened","number":26,"pull_request":{"url":"https://api.github.com/repos/ONSdigital/eq-publisher/pulls/26","id":148391968,"html_url":"https://github.com/ONSdigital/eq-publisher/pull/26","diff_url":"https://github.com/ONSdigital/eq-publisher/pull/26.diff","patch_url":"https://github.com/ONSdigital/eq-publisher/pull/26.patch","issue_url":"https://api.github.com/repos/ONSdigital/eq-publisher/issues/26","number":26,"state":"open","locked":false,"title":"add support for DateRange answers","user":{"login":"WickyNilliams","id":1091390,"avatar_url":"https://avatars3.githubusercontent.com/u/1091390?v=4","gravatar_id":"","url":"https://api.github.com/users/WickyNilliams","html_url":"https://github.com/WickyNilliams","followers_url":"https://api.github.com/users/WickyNilliams/followers","following_url":"https://api.github.com/users/WickyNilliams/following{/other_user}","gists_url":"https://api.github.com/users/WickyNilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/WickyNilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WickyNilliams/subscriptions","organizations_url":"https://api.github.com/users/WickyNilliams/orgs","repos_url":"https://api.github.com/users/WickyNilliams/repos","events_url":"https://api.github.com/users/WickyNilliams/events{/privacy}","received_events_url":"https://api.github.com/users/WickyNilliams/received_events","type":"User","site_admin":false},"body":"### What is the context of this PR?\r\nAdd support for date range answer types.\r\n\r\nAuthor will allow users to mix DateRange answer types with other answers (this is not supported by runner and causes errors). We will eventually restrict this in the UI. In the meanwhile, I have added logic here to drop all non-DateRange answers from a page when a DateRange is found.\r\n\r\n### How to review \r\nReview code, run tests, test previewing with author","created_at":"2017-10-24T13:09:36Z","updated_at":"2017-10-24T13:09:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/ONSdigital/eq-publisher/pulls/26/commits","review_comments_url":"https://api.github.com/repos/ONSdigital/eq-publisher/pulls/26/comments","review_comment_url":"https://api.github.com/repos/ONSdigital/eq-publisher/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ONSdigital/eq-publisher/issues/26/comments","statuses_url":"https://api.github.com/repos/ONSdigital/eq-publisher/statuses/6d94150ec6c2a0a3854a205ee1e62570c259e5ba","head":{"label":"ONSdigital:74-date-range-answer-type","ref":"74-date-range-answer-type","sha":"6d94150ec6c2a0a3854a205ee1e62570c259e5ba","user":{"login":"ONSdigital","id":6865137,"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":94227793,"name":"eq-publisher","full_name":"ONSdigital/eq-publisher","owner":{"login":"ONSdigital","id":6865137,"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},"private":false,"html_url":"https://github.com/ONSdigital/eq-publisher","description":"An API for publishing eq-author questionnaires","fork":false,"url":"https://api.github.com/repos/ONSdigital/eq-publisher","forks_url":"https://api.github.com/repos/ONSdigital/eq-publisher/forks","keys_url":"https://api.github.com/repos/ONSdigital/eq-publisher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ONSdigital/eq-publisher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ONSdigital/eq-publisher/teams","hooks_url":"https://api.github.com/repos/ONSdigital/eq-publisher/hooks","issue_events_url":"https://api.github.com/repos/ONSdigital/eq-publisher/issues/events{/number}","events_url":"https://api.github.com/repos/ONSdigital/eq-publisher/events","assignees_url":"https://api.github.com/repos/ONSdigital/eq-publisher/assignees{/user}","branches_url":"https://api.github.com/repos/ONSdigital/eq-publisher/branches{/branch}","tags_url":"https://api.github.com/repos/ONSdigital/eq-publisher/tags","blobs_url":"https://api.github.com/repos/ONSdigital/eq-publisher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ONSdigital/eq-publisher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ONSdigital/eq-publisher/git/refs{/sha}","trees_url":"https://api.github.com/repos/ONSdigital/eq-publisher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ONSdigital/eq-publisher/statuses/{sha}","languages_url":"https://api.github.com/repos/ONSdigital/eq-publisher/languages","stargazers_url":"https://api.github.com/repos/ONSdigital/eq-publisher/stargazers","contributors_url":"https://api.github.com/repos/ONSdigital/eq-publisher/contributors","subscribers_url":"https://api.github.com/repos/ONSdigital/eq-publisher/subscribers","subscription_url":"https://api.github.com/repos/ONSdigital/eq-publisher/subscription","commits_url":"https://api.github.com/repos/ONSdigital/eq-publisher/commits{/sha}","git_commits_url":"https://api.github.com/repos/ONSdigital/eq-publisher/git/commits{/sha}","comments_url":"https://api.github.com/repos/ONSdigital/eq-publisher/comments{/number}","issue_comment_url":"https://api.github.com/repos/ONSdigital/eq-publisher/issues/comments{/number}","contents_url":"https://api.github.com/repos/ONSdigital/eq-publisher/contents/{+path}","compare_url":"https://api.github.com/repos/ONSdigital/eq-publisher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ONSdigital/eq-publisher/merges","archive_url":"https://api.github.com/repos/ONSdigital/eq-publisher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ONSdigital/eq-publisher/downloads","issues_url":"https://api.github.com/repos/ONSdigital/eq-publisher/issues{/number}","pulls_url":"https://api.github.com/repos/ONSdigital/eq-publisher/pulls{/number}","milestones_url":"https://api.github.com/repos/ONSdigital/eq-publisher/milestones{/number}","notifications_url":"https://api.github.com/repos/ONSdigital/eq-publisher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ONSdigital/eq-publisher/labels{/name}","releases_url":"https://api.github.com/repos/ONSdigital/eq-publisher/releases{/id}","deployments_url":"https://api.github.com/repos/ONSdigital/eq-publisher/deployments","created_at":"2017-06-13T15:24:34Z","updated_at":"2017-07-19T09:35:36Z","pushed_at":"2017-10-23T16:28:02Z","git_url":"git://github.com/ONSdigital/eq-publisher.git","ssh_url":"git@github.com:ONSdigital/eq-publisher.git","clone_url":"https://github.com/ONSdigital/eq-publisher.git","svn_url":"https://github.com/ONSdigital/eq-publisher","homepage":"http://eq-publisher.apps.devtest.onsclofo.uk","size":374,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"ONSdigital:master","ref":"master","sha":"4bbd3662b0270a39244469e6fd061eb329c83de0","user":{"login":"ONSdigital","id":6865137,"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":94227793,"name":"eq-publisher","full_name":"ONSdigital/eq-publisher","owner":{"login":"ONSdigital","id":6865137,"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},"private":false,"html_url":"https://github.com/ONSdigital/eq-publisher","description":"An API for publishing eq-author questionnaires","fork":false,"url":"https://api.github.com/repos/ONSdigital/eq-publisher","forks_url":"https://api.github.com/repos/ONSdigital/eq-publisher/forks","keys_url":"https://api.github.com/repos/ONSdigital/eq-publisher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ONSdigital/eq-publisher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ONSdigital/eq-publisher/teams","hooks_url":"https://api.github.com/repos/ONSdigital/eq-publisher/hooks","issue_events_url":"https://api.github.com/repos/ONSdigital/eq-publisher/issues/events{/number}","events_url":"https://api.github.com/repos/ONSdigital/eq-publisher/events","assignees_url":"https://api.github.com/repos/ONSdigital/eq-publisher/assignees{/user}","branches_url":"https://api.github.com/repos/ONSdigital/eq-publisher/branches{/branch}","tags_url":"https://api.github.com/repos/ONSdigital/eq-publisher/tags","blobs_url":"https://api.github.com/repos/ONSdigital/eq-publisher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ONSdigital/eq-publisher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ONSdigital/eq-publisher/git/refs{/sha}","trees_url":"https://api.github.com/repos/ONSdigital/eq-publisher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ONSdigital/eq-publisher/statuses/{sha}","languages_url":"https://api.github.com/repos/ONSdigital/eq-publisher/languages","stargazers_url":"https://api.github.com/repos/ONSdigital/eq-publisher/stargazers","contributors_url":"https://api.github.com/repos/ONSdigital/eq-publisher/contributors","subscribers_url":"https://api.github.com/repos/ONSdigital/eq-publisher/subscribers","subscription_url":"https://api.github.com/repos/ONSdigital/eq-publisher/subscription","commits_url":"https://api.github.com/repos/ONSdigital/eq-publisher/commits{/sha}","git_commits_url":"https://api.github.com/repos/ONSdigital/eq-publisher/git/commits{/sha}","comments_url":"https://api.github.com/repos/ONSdigital/eq-publisher/comments{/number}","issue_comment_url":"https://api.github.com/repos/ONSdigital/eq-publisher/issues/comments{/number}","contents_url":"https://api.github.com/repos/ONSdigital/eq-publisher/contents/{+path}","compare_url":"https://api.github.com/repos/ONSdigital/eq-publisher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ONSdigital/eq-publisher/merges","archive_url":"https://api.github.com/repos/ONSdigital/eq-publisher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ONSdigital/eq-publisher/downloads","issues_url":"https://api.github.com/repos/ONSdigital/eq-publisher/issues{/number}","pulls_url":"https://api.github.com/repos/ONSdigital/eq-publisher/pulls{/number}","milestones_url":"https://api.github.com/repos/ONSdigital/eq-publisher/milestones{/number}","notifications_url":"https://api.github.com/repos/ONSdigital/eq-publisher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ONSdigital/eq-publisher/labels{/name}","releases_url":"https://api.github.com/repos/ONSdigital/eq-publisher/releases{/id}","deployments_url":"https://api.github.com/repos/ONSdigital/eq-publisher/deployments","created_at":"2017-06-13T15:24:34Z","updated_at":"2017-07-19T09:35:36Z","pushed_at":"2017-10-23T16:28:02Z","git_url":"git://github.com/ONSdigital/eq-publisher.git","ssh_url":"git@github.com:ONSdigital/eq-publisher.git","clone_url":"https://github.com/ONSdigital/eq-publisher.git","svn_url":"https://github.com/ONSdigital/eq-publisher","homepage":"http://eq-publisher.apps.devtest.onsclofo.uk","size":374,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ONSdigital/eq-publisher/pulls/26"},"html":{"href":"https://github.com/ONSdigital/eq-publisher/pull/26"},"issue":{"href":"https://api.github.com/repos/ONSdigital/eq-publisher/issues/26"},"comments":{"href":"https://api.github.com/repos/ONSdigital/eq-publisher/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/ONSdigital/eq-publisher/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/ONSdigital/eq-publisher/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ONSdigital/eq-publisher/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/ONSdigital/eq-publisher/statuses/6d94150ec6c2a0a3854a205ee1e62570c259e5ba"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":55,"deletions":2,"changed_files":2}}
{"actor":{"display_login":"WickyNilliams"}}