-
Notifications
You must be signed in to change notification settings - Fork 3
feat: use extended profile model in the account settings #30
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
base: nau/redwood.master
Are you sure you want to change the base?
feat: use extended profile model in the account settings #30
Conversation
9e9f6e5 to
7f54242
Compare
7f54242 to
2962a32
Compare
|
@igobranco I'm testing this locally but I would like your opinion on this PR. |
|
@BryanttV I couldn't make it work on the MFE on the Redwood release. @BryanttV The focus should be always push to upstream. Until the PR openedx/edx-platform#37119 is merged upstream, IMO we shouldn't try to change it downstream. @BryanttV Please review the upstream PR: openedx/edx-platform#37119 @paolacruzedunext can you ask @mariajgrimaldi to review that PR upstream? Detailing on my tests: I created: https://github.com/fccn/nau-tutor-configs/pull/197 I used both branches:
I could make it still receive the extended_profile information on Account API. "extended_profile": [
{
"field_name": "employment_situation",
"field_value": "Student"
},
{
"field_name": "allow_newsletter",
"field_value": false
},
{
"field_name": "nif",
"field_value": "828407487"
}
],IMO the problem is the MFE that it isn't working. But the UI didn't show more fields: Profile MFEI could make it work the profile MFE on Redwood. Account MFEI found out that the account MFE has some brand, header, footer incompatibility on Readwood, the MFE won't start on runtime. |
|
@BryanttV There are four points me and @igobranco agreed upon, after some quick chat over Teams:
There are two tickets related to this |


Description
This PR is a copy of this PR in upstream. For the time being, the changes will be applied directly in this fork until the upstream merge is performed.
Related Issues
https://github.com/fccn/nau-technical/issues/394
Related PRS
Testing instructions
Create a Tutor environment.
Create a mount of edx-platform with the changes in this PR.
Follow the steps in this PR to use the Account MFE with the extended profile fields, but instead of using the
custom-form-app, we will use thenau-openedx-extensionsapp.Add the following setting to the Site Configurations >
local.edly.io:8000{ "extended_profile_fields": [ "employment_situation", "allow_newsletter", "nif" ] }Install this branch of
nau-openedx-extensions. You can use this setting in yourconfig.ymlof Tutor.Create a tutor inline plugin and enable it with
tutor plugins enable nau-settingsRun
tutor dev launchCreate a user in the platform.
Go to the Account MFE in
http://apps.local.edly.io:1997/account/Edit the NAU Custom fields (Employment Situation, NIF, and Allow Newsletter) in the Profile Information
Check the new values stored in the NAU User Extended Model in the Django admin.
Demo
extended-profile-fields-in-account-settings-nau.mp4