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

fix(Client): Piece-dependency for expectedDuration calculation causes the Diff to be inconsistent (SOFIE-3004) #1163

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

jstarpl
Copy link
Member

@jstarpl jstarpl commented Mar 4, 2024

About the Contributor

This PR is posted on behalf of the NRK.

Type of Contribution

This is a:

Bug fix

Current Behavior

Calculating the Diff requires knowing all Part's expectedDurations, that means that in order to calculate the Diff, one needs to have all the Pieces for a Playlist loaded. The GUI trims down the amount of data it needs in local cache ("minimongo") in order to maximize performance, and as such, will only have some Pieces loaded at any given time. The Presenters' screen for example will only have the Pieces for the current and next Part loaded. This causes the Diff to be different on the Presenters' screen and in the Rundown View. The Diff in the Rundown View changes as the user scrolls around the page.

New Behavior

The expectedDuration calculation does not consider Pieces prerolls. This will introduce minimal (in real-life scenarios) innacuracies in the calculation, but at least will make the Diff counter consistent.

Testing Instructions

  • Open Rundown View
  • Open Presenter screen
  • Make sure if the Diff is consistent

Time Frame

  • This Bug Fix is critical for us, please review and merge it as soon as possible.

Other Information

Status

  • PR is ready to be reviewed.
  • The functionality has been tested by the author.
  • Relevant unit tests has been added / updated.
  • Relevant documentation (code comments, system documentation) has been added / updated.

@jstarpl jstarpl requested a review from a team March 4, 2024 16:57
@jstarpl jstarpl linked an issue Mar 4, 2024 that may be closed by this pull request
@jstarpl jstarpl changed the title fix(Client): Piece-dependency for expectedDuration calculation causes the Diff to be inconsistent fix(Client): Piece-dependency for expectedDuration calculation causes the Diff to be inconsistent (SOFIE-3004) Mar 4, 2024
Copy link

codecov bot commented Mar 4, 2024

Codecov Report

Attention: Patch coverage is 72.00000% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 58.01%. Comparing base (391bfc4) to head (c862582).
Report is 8 commits behind head on release50.

Files Patch % Lines
meteor/client/lib/rundown.ts 40.00% 3 Missing ⚠️
packages/corelib/src/playout/timings.ts 0.00% 3 Missing ⚠️
meteor/client/lib/rundownTiming.ts 94.11% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##           release50    #1163      +/-   ##
=============================================
- Coverage      58.29%   58.01%   -0.28%     
=============================================
  Files            480      480              
  Lines          79094    79060      -34     
  Branches        4152     3119    -1033     
=============================================
- Hits           46107    45866     -241     
- Misses         32930    33189     +259     
+ Partials          57        5      -52     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jstarpl jstarpl merged commit 0559563 into release50 Mar 5, 2024
67 of 70 checks passed
@jstarpl jstarpl deleted the fix/piece-dependent-diff branch March 5, 2024 11:03
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.

Bug Report: Diff Different between (SOFIE-3004)
2 participants