Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSTEAM1-1461: Fetch On Demand TV data from BFF #12188

Merged
merged 93 commits into from
Dec 6, 2024

Conversation

karinathomasbbc
Copy link
Contributor

@karinathomasbbc karinathomasbbc commented Nov 18, 2024

Resolves JIRA https://jira.dev.bbc.co.uk/browse/WSTEAM1-1461

Overall changes

Fetch On Demand TV from the BFF instead of from the json endpoint

Code changes

  • Update fetching of OD TV to use BFF instead of json endpoint
  • Remove logic which has been implemented in the BFF
  • Fix tests
  • Update fixture data for new output from BFF

Testing

Invoke the BFF instead of the JSON endpoint;
Implement toggles logic to determine the number of recent episodes to display
@karinathomasbbc karinathomasbbc self-assigned this Nov 18, 2024
@karinathomasbbc karinathomasbbc changed the title WSTEAM1-1461: Fetch On Demand TV data from BFF (DO NOT MERGE) WSTEAM1-1461: Fetch On Demand TV data from BFF Nov 28, 2024
@@ -58,7 +59,7 @@ const getCampaignID = (pageType: CampaignPageTypes) => {
[ARTICLE_PAGE]: 'article',
[MEDIA_ARTICLE_PAGE]: 'article-sfv',
[FRONT_PAGE]: 'index-home',
[MEDIA_PAGE]: 'player-episode-tv',
[MEDIA_PAGE]: 'player-episode',
Copy link
Contributor

Choose a reason for hiding this comment

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

was anything actually meant to be player-episode-tv?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See my comment here: https://paper.dropbox.com/doc/Test-Plan-On-Demand-Audio-TV-and-Live-Radio-pages-anBxRcoM9CiAJNdnkB6I1?t=948328379551413787286778#:t=948328379551413787286778

That said... might it need to be player-episode-tv for ATI when viewing a shared media component such as recent episodes or the radio schedule. Do we need to check with Product before we remove this?

Copy link
Contributor

@HarveyPeachey HarveyPeachey Dec 3, 2024

Choose a reason for hiding this comment

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

I guess lug it in with player-episode-tv -> player-episode-radio, as long as they're aware it's changing it should be fine

Base automatically changed from WSTEAM1-1347-fetch-ondemand-podcast-from-bff to latest December 4, 2024 09:31
@karinathomasbbc karinathomasbbc changed the title (DO NOT MERGE) WSTEAM1-1461: Fetch On Demand TV data from BFF WSTEAM1-1461: Fetch On Demand TV data from BFF Dec 4, 2024
@karinathomasbbc karinathomasbbc changed the base branch from latest to fetch-live-audio-data-on-test December 4, 2024 15:17
Base automatically changed from fetch-live-audio-data-on-test to latest December 4, 2024 17:08
@karinathomasbbc karinathomasbbc merged commit a7fefa1 into latest Dec 6, 2024
11 checks passed
@karinathomasbbc karinathomasbbc deleted the WSTEAM1-1461-simorgh-fetch-tv-from-bff branch December 6, 2024 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants