Skip to content

Remove video_shorts pipeline#2253

Open
mbertrand wants to merge 3 commits into
mainfrom
mb/rm_video_shorts
Open

Remove video_shorts pipeline#2253
mbertrand wants to merge 3 commits into
mainfrom
mb/rm_video_shorts

Conversation

@mbertrand
Copy link
Copy Markdown
Member

@mbertrand mbertrand commented May 26, 2026

Marking this as blocked until the mit-learn video shorts carousel has been displaying learning resources for a few days, to make sure everything works as expected.

What are the relevant tickets?

Closes mitodl/hq#11470

Description (What does it do?)

Removes the video_shorts pipeline from the learning_resources Dagster code location.

The replacement ovs_videos pipeline (assets + sensors) remains in place and is unaffected.

How can this be tested?

If you already have video_shorts materializations:

On this branch:

  1. docker compose up --build and wait for the learning_resources code location to come up.
  2. Confirm no video_shorts artifacts exist:
  3. Confirm the ovs_videos pipeline is still present:

@mbertrand mbertrand marked this pull request as ready for review May 26, 2026 21:16
Copilot AI review requested due to automatic review settings May 26, 2026 21:16
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes the legacy video_shorts Dagster pipeline from the learning_resources code location, including its assets/sensors/helpers and related local configuration, while keeping the replacement ovs_videos pipeline intact.

Changes:

  • Deletes video_shorts assets, sensors, and helper modules (Google Sheets + ffmpeg utilities).
  • Removes the Learn API client hook for video_shorts webhooks.
  • Drops VIDEO_SHORTS_* env var wiring from local dev configuration and removes video_shorts registrations from learning_resources/definitions.py.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/ol-orchestrate-lib/src/ol_orchestrate/resources/learn_api.py Removes the notify_video_shorts webhook client method.
docker-compose.yaml Removes VIDEO_SHORTS_* environment variables from the learning_resources code location container.
dg_projects/learning_resources/learning_resources/sensors/video_shorts.py Deletes all Video Shorts sensors/jobs definitions.
dg_projects/learning_resources/learning_resources/lib/video_processing.py Deletes ffmpeg-based thumbnail/compression helpers used by Video Shorts.
dg_projects/learning_resources/learning_resources/lib/google_sheets.py Deletes Google Sheets parsing/fetching helpers used by Video Shorts.
dg_projects/learning_resources/learning_resources/lib/contants.py Deletes Video Shorts thumbnail dimension constants module.
dg_projects/learning_resources/learning_resources/definitions.py Removes Video Shorts resources/assets/schedules/sensors/jobs from Dagster Definitions (but currently introduces a duplication issue).
dg_projects/learning_resources/learning_resources/assets/video_shorts.py Deletes all Video Shorts assets and partitions definitions.
.env.example Removes Video Shorts-related example env vars.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread dg_projects/learning_resources/learning_resources/definitions.py Outdated
Comment thread dg_projects/learning_resources/learning_resources/definitions.py Outdated
Address Copilot review on PR #2253:
- Drop duplicated `ovs_videos` sensor import block
- Drop second copy of `ovs_videos_api_job`, `ovs_videos_webhook_job`,
  and `ovs_videos_api_schedule`
- Remove unused `MIT_LEARN_BUCKET_SUFFIXES` constant

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Comment thread docker-compose.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants