Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions openedx/core/djangoapps/user_api/accounts/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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:
Expand Down
10 changes: 1 addition & 9 deletions openedx/core/djangoapps/user_api/accounts/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@
from django.urls import reverse
from rest_framework import serializers


from common.djangoapps.student.models import (
LanguageProficiency,
PendingNameChange,
SocialLink,
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
Expand Down Expand Up @@ -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:
Expand Down
8 changes: 0 additions & 8 deletions openedx/core/djangoapps/user_api/accounts/settings_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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


Expand Down