Skip to content

Handle subtitles asset type#14533

Merged
Fweddi merged 10 commits into
mainfrom
fp/handle-subtitles-asset-type
Oct 6, 2025
Merged

Handle subtitles asset type#14533
Fweddi merged 10 commits into
mainfrom
fp/handle-subtitles-asset-type

Conversation

@Fweddi
Copy link
Copy Markdown
Contributor

@Fweddi Fweddi commented Sep 19, 2025

📌 Why are you doing this?

We are adding a new subtitles asset type to media atoms (guardian/content-atom#178). Currently parts of DCR assume the asset type of media atoms to be video.

We need to explicitly filter out subtitles assets, so we don't accidentally try to pass a subtitles asset to a video player (as if it were a video).

Notes

It's possible we haven't been exhaustive with all the cases where we need to add a filter. We will need to be on the look out for such cases in future.

Comment thread apps-rendering/src/atoms.ts Outdated
@github-actions
Copy link
Copy Markdown

ghost commented Sep 29, 2025

Fweddi added a commit to guardian/scrooge-extras that referenced this pull request Oct 1, 2025
Scrooge 22.2.0 brought in a breaking change where reserved keywords in Thrift were strictly enforced (https://twitter.github.io/scrooge/changelog.html#id13)

This causes issues downstream in content-api-models which uses the reserved keyword 'end' (https://github.com/guardian/content-api-models/blob/main/models/src/main/thrift/content/v1.thrift#L399-L400).

The long-term solution is to rename the 'end' field to 'endDate' (see guardian/content-api#2903), but in the short term we need to unblock the release of the apps-rendering-api-models library, which is currently failing. Releasing this library will allow us to support the new Subtitles asset type in DCR (guardian/dotcom-rendering#14533).
Fweddi added a commit to guardian/scrooge-extras that referenced this pull request Oct 1, 2025
Scrooge 22.2.0 brought in a breaking change where reserved keywords in Thrift were strictly enforced (https://twitter.github.io/scrooge/changelog.html#id13)

This causes issues downstream in content-api-models which uses the reserved keyword 'end' (https://github.com/guardian/content-api-models/blob/main/models/src/main/thrift/content/v1.thrift#L399-L400).

The long-term solution is to rename the 'end' field to 'endDate' (see guardian/content-api#2903), but in the short term we need to unblock the release of the apps-rendering-api-models library, which is currently failing. Releasing this library will allow us to support the new Subtitles asset type in DCR (guardian/dotcom-rendering#14533).
Fweddi added a commit to guardian/scrooge-extras that referenced this pull request Oct 1, 2025
Scrooge 22.2.0 brought in a breaking change where reserved keywords in Thrift were strictly enforced (https://twitter.github.io/scrooge/changelog.html#id13)

This causes issues downstream in content-api-models which uses the reserved keyword 'end' (https://github.com/guardian/content-api-models/blob/main/models/src/main/thrift/content/v1.thrift#L399-L400).

The long-term solution is to rename the 'end' field to 'endDate' (see guardian/content-api#2903), but in the short term we need to unblock the release of the apps-rendering-api-models library, which is currently failing. Releasing this library will allow us to support the new Subtitles asset type in DCR (guardian/dotcom-rendering#14533).
Fweddi added a commit to guardian/scrooge-extras that referenced this pull request Oct 2, 2025
Scrooge 22.2.0 brought in a breaking change where reserved keywords in Thrift were strictly enforced (https://twitter.github.io/scrooge/changelog.html#id13)

This causes issues downstream in content-api-models which uses the reserved keyword 'end' (https://github.com/guardian/content-api-models/blob/main/models/src/main/thrift/content/v1.thrift#L399-L400).

The long-term solution is to rename the 'end' field to 'endDate' (see guardian/content-api#2903), but in the short term we need to unblock the release of the apps-rendering-api-models library, which is currently failing. Releasing this library will allow us to support the new Subtitles asset type in DCR (guardian/dotcom-rendering#14533).
@github-actions
Copy link
Copy Markdown

ghost commented Oct 2, 2025

@Fweddi Fweddi added run_chromatic Runs chromatic when label is applied and removed run_chromatic Runs chromatic when label is applied labels Oct 2, 2025
@Fweddi Fweddi marked this pull request as ready for review October 2, 2025 13:53
@Fweddi Fweddi requested a review from a team as a code owner October 2, 2025 13:53
@Fweddi Fweddi added run_chromatic Runs chromatic when label is applied and removed run_chromatic Runs chromatic when label is applied labels Oct 2, 2025
@Fweddi Fweddi force-pushed the fp/handle-subtitles-asset-type branch from 7c01f3b to a026504 Compare October 2, 2025 13:54
@Fweddi Fweddi added the run_chromatic Runs chromatic when label is applied label Oct 2, 2025
@Fweddi Fweddi force-pushed the fp/handle-subtitles-asset-type branch from 4ce9a0e to 3582fbf Compare October 6, 2025 11:01
@Fweddi Fweddi force-pushed the fp/handle-subtitles-asset-type branch from 3582fbf to a9c34e3 Compare October 6, 2025 11:11
@Fweddi Fweddi added the run_chromatic Runs chromatic when label is applied label Oct 6, 2025
@Fweddi Fweddi merged commit fde87c0 into main Oct 6, 2025
32 checks passed
@Fweddi Fweddi deleted the fp/handle-subtitles-asset-type branch October 6, 2025 11:16
@gu-prout
Copy link
Copy Markdown

gu-prout Bot commented Oct 6, 2025

Seen on PROD (merged by @Fweddi 8 minutes ago) Please check your changes!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants