-
Notifications
You must be signed in to change notification settings - Fork 9
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
Feat: enrollments can expire #1989
Commits on Apr 1, 2024
-
refactor(enrollment): check for existing group funding source first
this is instead of catching the 409 response code
Configuration menu - View commit details
-
Copy full SHA for 33b0efc - Browse repository at this point
Copy the full SHA 33b0efcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ee7251 - Browse repository at this point
Copy the full SHA 0ee7251View commit details -
feat(settings): app time zone is America/Los_Angeles
see https://docs.djangoproject.com/en/5.0/ref/settings/#std-setting-TIME_ZONE > Note that this isn’t necessarily the time zone of the server. > When USE_TZ is True, this is the default time zone that Django will use to display datetimes in templates > and to interpret datetimes entered in forms.
Configuration menu - View commit details
-
Copy full SHA for 0e6b8a9 - Browse repository at this point
Copy the full SHA 0e6b8a9View commit details -
feat: implement expiration date calculation
use `django.utils.timezone` for access to the TIME_ZONE setting. the business logic is to set the expiration date as midnight in Pacific Time of the (N+1)th day, where N is the value of `expiration_days`.
Configuration menu - View commit details
-
Copy full SHA for 245d484 - Browse repository at this point
Copy the full SHA 245d484View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ae8416 - Browse repository at this point
Copy the full SHA 6ae8416View commit details -
feat: implement scenario - supports expiration, but no expiration
this is an unlikely but possible scenario
Configuration menu - View commit details
-
Copy full SHA for 2be2891 - Browse repository at this point
Copy the full SHA 2be2891View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1757d3b - Browse repository at this point
Copy the full SHA 1757d3bView commit details -
Configuration menu - View commit details
-
Copy full SHA for df49eea - Browse repository at this point
Copy the full SHA df49eeaView commit details -
feat: implement helper function to indicate being within reenrollment
also add view test for this scenario
Configuration menu - View commit details
-
Copy full SHA for d43a265 - Browse repository at this point
Copy the full SHA d43a265View commit details -
chore: raise error for a scenario that cannot be implemented yet
we want to remove the expiration date for the scenario of expiration is not supported and yet there is an expiration date. this functionality has not been implemented in cal-itp/littlepay, nor have we confirmed that it is possible
Configuration menu - View commit details
-
Copy full SHA for 4fa50a7 - Browse repository at this point
Copy the full SHA 4fa50a7View commit details -
feat: implement scenario - supports expiration, not expired yet
leave view function and template for #1921 to implement
Configuration menu - View commit details
-
Copy full SHA for 768e3ea - Browse repository at this point
Copy the full SHA 768e3eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 945e4c0 - Browse repository at this point
Copy the full SHA 945e4c0View commit details -
test: make assertion about expiry date more specific
we know that we should be using the value from session.enrollment_expiry
Configuration menu - View commit details
-
Copy full SHA for 25f6d38 - Browse repository at this point
Copy the full SHA 25f6d38View commit details -
refactor(view): remove potentially misleading variables
use the specific condition that is leading to the branch of code, which namely is if the concession expiry is None or not.
Configuration menu - View commit details
-
Copy full SHA for 77bb1f8 - Browse repository at this point
Copy the full SHA 77bb1f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for f39d909 - Browse repository at this point
Copy the full SHA f39d909View commit details -
Configuration menu - View commit details
-
Copy full SHA for b9caeed - Browse repository at this point
Copy the full SHA b9caeedView commit details -
refactor(view): remove unnecessary log statements
similar to what was done in 5666973
Configuration menu - View commit details
-
Copy full SHA for 86ea118 - Browse repository at this point
Copy the full SHA 86ea118View commit details -
refactor(view): consolidate sending analytics event into success view
this removes the need for any helper function
Configuration menu - View commit details
-
Copy full SHA for 8cb5e33 - Browse repository at this point
Copy the full SHA 8cb5e33View commit details