Skip to content

Feature 1374/fix url validations on feedback request flow #1406

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

Merged

Conversation

pieperm
Copy link
Collaborator

@pieperm pieperm commented Aug 9, 2021

To test this, go to:

localhost:3000/feedback/request

You should get an error toast regarding the URL.

If you go to:

localhost:3000/feedback/request/?for=1b4f99da-ef70-4a76-9b37-8bb783b749ad

then that URL should work. Stepping through the request process should not produce any errors. If you change anything in the URL to be invalid (e.g. cut off part of an ID) then you should get an error toast (it will either redirect you or remove that specific query, depending on which ID you altered)

Additionally, for any of the URLs that are generated when stepping through (meaning you didn't manually alter the URL), you should be able to reload the page and return to the same screen with no redirect, errors, or toasts.

@pieperm pieperm added bug Something isn't working feedback request labels Aug 9, 2021
@pieperm pieperm added this to the Feedback milestone Aug 9, 2021
@pieperm pieperm self-assigned this Aug 9, 2021
@pieperm pieperm linked an issue Aug 9, 2021 that may be closed by this pull request
@pieperm
Copy link
Collaborator Author

pieperm commented Aug 9, 2021

Side note, I changed two switch statements to if-else blocks. This (somehow) resolved an editor warning that certain case branches were unreachable, even though they were actually being reached.

@pieperm pieperm merged commit 6a15eaf into feedback Aug 9, 2021
@pieperm pieperm deleted the feature-1374/fix-url-validations-on-feedback-request-flow branch August 9, 2021 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feedback request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix URL validations on feedback request flow (S)
4 participants