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

fix: pass course run keys as strings, not CourseLocator #333

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

pwnage101
Copy link
Contributor

@pwnage101 pwnage101 commented Jan 9, 2025

When passing a CourseLocator to ContentMetadataApi.get_content_metadata, fetching the content metadata from Discovery fails because the requests library cannot handle non-string or other non-primitive values as query parameters. This must have gotten past local devstack testing because the value was already cached via TieredCache, thus bypassing the code that actually calls the Discovery API.

ENT-9885

When passing a CourseLocator, fetching the content metadata from
Discovery fails because the requests library cannot handle
non-string or other non-primitive values as query parameters.  This must
have gotten past local devstack testing because the value was already
cached via TieredCache, thus bypassing the code that actually calls the
Discovery API.

ENT-9885
@pwnage101 pwnage101 force-pushed the pwnage101/ENT-9885-4 branch from c1f2281 to 3312122 Compare January 9, 2025 20:23
@pwnage101 pwnage101 merged commit a4e283c into main Jan 9, 2025
5 checks passed
@pwnage101 pwnage101 deleted the pwnage101/ENT-9885-4 branch January 9, 2025 20:30
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.

3 participants