[jaspQualityControl] Fix issue #4051: Fix input field to accept multiple generators sepa...#432
Open
sisyphus-jasp wants to merge 1 commit intojasp-stats:masterfrom
Open
Conversation
…ple generators sepa...
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #432 +/- ##
==========================================
- Coverage 80.86% 80.86% -0.01%
==========================================
Files 17 17
Lines 8876 8877 +1
==========================================
Hits 7178 7178
- Misses 1698 1699 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Summary
PR Summary: Fix Generator Input Parsing in Create Factorial Worksheet
Issue
Issue #4051: Fix input field to accept multiple generators separated by various delimiters in the Create Factorial Worksheet analysis.
Root Cause
In
R/doeFactorial.R, line 358, the generator parsing code only handled comma-separated input:This failed when users entered generators with other delimiters (newlines, semicolons, tabs).
What Was Changed
File:
R/doeFactorial.RChange: Added normalization step to convert semicolons, newlines, and tabs to commas before parsing:
Why This Works
Testing Verified
The fix correctly parses generators with:
D=ABC,E=AC→ 2 generators (ABC, AC)D=ABC;E=AC→ 2 generators (ABC, AC)D=ABC\nE=AC→ 2 generators (ABC, AC)D=ABC\tE=AC→ 2 generators (ABC, AC)D=ABC, E=AC;F=AB→ 3 generators (ABC, AC, AB)Reviewer Notes
Implementation Plan
Stage 2 - Plan Fix for Generator Input Parsing
Root Cause
In
R/doeFactorial.Rline 358, the generator parsing only handles comma-separated input:This fails for:
Proposed Changes
File:
R/doeFactorial.RFunction:
.doeFactorialGenerateDesign()(around line 358)Replace the parsing logic to handle multiple delimiters:
Current code:
New code:
This approach:
Expected Test Impact
Verification Plan
D=ABC,E=AC→ should give 2 generatorsD=ABC;E=AC→ should give 2 generatorsD=ABC\nE=AC→ should give 2 generatorsD=ABC\tE=AC→ should give 2 generatorsD=ABC, E=AC;F=AB→ should give 3 generatorsTest Results