ecrin-github / rms-portal-new

RMS Portal with Python backend
MIT License
0 stars 0 forks source link

BE: Automatically create user profile when editing "person" with no user_profile #98

Closed cudillal closed 2 months ago

cudillal commented 3 months ago

When editing data of a "person" that is not a "user" using the interface (/people), saving returns an error because the user_profile of the person does not exist. It should probably create the user_profile instead (or show a relevant error message at least).

cudillal commented 2 months ago

As this issue only applies to "persons" created before recent backend changes, I added a warning message in the FE saying that the user profile was not created for these specific cases. All persons created with the /people interface now have a user profile created automatically as well. This issue can be closed after testing.

cudillal commented 2 months ago

Test editing user info on legacy "people" e.g. Jacques, Swarna, etc.