{"action":"closed","issue":{"url":"https://api.github.com/repos/hmcts/one-per-page/issues/71","repository_url":"https://api.github.com/repos/hmcts/one-per-page","labels_url":"https://api.github.com/repos/hmcts/one-per-page/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/hmcts/one-per-page/issues/71/comments","events_url":"https://api.github.com/repos/hmcts/one-per-page/issues/71/events","html_url":"https://github.com/hmcts/one-per-page/issues/71","id":279045953,"number":71,"title":"Add another functionality","user":{"login":"michaeldfallen","id":1446145,"avatar_url":"https://avatars0.githubusercontent.com/u/1446145?v=4","gravatar_id":"","url":"https://api.github.com/users/michaeldfallen","html_url":"https://github.com/michaeldfallen","followers_url":"https://api.github.com/users/michaeldfallen/followers","following_url":"https://api.github.com/users/michaeldfallen/following{/other_user}","gists_url":"https://api.github.com/users/michaeldfallen/gists{/gist_id}","starred_url":"https://api.github.com/users/michaeldfallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaeldfallen/subscriptions","organizations_url":"https://api.github.com/users/michaeldfallen/orgs","repos_url":"https://api.github.com/users/michaeldfallen/repos","events_url":"https://api.github.com/users/michaeldfallen/events{/privacy}","received_events_url":"https://api.github.com/users/michaeldfallen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"michaeldfallen","id":1446145,"avatar_url":"https://avatars0.githubusercontent.com/u/1446145?v=4","gravatar_id":"","url":"https://api.github.com/users/michaeldfallen","html_url":"https://github.com/michaeldfallen","followers_url":"https://api.github.com/users/michaeldfallen/followers","following_url":"https://api.github.com/users/michaeldfallen/following{/other_user}","gists_url":"https://api.github.com/users/michaeldfallen/gists{/gist_id}","starred_url":"https://api.github.com/users/michaeldfallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaeldfallen/subscriptions","organizations_url":"https://api.github.com/users/michaeldfallen/orgs","repos_url":"https://api.github.com/users/michaeldfallen/repos","events_url":"https://api.github.com/users/michaeldfallen/events{/privacy}","received_events_url":"https://api.github.com/users/michaeldfallen/received_events","type":"User","site_admin":false},"assignees":[{"login":"michaeldfallen","id":1446145,"avatar_url":"https://avatars0.githubusercontent.com/u/1446145?v=4","gravatar_id":"","url":"https://api.github.com/users/michaeldfallen","html_url":"https://github.com/michaeldfallen","followers_url":"https://api.github.com/users/michaeldfallen/followers","following_url":"https://api.github.com/users/michaeldfallen/following{/other_user}","gists_url":"https://api.github.com/users/michaeldfallen/gists{/gist_id}","starred_url":"https://api.github.com/users/michaeldfallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaeldfallen/subscriptions","organizations_url":"https://api.github.com/users/michaeldfallen/orgs","repos_url":"https://api.github.com/users/michaeldfallen/repos","events_url":"https://api.github.com/users/michaeldfallen/events{/privacy}","received_events_url":"https://api.github.com/users/michaeldfallen/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2017-12-04T15:54:35Z","updated_at":"2018-02-01T21:34:17Z","closed_at":"2018-02-01T21:34:17Z","author_association":"CONTRIBUTOR","body":"The add another functionality will be built as a mini transaction that allows for a step to list (similar to check your answers) the answers of a number of other steps. \r\n\r\nThose steps will be linked in a small journey that the user follows to add another item to the list.\r\n\r\n![image](https://user-images.githubusercontent.com/1446145/33562765-044a0f36-d90e-11e7-9128-9c8dc072290e.png)\r\n\r\nThe CompoundStep will allow a user to declare a number of steps that should be used in the sub journey:\r\n\r\n```\r\nclass DatesYouCantAttend extends CompoundStep {\r\n  steps() [\r\n    return [Date]\r\n  }\r\n  next() {\r\n    return goTo(the next step in the main journey);\r\n  }\r\n}\r\n```\r\n\r\nThe CompoundStep will act as a facade, wiring the sub steps to itself and handling requests for them, delegating only the parts that those steps need to handle, e.g. declaring the form, rendering the template, etc. Storing the values in the session will be handled by the compound step."}}
{"actor":{"display_login":"michaeldfallen"}}