Skip to content

confgen(Merger/Scatter): support sheet name pattern and auto filter out duplicate sheets in multiple book name and sheet name patterns#341

Merged
wenchy merged 2 commits intomasterfrom
extend-sheet-specifier-pattern
Jan 6, 2026
Merged

confgen(Merger/Scatter): support sheet name pattern and auto filter out duplicate sheets in multiple book name and sheet name patterns#341
wenchy merged 2 commits intomasterfrom
extend-sheet-specifier-pattern

Conversation

…ut duplicate sheets in multiple book name and sheet name patterns
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 6, 2026

Codecov Report

❌ Patch coverage is 80.55556% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.15%. Comparing base (745eb1d) to head (bad8868).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
internal/importer/importer.go 80.43% 8 Missing and 1 partial ⚠️
internal/importer/readeroptions.go 66.66% 2 Missing and 1 partial ⚠️
internal/importer/xml.go 81.81% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #341      +/-   ##
==========================================
- Coverage   75.17%   75.15%   -0.02%     
==========================================
  Files          85       85              
  Lines        8567     8569       +2     
==========================================
  Hits         6440     6440              
- Misses       1561     1563       +2     
  Partials      566      566              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

// 2. exclude primary sheet, and auto filter out duplicate importers
// 3. special process for CSV filename pattern: "<BookName>#<SheetName>.csv"
func GetScatterImporters(ctx context.Context, inputDir, primaryBookName, sheetName string, scatterSpecifiers []string, subdirRewrites map[string]string) ([]ImporterInfo, error) {
func GetScatterImporters(ctx context.Context, inputDir, primaryBookName, primarySheetName string, sheetSpecifiers []string, subdirRewrites map[string]string) ([]ImporterInfo, error) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it possible to reuse same code between GetScatterImporters and GetMergerImporters?

@wenchy wenchy mentioned this pull request Jan 6, 2026
42 tasks
@wenchy wenchy merged commit a8db65f into master Jan 6, 2026
9 checks passed
@wenchy wenchy deleted the extend-sheet-specifier-pattern branch January 6, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants