forked from nrkno/sofie-core
-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: processIngestData & userEditOperations SUPERFLY-2 #5
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…eRundownFromIngestData
…-processIngestData
Julusian
changed the title
feat: 'overrides' SUPERFLY-2
feat: 'user edit operations' SUPERFLY-2
Sep 30, 2024
Julusian
changed the base branch from
upstream-release51
to
bbc-release51-3
September 30, 2024 12:51
Julusian
changed the base branch from
bbc-release51-3
to
upstream-release51
September 30, 2024 12:52
…ve` property inside `userEditOperations`
Julusian
changed the title
feat: 'user edit operations' SUPERFLY-2
feat: processIngestData & userEditOperations SUPERFLY-2
Sep 30, 2024
Julusian
added a commit
that referenced
this pull request
Oct 18, 2024
Co-authored-by: olzzon <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
About the Contributor
Type of Contribution
This is a Feature
New Behavior
This lays the groundwork for 'overrides'.
As far as I am aware, the backend portion of this is implemented, and works.
Large portions of the ingest flow have been rewritten/refactored to achieve this, which has resulted in this being a very large change.
Currently, this exposes a user action for the user facing operations, but no ui to trigger it
Note: naming of the feature and methods is not final, and might still be changed.
The core of this feature is that blueprints have a new method that they can optionally implement called
processIngestData
.This method serves a few purposes:
IngestRundown
. It can split/merge/invent Parts or Segments, or copy data between them without worrying about impacting ingest performance. Changes are tracked to minimise what needs to be run throughgetSegment
.As part of this, it is now the responsibility of this method to ensure that ingest changes are pulled into the
IngestRundown
correctly. There is a methodcontext.defaultApplyIngestChanges
which can do this for you, or you can customise the behaviour by doing something different.IngestRundown
. How this gets done and persisted is entirely up to the blueprint. It needs to figure that out, and figure out persistence when other ingest changes are made (if persistence beyond that is even wanted).As a side effect of this, the grouping of MOS stories into segments has been rewritten to be another method that can be used inside of
processIngestData
. If implementing the method, the mos grouping will have to be applied manually when desired.If
processIngestData
is not implemented, core uses the default implementation of, which will match previous behaviour:The user operations are triggered by a new userAction
executeUserChangeOperation
. Where this is used and the exact payload is not very well defined yet, that will be done as part of figuring out the ui design.Testing Instructions
Time Frame
Other Information
This should be squashed when merging.
When contributing upstream, it will need to be broken up into multiple smaller PRs so that each chunk can be reviewed and merged independently. I have a rough plan on how it can be broken up for that
There is an example crude simple ui prototyped at feat/blueprint-processIngestData...bbc:sofie-core:wip/user-overrides-ui
This adds some context menu options for parts and segments:
And a form driven one:
Status