Skip to content
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

Chore: update enrollment retry page #2040

Merged
merged 3 commits into from
Apr 25, 2024
Merged

Chore: update enrollment retry page #2040

merged 3 commits into from
Apr 25, 2024

Conversation

thekaveman
Copy link
Member

@thekaveman thekaveman commented Apr 18, 2024

Closes #2031

The /retry page was functioning as both our "user" enrollment error page (i.e. #2031) and our "system" enrollment error page (i.e. #2032).

This PR updates the language so the page is more explicitly for "user" enrollment errors.

#2032 will have to make additional changes e.g. by creating a new route/template.

This PR also simplifies the view logic of /retry, to remove the unnecessary blocking of GET requests to that endpoint (which makes testing easier).

Current on top of #2039

Reviewing

  1. Launch the app locally
  2. Verify eligibility for any flow
  3. One verified, visit /enrollment/retry
  4. See the updated copy and design

@thekaveman thekaveman requested a review from a team as a code owner April 18, 2024 21:51
@thekaveman thekaveman self-assigned this Apr 18, 2024
@github-actions github-actions bot added tests Related to automated testing (unit, UI, integration, etc.) i18n Copy: Language files or Django i18n framework back-end Django views, sessions, middleware, models, migrations etc. front-end HTML/CSS/JavaScript and Django templates labels Apr 18, 2024
Copy link

github-actions bot commented Apr 18, 2024

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  benefits/enrollment
  analytics.py
  views.py
Project Total  

This report was generated by python-coverage-comment-action

@thekaveman thekaveman linked an issue Apr 18, 2024 that may be closed by this pull request
5 tasks
Base automatically changed from chore/500-error-page to dev April 19, 2024 19:07
this change simplifies the view logic and updates the corresponding tests

throwing an error on GET is unnecessary: the behavior was a kind of an
assertion on how the user got to the /retry route, but in fact it doesn't
really matter if they made a GET or POST. Supporting GET makes testing
the route easier too.
@thekaveman thekaveman merged commit b6b0f66 into dev Apr 25, 2024
13 checks passed
@thekaveman thekaveman deleted the chore/enrollment-retry branch April 25, 2024 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end Django views, sessions, middleware, models, migrations etc. front-end HTML/CSS/JavaScript and Django templates i18n Copy: Language files or Django i18n framework tests Related to automated testing (unit, UI, integration, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New User enrollment error page
2 participants