Skip to content

Conversation

Fweddi
Copy link
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.

Copy link

github-actions bot 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).
Copy link

github-actions bot 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 added the run_chromatic Runs chromatic when label is applied label 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 removed 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 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
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Oct 2, 2025
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