sofie-mos-connection
sofie-mos-connection copied to clipboard
WIP: objId was parsed as a number, and thus removed e.g. 00
About the Contributor
This PR was made on behalf of BBC
Type of Contribution
Bug Fix for https://github.com/nrkno/sofie-mos-connection/issues/92
Current Behavior
If ObjID was a string that could be converted to a number (e.g. 00123.45600) all 00 around it would be removed.
New Behavior
In xml2Js there's now a Set called forcedStringObject
where all object name in it will be forced to be converted as a string.
Testing Instructions
Create an obj with objID as a number, and ingest.
Helper Tests has also been updated for this.
Status
- [ ] 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.