Skip to content

Revert "Move self-hosted video dimensions to Source object"#15577

Merged
abeddow91 merged 2 commits intomainfrom
revert-15556-doml/sh-move-dimensions-model
Mar 23, 2026
Merged

Revert "Move self-hosted video dimensions to Source object"#15577
abeddow91 merged 2 commits intomainfrom
revert-15556-doml/sh-move-dimensions-model

Conversation

@abeddow91
Copy link
Copy Markdown
Contributor

@abeddow91 abeddow91 commented Mar 23, 2026

This PR reverts #15556.

This is breaking the aspect ratio of in article videos by making any aspect ratio (except for 5:3) appear letter boxed in a 5:3 container. This is the behaviour for front cards but should not be the experience in article.

@github-actions
Copy link
Copy Markdown

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

@abeddow91 abeddow91 added the maintenance Departmental tracking: maintenance work, not a fix or a feature label Mar 23, 2026
@abeddow91 abeddow91 requested a review from simonbyford March 23, 2026 17:51
@abeddow91 abeddow91 added the run_chromatic Runs chromatic when label is applied label Mar 23, 2026
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Mar 23, 2026
Copy link
Copy Markdown
Contributor

@simonbyford simonbyford left a comment

Choose a reason for hiding this comment

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

Looks fine 👍

@abeddow91 abeddow91 merged commit 4dd0044 into main Mar 23, 2026
29 checks passed
@abeddow91 abeddow91 deleted the revert-15556-doml/sh-move-dimensions-model branch March 23, 2026 18:03
@gu-prout
Copy link
Copy Markdown

gu-prout bot commented Mar 23, 2026

Seen on PROD (merged by @abeddow91 7 minutes and 56 seconds ago) Please check your changes!

abeddow91 added a commit that referenced this pull request Mar 23, 2026
abeddow91 added a commit that referenced this pull request Mar 24, 2026
…15578)

* Revert "Revert "Move self-hosted video dimensions to Source object" (#15577)"

This reverts commit 4dd0044.

* Add the aspect ratio to the source model and allow the sources to be sorted by mime type and then by width

* Make height and width required in enhance cards with a 0 fallback

* Prefer first source over first asset so that we always pick the head source that has been sorted and will be preferred by the player when setting the aspect ratio

* Generate schemas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Departmental tracking: maintenance work, not a fix or a feature Seen-on-PROD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants