sofie-core icon indicating copy to clipboard operation
sofie-core copied to clipboard

SOFIE-47 | add automatic configuration of peripheral devices if there is only 1 studio

Open anteeek opened this issue 1 month ago • 2 comments

About the Contributor

superfly.tv

Type of Contribution

This is a:

Feature

Current Behavior

Currently, a new device needs to be manually configured after first launch & discovery by Sofie

New Behavior

This PR adds automatic configuration of the new device, attaching it to the studio, but only if there is exactly 1 studio configured

Testing

  • [x] I have added one or more unit tests for this PR
  • [ ] I have updated the relevant unit tests
  • [ ] No unit test changes are needed for this PR

Affected areas

This PR affects the behavior of Sofie after a new device connects for the first time

Time Frame

Not urgent, but we would like to get this merged into the in-development release

Other Information

Status

  • [x] PR is ready to be reviewed.
  • [x] The functionality has been tested by the author.
  • [x] Relevant unit tests has been added / updated.
  • [x] Relevant documentation (code comments, system documentation) has been added / updated.

anteeek avatar Dec 02 '25 22:12 anteeek

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

:x: Patch coverage is 90.24390% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
meteor/server/api/peripheralDevice.ts 90.24% 4 Missing :warning:

:loudspeaker: Thoughts on this report? Let us know!

codecov-commenter avatar Dec 02 '25 22:12 codecov-commenter

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

sonarqubecloud[bot] avatar Dec 02 '25 23:12 sonarqubecloud[bot]