-
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
Refactor Enrollment Flow for consistent labeling across apps #2403
Conversation
I'll take the rest of the work of this PR - fixing tests and anything else necessary. |
benefits/core/migrations/0028_remove_transitagency_enrollment_flows_and_more.py
Outdated
Show resolved
Hide resolved
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
@machikoyasuda Can you update the title of this PR to reflect that it covers more than just the relationship refactor? I think it is covering all of #2336 |
@angela-tran I couldn't think of a short way to summarize all the changes into one good PR headline 😅 |
04cda58
to
3e56fe8
Compare
😆 It is a bit long of a title, but it does cover all the technical changes, so I think it's ok. I guess from a more abstract level, this PR is making it so we don't need to have the transit agency name in the label, so I think another title that could work is Up to you, either one is fine with me! |
Shorter is better I think... remember this will be the commit message when the PR is merged! |
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.
The overall changes look great! There are just a few code clean-ups I think we should do.
benefits/core/migrations/0028_remove_transitagency_enrollment_flows_and_more.py
Show resolved
Hide resolved
benefits/core/migrations/0028_remove_transitagency_enrollment_flows_and_more.py
Outdated
Show resolved
Hide resolved
3e56fe8
to
4e7cdbe
Compare
Comments for lines 351-354: benefits/benefits/core/models.py Lines 351 to 354 in 4e7cdbe
Do we consider transit agency staff users as "end-users"? I'm wondering if we should remove the part that says |
884cfb3
to
f72819f
Compare
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.
The updates look good! Just one more change I see as needed to make sure the migration works.
d1e2225
to
12643bb
Compare
890cd55
to
ee92b87
Compare
…gency This commit changes the implementation of the relationship between EnrollmentFlow and TransitAgency. EnrollmentFlow now has a TransitAgency foreign key field (many flows to one transit agency). This will allow us to have more flexibility with the names we can use in EnrollmentFlow.label (for example, having the name of the transit agency in this field won't be necessary anymore).
…ow blanks for admin
ee92b87
to
2ffa3d1
Compare
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.
Migration worked, tests pass, app launches locally, admin interface shows new field / help text - looks great ✅
Thanks @machikoyasuda !
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.
This is such a great change 🤩 I love seeing our models get so clean and usable 👍
closes #2336
What this PR does
EnrollmentFlow
andTransitAgency
.EnrollmentFlow
now has aTransitAgency
foreign key field (many flows to one transit agency). This will allow us to have more flexibility with the names we can use inEnrollmentFlow.label
(for example, having the name of the transit agency in this field won't be necessary anymore).digital-only
andin-person only
enrollment flows for now. It was breaking the Cypress tests, because these flows did not have selection labels and all the necessary HTML templates. Can be re-added when the enrollment flow filtering goes into effect.How to test
./bin/reset_db.sh
Screenshots