nrkno / sofie-core

Sofie Core: A Part of the Sofie TV Studio Automation System
https://github.com/nrkno/Sofie-TV-automation/
MIT License
125 stars 38 forks source link

feat: add import/export support to config object tables SOFIE-3138 #1194

Closed Julusian closed 4 months ago

Julusian commented 4 months ago

About the Contributor

This pull request is posted on behalf of the NRK.

Type of Contribution

This is a: Feature

New Behavior

This adds support for import/export for a json schema object table. It is opt in per-table by setting ui:import-export to true.

Screenshot from 2024-05-21 15-30-32

When importing, it is possible to append to the existing table (replacing any rows with id colliisons), or replace the contents Screenshot from 2024-05-21 15-30-26

To make this possible the OverrideOpHelper had to be reworked, as it was designed to perform a single change operation and wait for that to sync to meteor and back to the ui before performing the next. At first I did try to add the batching as an extra portion, but that became quite messy to implement

Testing

Affected areas

Time Frame

Other Information

Status

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 58.08%. Comparing base (c5a6292) to head (3254610).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## feat/R51-live-status-gateway-on-R50 #1194 +/- ## ======================================================================= - Coverage 58.09% 58.08% -0.02% ======================================================================= Files 483 483 Lines 79492 79492 Branches 4011 3136 -875 ======================================================================= - Hits 46182 46174 -8 - Misses 33286 33312 +26 + Partials 24 6 -18 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.