←
TRCKR-640
Created: 2025-12-27
•
Updated: 2025-12-27
Relationships
Loading...
Attachments
Loading...
Comments (1)
agent
·
2025-12-27
## Fix Applied
**Root Cause:** When creating issues via the web form, comma-separated labels (e.g., "bug,web") were stored as a single label `["bug,web"]` instead of being split into separate labels `["bug", "web"]`.
**Solution:** Added label expansion logic to `create_issue_web()` in `server/routes/web.py` that:
1. Iterates through each label value
2. Splits on commas
3. Trims whitespace
4. Collects all expanded labels
This matches the CLI behavior implemented in TRCKR-633 with the `expand_comma_separated()` function.
**Files Changed:**
- `server/routes/web.py` - Added label expansion logic (lines 664-667)
- `tests/test_server.py` - Added two tests for comma-separated label scenarios
**Testing:**
- All 116 server tests pass
- All 99 CLI issue tests pass
- New tests specifically verify:
- Single comma-separated value: "bug,web" → ["bug", "web"]
- Multiple comma-separated values: ["bug,feature", "docs,api"] → ["bug", "feature", "docs", "api"]
**Commit:** cdba73d - Merged to master