Skip to content

feat: add CourseModeCheckoutStarted filter#338

Draft
pwnage101 wants to merge 1 commit intoopenedx:mainfrom
pwnage101:pwnage101/ENT-11573
Draft

feat: add CourseModeCheckoutStarted filter#338
pwnage101 wants to merge 1 commit intoopenedx:mainfrom
pwnage101:pwnage101/ENT-11573

Conversation

dict: the (possibly enriched) checkout context.
"""
data = super().run_pipeline(context=context, request=request, course_mode=course_mode)
return data.get("context")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's unconventional for the return signature to differ from the arguments signature. Better would be:

Suggested change
return data.get("context")
return data.get("context"), data.get("request"), data.get("course_mode")

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.

1 participant