Conversation
OpenAPI ChangesShow/hide 26 changes: 14 error, 6 warning, 6 infoUnexpected changes? Ensure your branch is up-to-date with |
79406fa to
87532e4
Compare
shanbady
requested changes
Jan 9, 2026
webhooks/views_test.py
Outdated
|
|
||
| settings.APP_BASE_URL = "https://learn.mit.edu/" | ||
| settings.VIDEO_SHORTS_S3_PREFIX = "youtube_shorts" | ||
| settings.VIDEO_SHORTS_S3_PREFIX = "shorts" |
Contributor
There was a problem hiding this comment.
the default in settings.py for VIDEO_SHORTS_S3_PREFIX has a trailing slash - should be one or the other
Member
Author
There was a problem hiding this comment.
This setting is now irrelevant here anyway (it's only needed for the api.walk_video_shorts_from_s3 function) so I removed it here and elsewhere, and paramaterized prefix for one of the walk_video_shorts_from_s3 tests.
video_shorts/api.py
Outdated
Contributor
There was a problem hiding this comment.
for consistency with how we instantiate boto resources elsewhere this should be instantiated via settings (which in turn should/does grab this value from the env)
s3 = boto3.resource(
"s3",
aws_access_key_id=settings.AWS_ACCESS_KEY_ID,
aws_secret_access_key=settings.AWS_SECRET_ACCESS_KEY,
)df8e1ba to
f881409
Compare
This was referenced Jan 13, 2026
Closed
Closed
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What are the relevant tickets?
Related to:
Description (What does it do?)
Refactors video_shorts model, serializers, views to align with changes to the dagster video_shorts pipeline in ol-data-platform:
How can this be tested?
With your docker containers running, run the following from a python shell on your host OS (not docker):
To test the management command:
./manage.py backpopulate_video_shorts- you should end up with 12 VideoShort objects at http://open.odl.local:8063/api/v0/video_shorts/The openapi CI failure is due to breaking changes in the v0 video_shorts API, I think that is okay, it is not used outside mit-learn itself.