diff --git a/openedx/core/djangoapps/user_api/accounts/api.py b/openedx/core/djangoapps/user_api/accounts/api.py index db58071fdd..6e7a211188 100644 --- a/openedx/core/djangoapps/user_api/accounts/api.py +++ b/openedx/core/djangoapps/user_api/accounts/api.py @@ -28,7 +28,6 @@ from lms.djangoapps.certificates.data import CertificateStatuses from openedx.core.djangoapps.enrollments.api import get_verified_enrollments -from openedx.core.djangoapps.plugins.plugin_extension_points import run_extension_point from openedx.core.djangoapps.user_api import accounts, errors, helpers from openedx.core.djangoapps.user_api.errors import ( AccountUpdateError, @@ -170,13 +169,6 @@ def update_account_settings(requesting_user, update, username=None): _update_extended_profile_if_needed(update, user_profile) _update_state_if_needed(update, user_profile) - # Allow a plugin to save the updated values - run_extension_point( - 'NAU_STUDENT_ACCOUNT_PARTIAL_UPDATE', - update=update, - user=user, - ) - except PreferenceValidationError as err: raise AccountValidationError(err.preference_errors) # lint-amnesty, pylint: disable=raise-missing-from except (AccountUpdateError, AccountValidationError) as err: diff --git a/openedx/core/djangoapps/user_api/accounts/serializers.py b/openedx/core/djangoapps/user_api/accounts/serializers.py index 360f4f65c7..b17f479b45 100644 --- a/openedx/core/djangoapps/user_api/accounts/serializers.py +++ b/openedx/core/djangoapps/user_api/accounts/serializers.py @@ -13,6 +13,7 @@ from django.urls import reverse from rest_framework import serializers + from common.djangoapps.student.models import ( LanguageProficiency, PendingNameChange, @@ -20,8 +21,6 @@ UserPasswordToggleHistory, UserProfile ) - -from openedx.core.djangoapps.plugins.plugin_extension_points import run_extension_point from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers from openedx.core.djangoapps.user_api import errors from openedx.core.djangoapps.user_api.accounts.utils import is_secondary_email_feature_enabled @@ -221,13 +220,6 @@ def to_representation(self, user): # lint-amnesty, pylint: disable=arguments-di } ) - # Append/Override the existing data values with plugin defined values - run_extension_point( - 'NAU_STUDENT_SERIALIZER_CONTEXT_EXTENSION', - data=data, - user=user, - ) - if self.custom_fields: fields = self.custom_fields elif user_profile: diff --git a/openedx/core/djangoapps/user_api/accounts/settings_views.py b/openedx/core/djangoapps/user_api/accounts/settings_views.py index e9c0fa712e..79e01e0bf0 100644 --- a/openedx/core/djangoapps/user_api/accounts/settings_views.py +++ b/openedx/core/djangoapps/user_api/accounts/settings_views.py @@ -26,7 +26,6 @@ from openedx.core.djangoapps.commerce.utils import get_ecommerce_api_base_url, get_ecommerce_api_client from openedx.core.djangoapps.dark_lang.models import DarkLangConfig from openedx.core.djangoapps.lang_pref.api import all_languages, released_languages -from openedx.core.djangoapps.plugins.plugin_extension_points import run_extension_point from openedx.core.djangoapps.programs.models import ProgramsApiConfig from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers from openedx.core.djangoapps.user_api.accounts.toggles import ( @@ -198,13 +197,6 @@ def account_settings_context(request): # in with, or if the user is already authenticated with them. } for state in auth_states if state.provider.display_for_login or state.has_account] - # Append/Override the existing view context values with plugin defined values - run_extension_point( - 'NAU_STUDENT_ACCOUNT_CONTEXT_EXTENSION', - context=context, - request=request, - user=user, - ) return context