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

feat: handle instructor permission events #251

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

zacharis278
Copy link
Contributor

@zacharis278 zacharis278 commented Feb 27, 2024

JIRA: https://2u-internal.atlassian.net/browse/COSMO-151 (2u-internal)

Description: Handles CourseAccessRole events that govern access to the exams dashboard and instructor API actions on exams.

Tested this against my local kafka event bus

@zacharis278 zacharis278 force-pushed the zhancock/course-role-consumer branch from 02eccf8 to 096ba43 Compare February 27, 2024 18:07
Copy link
Member

@alangsto alangsto left a comment

Choose a reason for hiding this comment

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

One nit, but otherwise looks good!

if role not in COURSE_STAFF_ROLES:
return

user, created = User.objects.get_or_create( # pylint: disable=unused-variable
Copy link
Member

Choose a reason for hiding this comment

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

Instead of adding the pylint disable command, could you just have user, _ = ..., or is there a reason we should have a variable for created?

@zacharis278 zacharis278 merged commit 525c1d7 into main Feb 27, 2024
8 checks passed
@zacharis278 zacharis278 deleted the zhancock/course-role-consumer branch February 27, 2024 19:20
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