From e73bfddbd85668048e037e9c3464437fdb457bc9 Mon Sep 17 00:00:00 2001 From: Alex Sheehan Date: Wed, 22 Feb 2023 14:53:01 +0000 Subject: [PATCH] chore: bumping enterprise version 3.61.1 --- openedx/features/enterprise_support/api.py | 2 +- openedx/features/enterprise_support/context.py | 5 +---- requirements/constraints.txt | 2 +- requirements/edx/base.txt | 2 +- requirements/edx/development.txt | 2 +- requirements/edx/testing.txt | 2 +- 6 files changed, 6 insertions(+), 9 deletions(-) diff --git a/openedx/features/enterprise_support/api.py b/openedx/features/enterprise_support/api.py index f06df135a3ce..5b62815f06fe 100644 --- a/openedx/features/enterprise_support/api.py +++ b/openedx/features/enterprise_support/api.py @@ -836,7 +836,7 @@ def get_enterprise_course_enrollments(user): """ return EnterpriseCourseEnrollment.objects.select_related( - 'licensed_with', + 'licensedenterprisecourseenrollment_enrollment_fulfillment', 'enterprise_customer_user' ).prefetch_related( 'enterprise_customer_user__enterprise_customer' diff --git a/openedx/features/enterprise_support/context.py b/openedx/features/enterprise_support/context.py index f4f090f8fa17..540cfb799853 100644 --- a/openedx/features/enterprise_support/context.py +++ b/openedx/features/enterprise_support/context.py @@ -1,10 +1,7 @@ """ APIs providing enterprise context for events. """ -try: - from enterprise.models import EnterpriseCourseEnrollment -except ImportError: # pragma: no cover - pass +from enterprise.models import EnterpriseCourseEnrollment def get_enterprise_event_context(user_id, course_id): diff --git a/requirements/constraints.txt b/requirements/constraints.txt index e77d61db6d24..cb67a976c059 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -25,7 +25,7 @@ django-storages<1.9 # 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==3.60.21 +edx-enterprise==3.61.1 # oauthlib>3.0.1 causes test failures ( also remove the django-oauth-toolkit constraint when this is fixed ) oauthlib==3.0.1 diff --git a/requirements/edx/base.txt b/requirements/edx/base.txt index 0a7aad691386..329046b3b5a2 100644 --- a/requirements/edx/base.txt +++ b/requirements/edx/base.txt @@ -473,7 +473,7 @@ edx-drf-extensions==8.4.1 # edx-when # edxval # learner-pathway-progress -edx-enterprise==3.60.21 +edx-enterprise==3.61.1 # via # -c requirements/edx/../constraints.txt # -r requirements/edx/base.in diff --git a/requirements/edx/development.txt b/requirements/edx/development.txt index 8dbfce448fe5..6601ef4a12ca 100644 --- a/requirements/edx/development.txt +++ b/requirements/edx/development.txt @@ -599,7 +599,7 @@ edx-drf-extensions==8.4.1 # edx-when # edxval # learner-pathway-progress -edx-enterprise==3.60.21 +edx-enterprise==3.61.1 # via # -c requirements/edx/../constraints.txt # -r requirements/edx/testing.txt diff --git a/requirements/edx/testing.txt b/requirements/edx/testing.txt index 2a945997411b..3f1de99f59df 100644 --- a/requirements/edx/testing.txt +++ b/requirements/edx/testing.txt @@ -579,7 +579,7 @@ edx-drf-extensions==8.4.1 # edx-when # edxval # learner-pathway-progress -edx-enterprise==3.60.21 +edx-enterprise==3.61.1 # via # -c requirements/edx/../constraints.txt # -r requirements/edx/base.txt