fix: converting pieces to infinites and modifying them#1614
fix: converting pieces to infinites and modifying them#1614ianshade wants to merge 4 commits intoSofie-Automation:mainfrom
Conversation
…es dynamically converted to infinites
It was an artificial limitation
… in the current part it was an artificial limitation those pieces are not recreated by `syncInfinitesForNextPartInstance` as previously believed
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Very excited about this, would save a lot of copying work that we currently do in |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
About the Contributor
This pull request is posted on behalf of TV 2 Norge.
Type of Contribution
This is a:
Bug fix (+removal of some arbitrary limitations)
Current Behavior
There were a few blockers when trying to dynamically convert pieces to infinites:
onSetAsNexthad an hardcoded check that threw an error if you tried to update a piece in the current part.updatePieceInstance, the piece would disappear after the next take.New Behavior
updatePieceInstancefor pieces in the current part fromonSetAsNext.lifespanis updated to anything other thanWithinPart,PlayoutPieceInstanceModelnow runssetupPieceInstanceInfiniteProperties.dynamicallyConvertedToInfiniteto thePieceInstancemodel to allowgetPlayheadTrackingInfinitesForPartto correctly identify and persist these pieces.PartAndPieceInstanceActionServiceso that infinite continuations can be updated as long as they belong to the current part instance.Testing
Affected areas
onSetAsNextcontext.Time Frame
Other Information
Status