Merged
Conversation
Collaborator
Author
|
@bms63 Could you take a look at this one please |
added 2 commits
December 19, 2025 14:25
Merge branch '99-create-var-from-codelist-bugfix' of github.com:pharmaverse/metatools into 99-create-var-from-codelist-bugfix # Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
bms63
reviewed
Dec 19, 2025
bms63
reviewed
Dec 19, 2025
bms63
reviewed
Dec 19, 2025
Co-authored-by: Ben Straub <ben.x.straub@gsk.com>
added 4 commits
January 19, 2026 12:45
…averse/metatools into 99-create-var-from-codelist-bugfix
Collaborator
|
will you add this bugfix to News.md at the end of the sprint? looks good to me |
bms63
approved these changes
Jan 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #99
This bug occurred only when there were multiple values from a numeric type input column that were not present in the codelist i.e., values of 99 and 999 in the dataset but no appropriate record in the CT.
The fix just required placing a
cli::qty()check prior to the glue substitution that uses pluralization.This wasn't caught in testing because the test case only had a single value of wrong CT in the test dataset. I have expanded the test cases to include both single and multiple bad CT for both character and numeric input.