You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* What about this new concept. The aim here is to avoid the constant inserting and deleting of expectedPackages during playout, and avoiding duplicate packages with the same content.
58
-
* The idea is to have a single expectedPackage for each 'content'.
59
-
* Ingest will 'deduplicate' the packages produced by the blueprints, with playout able to reference them with pieceInstanceIds.
60
-
*
61
-
* During the ingest save phase, it will need to reload the `playoutSources` property, in case it has changed. And if there are uses remaining, it will need to keep the package after clearing the `ingestSources`.
62
-
* During playout operations, pieceInstanceIds will be added and removed as needed. If there remains no sources (of either type), then the document can be removed. If an in-progress ingest tried to reclaim it, it will get reinserted.
63
-
*
64
-
* Playout can then load just the ones referenced by piece instances, and just before it needs to use them (for bluerpint types or something), can ensure that everything needed has been loaded.
65
-
* During a take, any packages referenced by the previous(?) partinstance must be removed.
66
-
* When doing a reset of the rundown, all playout references must be removed.
67
-
* When inserting/removing pieceinstances, the expectedPackages must be updated.
68
-
*/
69
41
exportinterfaceExpectedPackageDBNew{
70
42
_id: ExpectedPackageId// derived from rundownId and hash of `package`
71
43
@@ -159,7 +131,11 @@ export type ExpectedPackageIngestSource =
159
131
|ExpectedPackageIngestSourceBucket
160
132
|ExpectedPackageIngestSourceStudioBaseline
161
133
162
-
exportfunctiongetExpectedPackageId(
134
+
/**
135
+
* Generate the expectedPackageId for the given piece instance.
136
+
* Note: This will soon be replaced with a new flow based on the contentVersionHash once shared ownership is implemented.
0 commit comments