feat: bump edx-enterprise to 4.30.0, extend system-wide roles for enrollment intentions feature (#35739)
This commit is contained in:
@@ -50,6 +50,7 @@ from path import Path as path
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
from enterprise.constants import (
|
||||
ENTERPRISE_ADMIN_ROLE,
|
||||
ENTERPRISE_LEARNER_ROLE,
|
||||
ENTERPRISE_CATALOG_ADMIN_ROLE,
|
||||
ENTERPRISE_DASHBOARD_ADMIN_ROLE,
|
||||
ENTERPRISE_ENROLLMENT_API_ADMIN_ROLE,
|
||||
@@ -60,6 +61,7 @@ from enterprise.constants import (
|
||||
SYSTEM_ENTERPRISE_PROVISIONING_ADMIN_ROLE,
|
||||
PROVISIONING_ENTERPRISE_CUSTOMER_ADMIN_ROLE,
|
||||
PROVISIONING_PENDING_ENTERPRISE_CUSTOMER_ADMIN_ROLE,
|
||||
DEFAULT_ENTERPRISE_ENROLLMENT_INTENTIONS_ROLE,
|
||||
)
|
||||
|
||||
from openedx.core.constants import COURSE_KEY_REGEX, COURSE_KEY_PATTERN, COURSE_ID_PATTERN
|
||||
@@ -4722,11 +4724,15 @@ ENTERPRISE_READONLY_ACCOUNT_FIELDS = [
|
||||
ENTERPRISE_CUSTOMER_COOKIE_NAME = 'enterprise_customer_uuid'
|
||||
BASE_COOKIE_DOMAIN = 'localhost'
|
||||
SYSTEM_TO_FEATURE_ROLE_MAPPING = {
|
||||
ENTERPRISE_LEARNER_ROLE: [
|
||||
DEFAULT_ENTERPRISE_ENROLLMENT_INTENTIONS_ROLE,
|
||||
],
|
||||
ENTERPRISE_ADMIN_ROLE: [
|
||||
ENTERPRISE_DASHBOARD_ADMIN_ROLE,
|
||||
ENTERPRISE_CATALOG_ADMIN_ROLE,
|
||||
ENTERPRISE_ENROLLMENT_API_ADMIN_ROLE,
|
||||
ENTERPRISE_REPORTING_CONFIG_ADMIN_ROLE,
|
||||
DEFAULT_ENTERPRISE_ENROLLMENT_INTENTIONS_ROLE,
|
||||
],
|
||||
ENTERPRISE_OPERATOR_ROLE: [
|
||||
ENTERPRISE_DASHBOARD_ADMIN_ROLE,
|
||||
@@ -4735,6 +4741,7 @@ SYSTEM_TO_FEATURE_ROLE_MAPPING = {
|
||||
ENTERPRISE_REPORTING_CONFIG_ADMIN_ROLE,
|
||||
ENTERPRISE_FULFILLMENT_OPERATOR_ROLE,
|
||||
ENTERPRISE_SSO_ORCHESTRATOR_OPERATOR_ROLE,
|
||||
DEFAULT_ENTERPRISE_ENROLLMENT_INTENTIONS_ROLE,
|
||||
],
|
||||
SYSTEM_ENTERPRISE_PROVISIONING_ADMIN_ROLE: [
|
||||
PROVISIONING_ENTERPRISE_CUSTOMER_ADMIN_ROLE,
|
||||
|
||||
@@ -82,7 +82,7 @@ django-storages<1.14.4
|
||||
# The team that owns this package will manually bump this package rather than having it pulled in automatically.
|
||||
# This is to allow them to better control its deployment and to do it in a process that works better
|
||||
# for them.
|
||||
edx-enterprise==4.29.0
|
||||
edx-enterprise==4.30.0
|
||||
|
||||
# Date: 2024-05-09
|
||||
# This has to be constrained as well because newer versions of edx-i18n-tools need the
|
||||
|
||||
@@ -467,7 +467,7 @@ edx-drf-extensions==10.5.0
|
||||
# edx-when
|
||||
# edxval
|
||||
# openedx-learning
|
||||
edx-enterprise==4.29.0
|
||||
edx-enterprise==4.30.0
|
||||
# via
|
||||
# -c requirements/edx/../constraints.txt
|
||||
# -r requirements/edx/kernel.in
|
||||
|
||||
@@ -741,7 +741,7 @@ edx-drf-extensions==10.5.0
|
||||
# edx-when
|
||||
# edxval
|
||||
# openedx-learning
|
||||
edx-enterprise==4.29.0
|
||||
edx-enterprise==4.30.0
|
||||
# via
|
||||
# -c requirements/edx/../constraints.txt
|
||||
# -r requirements/edx/doc.txt
|
||||
|
||||
@@ -547,7 +547,7 @@ edx-drf-extensions==10.5.0
|
||||
# edx-when
|
||||
# edxval
|
||||
# openedx-learning
|
||||
edx-enterprise==4.29.0
|
||||
edx-enterprise==4.30.0
|
||||
# via
|
||||
# -c requirements/edx/../constraints.txt
|
||||
# -r requirements/edx/base.txt
|
||||
|
||||
@@ -571,7 +571,7 @@ edx-drf-extensions==10.5.0
|
||||
# edx-when
|
||||
# edxval
|
||||
# openedx-learning
|
||||
edx-enterprise==4.29.0
|
||||
edx-enterprise==4.30.0
|
||||
# via
|
||||
# -c requirements/edx/../constraints.txt
|
||||
# -r requirements/edx/base.txt
|
||||
|
||||
Reference in New Issue
Block a user