Deprecation: Remove segmenttiming and break properties#1751
Deprecation: Remove segmenttiming and break properties#1751jesperstarkar wants to merge 7 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughThis PR removes the break timing and show-break features from the Sofie automation system. It eliminates the ChangesBreak Timing and Show Break Removal
🎯 4 (Complex) | ⏱️ ~60 minutes Possibly Related PRs
Suggested Labels
Suggested Reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
…st api spec. Also cleans up and comments rundowntiming.
jesperstarkar
left a comment
There was a problem hiding this comment.
I've read through and done a static analysis of all changes again. Updated OpenAPI Ingest API segment- and rundown-responses to match the API.
There was a problem hiding this comment.
🧹 Nitpick comments (1)
meteor/server/api/rest/v1/ingest.ts (1)
180-185: 💤 Low valueFix indentation: use tabs instead of spaces.
Static analysis indicates line 184 uses spaces instead of tabs for indentation, inconsistent with the project's formatting rules.
🔧 Fix indentation
timing: rawSegment.segmentTiming ? { - budgetDuration: rawSegment.segmentTiming.budgetDuration, + budgetDuration: rawSegment.segmentTiming.budgetDuration, countdownType: rawSegment.segmentTiming.countdownType, } : undefined,🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@meteor/server/api/rest/v1/ingest.ts` around lines 180 - 185, Indentation in the object assigned to the timing property uses spaces instead of tabs; update the block where timing: rawSegment.segmentTiming ? { ... } : undefined so that all nested lines (the lines referencing budgetDuration and countdownType and the closing braces for the conditional object) use tabs for indentation to match project style; locate the timing assignment around rawSegment.segmentTiming and convert the leading spaces before budgetDuration, countdownType and the corresponding braces to tabs.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@meteor/server/api/rest/v1/ingest.ts`:
- Around line 180-185: Indentation in the object assigned to the timing property
uses spaces instead of tabs; update the block where timing:
rawSegment.segmentTiming ? { ... } : undefined so that all nested lines (the
lines referencing budgetDuration and countdownType and the closing braces for
the conditional object) use tabs for indentation to match project style; locate
the timing assignment around rawSegment.segmentTiming and convert the leading
spaces before budgetDuration, countdownType and the corresponding braces to
tabs.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: e300a2fe-8c24-4860-a58c-7c2eb98d020d
📒 Files selected for processing (8)
meteor/server/api/rest/v1/ingest.tsmeteor/server/lib/rest/v1/ingest.tspackages/blueprints-integration/src/documents/segment.tspackages/openapi/src/__tests__/ingest.spec.tspackages/webui/src/client/lib/__tests__/rundownTiming.test.tspackages/webui/src/client/lib/rundownTiming.tspackages/webui/src/client/ui/RundownView/RundownTiming/RundownTimingProvider.tsxpackages/webui/src/client/ui/Settings/components/rundownLayouts/RundownViewLayoutSettings.tsx
💤 Files with no reviewable changes (2)
- packages/blueprints-integration/src/documents/segment.ts
- packages/webui/src/client/ui/Settings/components/rundownLayouts/RundownViewLayoutSettings.tsx
🚧 Files skipped from review as they are similar to previous changes (2)
- packages/openapi/src/tests/ingest.spec.ts
- packages/webui/src/client/lib/rundownTiming.ts
|



About the Contributor
From BBC, following Deprecation RFC
Type of Contribution
This is a: Code improvement
Current Behavior
Deprecation RFC #1720 describes and concludes the motivation.
New Behavior
Starting from removing
expectedStartandexpectedEndproperties from segmentTiming, working bottom-up removing all concepts and code for concepts spawning from these: rundownAnchors and breaks.The segmentTiming header component has been removed.
The breakSegment component has deliberately been left in place, ready to be re-used when a new native brak concept gets reintroduced.
Testing
Affected areas
Time Frame
Other Information
Status