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

Session stores enrollment expiration, context processor makes available to templates #1981

Closed
3 tasks done
Tracked by #1878
thekaveman opened this issue Mar 25, 2024 · 0 comments · Fixed by #1985
Closed
3 tasks done
Tracked by #1878
Assignees
Labels
back-end Django views, sessions, middleware, models, migrations etc.

Comments

@thekaveman
Copy link
Member

thekaveman commented Mar 25, 2024

As part of #1877, we need to store the calculated expiration date in the user's session and make it available for use later on e.g. the Enrollment success page (#1919) and Enrollment error page (#1921).

Acceptance Criteria

  • benefits.core.session defines a helper for getting the user's current expiration date as a datetime instance
  • benefits.core.session.update takes a datetime parameter for updating the user's current expiration date
  • A new context processor adds the expiration_date and renenrollment_date to the context for templates to use
@thekaveman thekaveman added the back-end Django views, sessions, middleware, models, migrations etc. label Mar 25, 2024
@thekaveman thekaveman self-assigned this Mar 25, 2024
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.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant