-
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
Add supported_methods
field to EnrollmentFlow
#2383
Add supported_methods
field to EnrollmentFlow
#2383
Conversation
7bbe713
to
2834a2f
Compare
Not sure why both Pytest and Cypress tests are failing here. Both suites pass for me locally. 🤨 |
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
@angela-tran and I learnt something new today: A GitHub repo for a PyPI package might not reflect the latest release! The release page for https://github.com/goinnn/django-multiselectfield shows that the latest version is v0.1.12. But we noticed that when I had installed As a result, I simply updated the version to 0.1.13, and all the tests were fixed 🎉 No hacky fixes required. Lesson learnt: Check both the GitHub and PyPI page for the package you are using. |
90566b0
to
f066e34
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.
This looks great!
This PR currently does not update existing enrollment flows in the fixture data, nor does it add any checks throughout the app to check if a flow is supported in the in-person or digital apps.
I think for existing fixtures e.g. in dev
, test
, prod
-- this is fine. Since the field defines a default value, we'll be good there and the flows will be updated in the database next time they are edited.
I do think it would be worth it to update our local fixtures in this PR though, just for completeness of the data when starting from scratch. And to show a full example of how the config works together.
The other minor change, can we change the label shown to admin users for the new field to: Supported enrollment methods
? This is to align more closely with @indexing's comment on the analytics side: #2245 (comment)
@thekaveman That makes sense. Should I set all Enrollment Flows to accept both methods? |
Let's set all our existing fixtures to both 👍 Maybe add one basic sample each of a |
@thekaveman Updated all:
|
a12349b
to
0162e64
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.
Sorry, I just realized one more thing, but it can be left for a follow-up.
We need to actually use this field! In the views that get the list of flows for the user to select from.
closes #2287
What this PR does
supported_enrollment_methods
field toEnrollmentFlow
, as radio buttons that can be both selectedhttp://localhost:11369/admin/core/enrollmentflow/add/