Skip to content

fix: never send empty tag names from --tags#84

Merged
satvik007 merged 3 commits into
mainfrom
fix/empty-tags
Jul 22, 2026
Merged

fix: never send empty tag names from --tags#84
satvik007 merged 3 commits into
mainfrom
fix/empty-tags

Conversation

@ramilamparo

@ramilamparo ramilamparo commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Issue: --tags "" on test-cases update sent [""] to the API, which created a tag with an empty title instead of clearing the case's tags.

  • transformTCaseFields now trims tag names and drops empty entries, so --tags "" (and stray commas like --tags "a,,b") never produce empty tag names.
  • --tags "" sends an empty tags array on both create and update: a no-op on create, and clears all tags on update (the backend treats a non-nil empty array as "clear").
  • Documented the clearing behavior in the --tags help text.

--tags "" sent [""] to the API, creating a tag with an empty title
(Hypersequent/tms-issues#2668). Tag names are now trimmed and empty
entries dropped, so --tags "" sends an empty array — a no-op on
create, and clears all tags on update.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@claude

claude Bot commented Jul 21, 2026

Copy link
Copy Markdown

Claude finished @ramilamparo's task in 2m 50s —— View job


Code Review: fix: never send empty tag names from --tags

  • Gather PR context and diff
  • Launch specialized review subagents
  • Aggregate findings and post review
  • Clean up outdated bot comments

Result: Approved. The fix is clean and well-scoped — trim + filter in transformTCaseFields handles all edge cases correctly, tests cover both create and update paths, and no issues were found across code quality, security, performance, or test coverage.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Clean, well-scoped fix. The trim + filter approach in transformTCaseFields correctly handles all edge cases (empty string, whitespace-only tags, consecutive commas, trailing commas). Tests cover both create and update paths with empty and messy input. No issues found across code quality, security, performance, or test coverage.

@ramilamparo
ramilamparo marked this pull request as ready for review July 21, 2026 11:50
@claude

claude Bot commented Jul 21, 2026

Copy link
Copy Markdown

Claude finished @ramilamparo's task in 1m 13s —— View job


Code Review: fix: never send empty tag names from --tags

  • Gather PR context and diff
  • Launch specialized review subagents
  • Aggregate findings and post review
  • Clean up outdated bot comments

@satvik007

Copy link
Copy Markdown
Collaborator

@ramilamparo Update minor package version

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@claude

claude Bot commented Jul 21, 2026

Copy link
Copy Markdown

Code Review: fix: never send empty tag names from --tags

  • Gather PR context and diff
  • Launch specialized review subagents
  • Aggregate findings and post review
  • Clean up outdated bot comments

View job run

@claude

claude Bot commented Jul 21, 2026

Copy link
Copy Markdown

Claude finished @ramilamparo's task in 1m 8s —— View job


Code Review: fix: never send empty tag names from --tags

  • Gather PR context and diff
  • Launch specialized review subagents
  • Aggregate findings and post review
  • Clean up outdated bot comments

@ramilamparo
ramilamparo requested a review from hi-rai July 21, 2026 12:38
@satvik007
satvik007 merged commit 5fa22dc into main Jul 22, 2026
3 checks passed
@satvik007
satvik007 deleted the fix/empty-tags branch July 22, 2026 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants