-
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: model and capture local EnrollmentEvent
#2367
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
tests
Related to automated testing (unit, UI, integration, etc.)
deployment-dev
[auto] Changes that will trigger a deploy if merged to dev
migrations
[auto] Review for potential model changes/needed data migrations updates
back-end
Django views, sessions, middleware, models, migrations etc.
labels
Sep 13, 2024
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
thekaveman
force-pushed
the
feat/enrollment-event
branch
4 times, most recently
from
September 13, 2024 21:46
78820b2
to
ac1f54f
Compare
thekaveman
changed the title
Feat: model and capture enrollment events
Feat: model and capture local enrollment events
Sep 13, 2024
thekaveman
force-pushed
the
feat/enrollment-event
branch
from
September 13, 2024 21:52
ac1f54f
to
5bdbfa5
Compare
thekaveman
changed the title
Feat: model and capture local enrollment events
Feat: model and capture local Sep 13, 2024
EnrollmentEvent
thekaveman
force-pushed
the
feat/enrollment-event
branch
5 times, most recently
from
September 16, 2024 22:14
b09a2e2
to
4016df2
Compare
thekaveman
force-pushed
the
feat/enrollment-event
branch
from
September 17, 2024 15:13
4016df2
to
cd995e3
Compare
1 task
Reviewing this now |
thekaveman
force-pushed
the
feat/enrollment-event
branch
from
September 17, 2024 19:31
cd995e3
to
3f4b765
Compare
I rebased on |
angela-tran
reviewed
Sep 17, 2024
EnrollmentMethod helper class acts as a container for the constants "digital" and "in_person"
return the local enrollment_datetime as a human-readable string, with information about the agency and flow
when running in production EnrollmentEvent fields are readonly ease this restriction for testing in other environments for superusers helper class RUNTIME_ENVS to contain environment strings
refactor the view tests to move away from expiration vs. non-expiration; this distinction isn't relevant in the tests since they are mocking the enrollment.enroll() function, so expiration calculation never occurs instead test an enrollment for eligibility API vs. claims verification, the respective EnrollmentEvents should contain different data
prevent sending false positive events if the success view is requested directly this aligns with where error events are sent
moved the model_User test fixture so it could be re-used to confirm the EnrollmentEvent.verified_by field for in-person
thekaveman
force-pushed
the
feat/enrollment-event
branch
from
September 18, 2024 03:28
5215f5a
to
784abb0
Compare
@angela-tran think we can sneak this in as part of the release today? |
angela-tran
approved these changes
Sep 18, 2024
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.
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.
deployment-dev
[auto] Changes that will trigger a deploy if merged to dev
migrations
[auto] Review for potential model changes/needed data migrations updates
tests
Related to automated testing (unit, UI, integration, etc.)
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #2267
Going to rebase on #2340 once that is merged, to add the✅EnrollmentEvent
logic for in-person flows.How to test
Permissions
Confirm the expected permissions behavior for the
EnrollmentEvent
model.bin/reset_db.sh
, using the default fixtures fileF5
to launch the appSTAFF_GROUP_NAME
EnrollmentEvent
records, and all fields are editablebenefits.calitp.org
to your list ofALLOWED_HOSTS
, then restart the appEnrollmentEvent
records, but now all fields read-onlyImplementation
Confirm an
EnrollmentEvent
is created when expected.Depends on the resolution of #2365
bin/reset_db.sh
, using a fixtures file to setup a QATransitProcessor
connection for CSTF5
to launch the appSTAFF_GROUP_NAME
EnrollmentEvent
record for the enrollment you just completed (it should haveenrollment_method=digital
), confirm all fields are read-onlyEnrollmentEvent
record for the enrollment you just completed (it should haveenrollment_method=in_person
and your name as theverified_by
)