wg-build-test-release icon indicating copy to clipboard operation
wg-build-test-release copied to clipboard

There is no way to disable account deletion in the Account MFE

Open regisb opened this issue 3 years ago • 13 comments

In the legacy account view from edx-platform, it was possible to remove the possibility of account deletion by defining the ENABLE_ACCOUNT_DELETION feature flag:

Source: https://edx.readthedocs.io/projects/edx-platform-technical/en/latest/featuretoggles.html#featuretoggle-FEATURES%5B'ENABLE_ACCOUNT_DELETION'%5D https://github.com/openedx/edx-platform/blob/20de3c71b4951472947917d2388e8412f53f6bcc/openedx/core/djangoapps/user_api/accounts/settings_views.py#L142

Now, in the frontend-app-account MFE, this feature flag seems to be ignored: https://github.com/openedx/edx-platform/blob/20de3c71b4951472947917d2388e8412f53f6bcc/openedx/core/djangoapps/user_api/accounts/settings_views.py#L74

As a consequence, it is no longer possible to disable account deletion.

This issue was detected following this conversation: https://discuss.openedx.org/t/some-feature-toggles-dont-work/7635

regisb avatar Jun 27 '22 09:06 regisb

I am probably missing a lot of context in here, but based on the origins of the flag ENABLE_ACCOUNT_DELETION in PR and in order to be GDPR compliant on the 'Right to be forgotten' I do not believe this is a bug. Missing the possibility of disabling account deletion looks like a intentional decision? Again I do not have full context.

nikoi4 avatar Aug 16 '22 01:08 nikoi4

  1. If account deletion is mandatory, then the feature flag should be removed.
  2. If platform administrators are able to disable account deletion, then this feature flag should be respected.

I think that we should go with option 2. For instance, account deletion could be disabled outside of Europe or in private Open edX instances.

regisb avatar Jan 03 '23 11:01 regisb

You need to consult with the Legal about this issue. That's because many jurisdictions around the world have laws similar to GDPR which stipulates that a user must be able to delete the account at any moment.

potap75 avatar Mar 01 '23 19:03 potap75

There are some cases where user account deletion should be deactivated. For instance when running a private instance of Open edX inside a company. In such cases GDPR does not apply.

The default should be to allow account deletion (according to GDPR) but platform administrators should be able to deactivate this feature (IMHO).

regisb avatar Mar 02 '23 10:03 regisb

Hello

I'm keen on picking up the above issue, any objections? Thank you

ghost avatar Jun 11 '23 15:06 ghost

Apologies team, I no longer have the bandwidth to contribute!

ghost avatar Jun 24 '23 14:06 ghost

Hi! Since this was dropped by alfstooqi, maybe i can have a go at it if no one is working on it. Let me know if it is a problem.

JonasBM avatar Jun 28 '23 00:06 JonasBM

I have take some time to learn more about the project, and i have some questions about the issue. Will create a environment variable (ENABLE_ACCOUNT_DELETION) on the front end and hide the component be enough? Is spectated to show any message, letting the user know that his account cannot be delete, and if he want, he need to call the support or something like that?

JonasBM avatar Jul 05 '23 00:07 JonasBM

I have some questions about the solution for this issue. Please read the post in the forum.

JonasBM avatar Jul 12 '23 18:07 JonasBM

Hi @JonasBM, thanks for your contribution! I see you opened a PR in account MFE that was already approved. Let us know when it's merged! Also, there was also a fix in the backend, can you link the PR for that one as well? Thanks!

mariajgrimaldi avatar Aug 07 '23 13:08 mariajgrimaldi

Hi @mariajgrimaldi Someone asked to contribute to the backend issue, but looks like he is not gonna fix it. I will try to make a PR to fix the backend this week, so maybe we can close this issue.

JonasBM avatar Aug 15 '23 18:08 JonasBM

@mariajgrimaldi the PR was merged on the MFE. Regarding the backend part, @kiran1415 seems to be taking care of it.

JonasBM avatar Aug 28 '23 14:08 JonasBM

Great! Thank you @JonasBM 🥳

mariajgrimaldi avatar Sep 05 '23 14:09 mariajgrimaldi

Hi, this could be marked as complete because it depends on these two PRs:

  • https://github.com/openedx/frontend-app-account/pull/817

  • https://github.com/openedx/edx-platform/pull/33062

I already tested it and it works perfectly :smile:

Pdt: this PR is already in quince so if we backport this one it could also be available in quince.master

I remain attentive to your recommendations

DonatoBD avatar Apr 30 '24 17:04 DonatoBD

Thank you so much for helping us out, @DonatoBD! I'll close this now. If any other issue arises, a new ticket should be opened.

mariajgrimaldi avatar Apr 30 '24 18:04 mariajgrimaldi