Run docker compose run web ./manage.py update_video_on_edx --all --chunk-size 1000 to backfill all the videos in chunks default to 1000
Run docker compose run web ./manage.py update_video_on_edx --video-key <UUID> to backfill a specific video's duration to edx
What are the relevant tickets?
https://github.com/mitodl/hq/issues/3896
Description (What does it do?)
This adds a new management command to backfill all the video duration to their associated edx endpoints
API used in this PR is https://courses-qa.mitxonline.mit.edu/api-docs/#/val/val_v0_videos_partial_update
12114 videos will be updated on production https://bi.odl.mit.edu/queries/1365
How can this be tested?
Run
docker compose run web ./manage.py update_video_on_edx --all --chunk-size 1000
to backfill all the videos in chunks default to 1000 Rundocker compose run web ./manage.py update_video_on_edx --video-key <UUID>
to backfill a specific video's duration to edx