Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes needed for Premiere CE OAuth Integration #52

Merged
merged 6 commits into from
Oct 31, 2024
Merged

Conversation

tramck
Copy link

@tramck tramck commented Oct 23, 2024

This PR does a few things:

  • The oauth2_provider package supports swappable models, but in a handful of cases the edx-platform uses the native models directly rather than going through the helper methods which prevents us from defining custom models in our code base. This PR fixes that problem.
  • Fixes an unrelated syntax error in CourseEntitlementSupportDetailSerializer that was preventing migrations from running for me
  • Adds an extra call to validate the token so we can have a place to hook into for gating access to PCE

@@ -50,7 +50,7 @@ class CourseEntitlementSupportDetailSerializer(serializers.ModelSerializer):
slug_field='username',
default=serializers.CurrentUserDefault()
)
unenrolled_run = CourseKeyField('unenrolled_run.id')
unenrolled_run = CourseKeyField(source='unenrolled_run.id')
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated to the goal of the pr, but this line was breaking my migrations locally.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this get @medality_custom added to it for good measure?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call. added.

@@ -50,7 +50,7 @@ class CourseEntitlementSupportDetailSerializer(serializers.ModelSerializer):
slug_field='username',
default=serializers.CurrentUserDefault()
)
unenrolled_run = CourseKeyField('unenrolled_run.id')
unenrolled_run = CourseKeyField(source='unenrolled_run.id')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this get @medality_custom added to it for good measure?

@tramck tramck merged commit 47f0a89 into medality-palm Oct 31, 2024
19 of 40 checks passed
@tramck tramck deleted the pce-poc branch October 31, 2024 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants