Skip to content

Commit 054dcb1

Browse files
author
Mint de Wit
committed
Merge remote-tracking branch 'nrk/release52' into upstream/feat/properties-panel
2 parents 1ccaa20 + d718517 commit 054dcb1

File tree

212 files changed

+2727
-2060
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

212 files changed

+2727
-2060
lines changed

meteor/CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,29 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [1.51.6](///compare/v1.51.5...v1.51.6) (2025-01-14)
6+
7+
8+
### Features
9+
10+
* add more logging 8c16ce8
11+
12+
13+
### Bug Fixes
14+
15+
* Include previousPartInstance in check to orphan segments rather than remove them. 51b7104
16+
* only run onPart/PiecePlaybackStarted/Stopped on current, next or previous parts a9fe401
17+
* **PoGw:** filter log output to ensure that message field in JSONL output is never an object 0d2b844
18+
* set nextPartInstance to null if it's referring to a Segment that has been removed b1045f9
19+
* updatePartInstancesSegmentIds: take into account when multiple segments have been merged into one. b769157
20+
21+
### [1.51.5](///compare/v1.51.4...v1.51.5) (2025-01-07)
22+
23+
24+
### Bug Fixes
25+
26+
* **job-worker/playout:** Hold mode doesn't work at all a7d6999
27+
528
### [1.51.4](///compare/v1.51.3...v1.51.4) (2024-12-04)
629

730

meteor/__mocks__/defaultCollectionObjects.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ export function defaultStudio(_id: StudioId): DBStudio {
113113
allowHold: false,
114114
allowPieceDirectPlay: false,
115115
enableBuckets: false,
116+
enableEvaluationForm: true,
116117
}),
117118
_rundownVersionHash: '',
118119
routeSetsWithOverrides: wrapDefaultObject({}),

meteor/__mocks__/meteor.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,6 @@ export namespace MeteorMock {
195195
// but it'll do for now:
196196
return callAsync(methodName, ...args)
197197
}
198-
export function absoluteUrl(path?: string): string {
199-
return path + '' // todo
200-
}
201198
export function setTimeout(fcn: () => void | Promise<void>, time: number): number {
202199
return $.setTimeout(() => {
203200
Promise.resolve()

meteor/server/api/rest/v1/playlists.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ class PlaylistsServerAPI implements PlaylistsRestAPI {
275275
connection: Meteor.Connection,
276276
event: string,
277277
rundownPlaylistId: RundownPlaylistId,
278-
delta: number
278+
delta: number,
279+
ignoreQuickLoop?: boolean
279280
): Promise<ClientAPI.ClientResponse<PartId | null>> {
280281
return ServerClientAPI.runUserActionInLogForPlaylistOnWorker(
281282
this.context.getMethodContext(connection),
@@ -291,6 +292,7 @@ class PlaylistsServerAPI implements PlaylistsRestAPI {
291292
playlistId: rundownPlaylistId,
292293
partDelta: delta,
293294
segmentDelta: 0,
295+
ignoreQuickLoop,
294296
}
295297
)
296298
}

meteor/server/api/rest/v1/typeConversion.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ export function studioSettingsFrom(apiStudioSettings: APIStudioSettings): Comple
372372
allowHold: apiStudioSettings.allowHold ?? true, // Backwards compatible
373373
allowPieceDirectPlay: apiStudioSettings.allowPieceDirectPlay ?? true, // Backwards compatible
374374
enableBuckets: apiStudioSettings.enableBuckets ?? true, // Backwards compatible
375+
enableEvaluationForm: apiStudioSettings.enableEvaluationForm ?? true, // Backwards compatible
375376
}
376377
}
377378

@@ -396,6 +397,7 @@ export function APIStudioSettingsFrom(settings: IStudioSettings): Complete<APISt
396397
allowHold: settings.allowHold,
397398
allowPieceDirectPlay: settings.allowPieceDirectPlay,
398399
enableBuckets: settings.enableBuckets,
400+
enableEvaluationForm: settings.enableEvaluationForm,
399401
}
400402
}
401403

meteor/server/api/studio/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export async function insertStudioInner(organizationId: OrganizationId | null, n
5555
allowHold: false,
5656
allowPieceDirectPlay: false,
5757
enableBuckets: true,
58+
enableEvaluationForm: true,
5859
}),
5960
_rundownVersionHash: '',
6061
routeSetsWithOverrides: wrapDefaultObject({}),

meteor/server/api/userActions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ class ServerUserActionAPI
191191
eventTime: Time,
192192
rundownPlaylistId: RundownPlaylistId,
193193
partDelta: number,
194-
segmentDelta: number
194+
segmentDelta: number,
195+
ignoreQuickLoop: boolean | null
195196
) {
196197
return ServerClientAPI.runUserActionInLogForPlaylistOnWorker(
197198
this,
@@ -208,6 +209,7 @@ class ServerUserActionAPI
208209
playlistId: rundownPlaylistId,
209210
partDelta: partDelta,
210211
segmentDelta: segmentDelta,
212+
ignoreQuickLoop: ignoreQuickLoop ?? undefined,
211213
}
212214
)
213215
}

meteor/server/lib.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import fs from 'fs'
44
import path from 'path'
55
import { logger } from './logging'
66
import { stringifyError } from '@sofie-automation/shared-lib/dist/lib/stringifyError'
7+
import { Meteor } from 'meteor/meteor'
78

89
/** Returns absolute path to programs/server directory of your compiled application, without trailing slash. */
910
export function getAbsolutePath(): string {
@@ -27,7 +28,10 @@ export function extractFunctionSignature(f: Function): string[] | undefined {
2728
export type Translations = Record<string, string>
2829

2930
// The /public directory in a Meteor app
30-
export const public_dir = path.join(process.cwd(), '../web.browser/app')
31+
export const public_dir = Meteor.isProduction
32+
? path.join(process.cwd(), '../web.browser/app')
33+
: // In development, find the webui package and use its public directory
34+
path.join(process.cwd(), '../../../../../../packages/webui/public')
3135

3236
/**
3337
* Get the i18next locale object for a given `languageCode`. If the translations file can not be found or it can't be

meteor/server/lib/rest/v1/playlists.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,14 @@ export interface PlaylistsRestAPI {
109109
* @param event User event string
110110
* @param rundownPlaylistId Playlist to target.
111111
* @param delta Amount to move next point by (+/-)
112+
* @param ignoreQuickLoop When moving the next part it should ignore any of the boundaries set by the QuickLoop feature
112113
*/
113114
moveNextPart(
114115
connection: Meteor.Connection,
115116
event: string,
116117
rundownPlaylistId: RundownPlaylistId,
117-
delta: number
118+
delta: number,
119+
ignoreQuickLoop?: boolean
118120
): Promise<ClientAPI.ClientResponse<PartId | null>>
119121
/**
120122
* Moves the next Segment point by `delta` places. Negative values are allowed to move "backwards" in the script.

meteor/server/lib/rest/v1/studios.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,4 +221,5 @@ export interface APIStudioSettings {
221221
allowHold?: boolean
222222
allowPieceDirectPlay?: boolean
223223
enableBuckets?: boolean
224+
enableEvaluationForm?: boolean
224225
}

0 commit comments

Comments
 (0)