-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multipage Surveys #40
Conversation
Co-Authored-By: Karan Sampath <[email protected]>
Co-Authored-By: Karan Sampath <[email protected]>
@karansampath looks good overall. I can do a review once you've finalized the numbering? Also I notice that the failing test ( |
I removed it because it added some complications to the flow since we weren't using cookies. I added it back. @karansampath If you have question how it works, DM me, I can go into it. Basically, we have generate a new token for each post request. @karansampath On unrelated note to csurf protection, please look into this.
|
Thanks @sumants-dev and makes sense re CSRF. |
Ah, thanks for pointing out 1, didn't see that and will get that fixed. On 2, I thought about adding next but realized that since workers aren't going to be able to access previous pages it may be slightly misleading for them. Won't just a submit make it clear that these answers couldn't be changed later on? |
If you're thinking about how to make it more clear that people can't go back, perhaps we do something like "Submit page x of y"? |
@sumants-dev I'm slightly unsure how to fix the submission issue, it seems my conditionals aren't working and I'm unsure why. Could you please take a quick look at it? Thanks! Have fixed the other issues. |
You forgot to pipe the variables of check and final in survey.pug. From my testing it was fixed. Check on your end also.
|
Tested and fixed numbering. The rendering of the survey looks different so let me know if that's okay otherwise I think the PR is ready to merge @markwhiting. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks great. I just think we could have a minor tweak to get the question format more consistent but otherwise seems good to go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Working on ensuring that the numbering of questions works properly. The rest of the implementation should be correct.