openfun / richie

:pencil: An opensource CMS to build education portals
https://richie.education
MIT License
256 stars 80 forks source link

Add checkbox so learner can be enrolled directly from the partner #2450

Open igobranco opened 1 week ago

igobranco commented 1 week ago

Feature Request

Is your feature request related to a problem or unsupported use case? Please describe.

Send the email_opt_in when enrolling to a course run to Open edX.

Describe the solution you'd like

We need a similar feature of the edx.org. That allows the learner to accept to receive information from the partner related to the course.

Describe alternatives you've considered None.

Discovery, Documentation, Adoption, Migration Strategy

image

Change the Richie Open edX API https://github.com/fccn/edx-platform/blob/452b82e68b63bef8b4ff7a5027cde0b38961df6b/openedx/core/djangoapps/enrollments/views.py#L503C17-L503C29 and Send the email_opt_in Open edX Enrollment API parameter with the value of the new check https://github.com/openfun/richie/blob/master/src/frontend/js/api/lms/openedx-hawthorn.ts#L109-L113

Do you want to work on it through a Pull Request?

No, for now.

Downstream ticket https://github.com/fccn/nau-richie-site-factory/issues/205