Skip to content
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

WIP: objId was parsed as a number, and thus removed e.g. 00 #101

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

olzzon
Copy link
Contributor

@olzzon olzzon commented May 6, 2024

About the Contributor

This PR was made on behalf of BBC

Type of Contribution

Bug Fix for
#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.
  • The functionality has been tested by the author.
  • Relevant unit tests has been added / updated.
  • Relevant documentation (code comments, system documentation) has been added / updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant