[BI-2267]Trim trailing white space on breeding method file uploads (FAILED QA)#399
Merged
[BI-2267]Trim trailing white space on breeding method file uploads (FAILED QA)#399
Conversation
nickpalladino
approved these changes
Sep 5, 2024
dmeidlin
approved these changes
Sep 6, 2024
7b719db to
766ed06
Compare
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.
Description
BI-2267 Trim trailing white space on breeding method file uploads (FAILED QA)
THE BUG caused by the new code for BI-2267
IF the he Breeding Method field in the germplasm import file has the value "Bulk or population " (with a trailing blank),
THEN the import fails with an erroneous "Invalid Breeding Method" error.
BACKGROUND
namecolumn in thebreeding_methodtable exactly.breeding_methodtable has a trailing blank in thenamecolumn; "Bulk or population ".Solution
Two fixes were made. Either one would fix the immediate problem, but both solutions are present for completeness and to prevent future problems.
breeding_methodtable.namecolumn in thebreeding_methodtable, now includesDSL.trim().Dependencies
bi-web: develop
Testing
Expected Result
It should import without errors.
Checklist: