nrkno / sofie-mos-connection

Sofie MOS Connection: A Part of the Sofie TV Studio Automation System
https://github.com/nrkno/Sofie-TV-automation/
MIT License
22 stars 14 forks source link

Bug Report: objID strings are incorrectly converted to number #92

Closed PeterC89 closed 2 weeks ago

PeterC89 commented 7 months ago

About me

This bug report is posted on behalf of the BBC

Observed Behavior

When ingesting a rundown with MOS objID's that look like numbers sofie-mos-connection incorrectly converts them to a number type. E.G: 100.543210 becomes 100.54321

I'm guessing that this is caused by the nativeType: true option for the parser, I'm not sure what impact changing it would have... https://github.com/nrkno/sofie-mos-connection/blob/a87681fed13d3379c41c78cd487606aabbf48128/packages/helper/src/utils/Utils.ts#L13

Expected Behavior

Data from a MOS device should remain of a valid type.

Version

release51

Severity / Impact

This is a significant blocker for us as our clip objIDs are numeric as above. A workaround has been implemented so this is less urgent but still an issue.

nytamin commented 6 months ago

Thank you for this bug report! We've had a little discussion on this in the Sofie team and we agree that this is an issue in the mos-connection library. We're not actively looking into this issue at the moment, as we haven't experienced the issues ourselves at NRK.

However, we'd welcome any PR to fix this issue and would happily coordinate or collaborate in making a fix.

olzzon commented 4 months ago

PR has been made for this fix: https://github.com/nrkno/sofie-mos-connection/pull/101

nytamin commented 2 weeks ago

This should now be resolved as of version v4.2.0-alpha.1, please reopen this if any issues persists,