feat: support alternate xlsx header formats and auto-load .env#1
Merged
jeremyeder merged 1 commit intomainfrom Mar 20, 2026
Merged
feat: support alternate xlsx header formats and auto-load .env#1jeremyeder merged 1 commit intomainfrom
jeremyeder merged 1 commit intomainfrom
Conversation
Add HEADER_ALIASES so build_db.py accepts both original column names (e.g. "Miro Team Name") and alternate formats (e.g. "Scrum Team Name (miro)", "Jira Filter (Team reference)"). Auto-detect the xlsx file whose sheets match the configured TAB_ORG_MAP. Load .env via python-dotenv so GPS_TAB_ORG_MAP and other config is picked up without manual sourcing. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
Cache: Disabled due to data retention organization setting Knowledge base: Disabled due to data retention organization setting WalkthroughAdded python-dotenv as a runtime dependency. Updated scripts/build_db.py to optionally load environment variables from .env, replaced static header list with aliases mapping, improved header matching logic, and refined XLSX discovery to prefer files with matching worksheet names. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
jeremyeder
added a commit
that referenced
this pull request
Mar 23, 2026
Add HEADER_ALIASES so build_db.py accepts both original column names (e.g. "Miro Team Name") and alternate formats (e.g. "Scrum Team Name (miro)", "Jira Filter (Team reference)"). Auto-detect the xlsx file whose sheets match the configured TAB_ORG_MAP. Load .env via python-dotenv so GPS_TAB_ORG_MAP and other config is picked up without manual sourcing. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
HEADER_ALIASESso build_db.py accepts both original and alternate column names (e.g. "Scrum Team Name (miro)", "Jira Filter (Team reference)")TAB_ORG_MAP.envviapython-dotenvso config is picked up without manual sourcingTest plan
scripts/test.sh— 11/11 passing🤖 Generated with Claude Code