Skip to content

feat: add cases command group and additional v2.54.0 enhancements#13

Merged
platinummonkey merged 1 commit into
mainfrom
new-features
Feb 10, 2026
Merged

feat: add cases command group and additional v2.54.0 enhancements#13
platinummonkey merged 1 commit into
mainfrom
new-features

Conversation

@platinummonkey
Copy link
Copy Markdown
Collaborator

Summary

Additional enhancements building on PR #12, completing the v2.54.0 API client feature implementation. This PR adds the complex case management system and final polish including linting fixes and documentation updates.

Built on top of: #12 (merged)

🆕 New Features

Cases Command Group (618 lines) ✨

Complete case management system for tracking and resolving customer issues, bugs, and internal requests.

Case Operations:

  • create - Create cases with title, type, priority (P1-P5), description
  • get - Retrieve case details
  • search - Search/filter cases with pagination
  • archive / unarchive - Archive and reopen cases
  • assign - Assign cases to users
  • update-title - Modify case titles
  • update-priority - Change case priorities

Project Operations:

  • projects list - List all projects
  • projects get - Get project details
  • projects create - Create new projects with name and key
  • projects delete - Delete projects with confirmation

Features:

  • Priority system: P1 (Critical), P2 (High), P3 (Medium), P4 (Low), P5 (Lowest), NOT_DEFINED
  • Search with filter, pagination, and sorting
  • User assignment workflow
  • Project-based organization
  • Confirmation prompts for destructive operations

File: cmd/cases.go (618 lines)

🔧 Additional Improvements

Linting Fixes

  • Removed unused findingsPageNumber variable from cmd/security.go
  • All golangci-lint checks now passing (0 issues)

Documentation Updates

  • Updated README.md API coverage: 33 → 37 command groups
  • Updated coverage percentage: 38.8% → 43.5%
  • Removed all "Blocked" statuses (7 commands unblocked)
  • Updated all feature detail panes with current implementation status
  • Updated API client version references: v2.30.0 → v2.54.0

📊 Final Statistics

Metric Before PR #12 After This PR Total Change
Command Groups 30 37 +7
Working Commands 26 34 +8
Blocked Commands 7 0 -7
Coverage % 35.3% 43.5% +8.2%

📁 Files Changed

New Files (1)

  • cmd/cases.go (618 lines) - Complete case management system

Modified Files (3)

  • cmd/security.go (-1 line) - Removed unused variable
  • cmd/root.go (+1 line) - Registered cases command
  • docs/COMMANDS.md (+4 lines) - Added cases documentation
  • README.md (~51 lines changed) - Updated all feature coverage sections

🎯 Command Examples

Cases Management

# Create a critical bug case
pup cases create --title="Production bug" --type-id="abc-123" --priority=P1 --description="Database connection failing"

# Search for bugs
pup cases search --query="bug" --page-size=20

# Assign to team member
pup cases assign case-123 --user-id="user-uuid"

# Update priority
pup cases update-priority case-123 --priority=P2

# Archive resolved case
pup cases archive case-123

# Project management
pup cases projects create --name="Customer Issues" --key="CUST"
pup cases projects list

✅ Testing Checklist

  • All commands compile without errors
  • Help text displays correctly for all commands
  • Command hierarchy properly structured
  • Required flags are enforced
  • Confirmation prompts work for destructive operations
  • --yes flag skips confirmations
  • --output flag supports json/yaml/table formats
  • All linting checks pass (golangci-lint: 0 issues)
  • Documentation is comprehensive and accurate
  • README.md feature coverage updated

🎊 Impact

Completes v2.54.0 Implementation:

  • ✅ All 4 new command groups implemented (app-keys, cost, product-analytics, cases)
  • ✅ All 6 command enhancements completed
  • ✅ All 7 blocked commands unblocked
  • ✅ 100% code quality (0 linting issues)
  • ✅ Documentation fully updated

User Benefits:

  • Complete case management for issue tracking
  • Organized case workflows with projects
  • Priority-based case management (P1-P5)
  • Search and filter capabilities
  • User assignment and collaboration
  • Consistent CLI patterns across all commands

🔗 Related


🤖 Generated with Claude Code

Update API coverage details to reflect all implemented features from
datadog-api-client-go v2.54.0 upgrade.

COVERAGE UPDATE:
- Updated from 33 → 37 command groups (38.8% → 43.5% coverage)
- Working commands: 23 → 34
- Removed all 'Blocked' status (7 commands unblocked)
- Updated API client version: v2.30.0 → v2.54.0

SECTION UPDATES:

Core Observability (5 → 6 implemented):
- Events: ⚠️ → ✅ (now fully working)
- RUM: ⚠️ → ✅ (added metrics/retention-filters support)

Monitoring & Alerting (6 implemented):
- Monitors: Added search capability

Security & Compliance (4 → 6 implemented):
- Security Monitoring: Enhanced with findings get/search
- Vulnerabilities: ⚠️ → ✅ (unblocked)
- Static Analysis: ⚠️ → ✅ (unblocked)
- Audit Logs: ⚠️ → ✅ (unblocked)

Infrastructure & Cloud (5 → 6 implemented):
- Tags: ⚠️ → ✅ (unblocked)

Incident & Operations (5 → 6 implemented):
- Incidents: Added attachments support
- On-Call: Expanded to full team management with CRUD + memberships
- Case Management: ❌ → ✅ (new, complete system with projects)

CI/CD & Development (1 implemented):
- CI Visibility: ⚠️ → ✅ (unblocked)

Organization & Access (4 → 5 implemented):
- App Keys: Added new command group for Action Connections

Platform & Configuration (4 → 7 implemented):
- Usage Metering: ⚠️ → ✅ (unblocked)
- Cost Management: Added new command group
- Product Analytics: Added new command group

All feature detail panes now reflect current implementation status
with accurate command listings and notes.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@platinummonkey platinummonkey requested a review from a team as a code owner February 10, 2026 04:35
@platinummonkey platinummonkey merged commit 656b5cb into main Feb 10, 2026
4 checks passed
@platinummonkey platinummonkey deleted the new-features branch February 10, 2026 04:36
@github-actions
Copy link
Copy Markdown

📊 Test Coverage Report

Overall Coverage: 75.4% Coverage

Threshold: 80% ❌

Coverage by Package
## Coverage by Package

- github.com/DataDog/pup/pkg/auth/callback/server.go:40: 81.2%
- github.com/DataDog/pup/pkg/auth/dcr/client.go:28: 100.0%
- github.com/DataDog/pup/pkg/auth/dcr/types.go:24: 100.0%
- github.com/DataDog/pup/pkg/auth/oauth/client.go:22: 100.0%
- github.com/DataDog/pup/pkg/auth/oauth/pkce.go:24: 85.7%
- github.com/DataDog/pup/pkg/auth/storage/factory.go:53: 94.7%
- github.com/DataDog/pup/pkg/auth/storage/keychain.go:44: 42.9%
- github.com/DataDog/pup/pkg/auth/storage/storage.go:58: 71.4%
- github.com/DataDog/pup/pkg/auth/types/types.go:23: 100.0%
- github.com/DataDog/pup/pkg/client/client.go:31: 94.1%
- github.com/DataDog/pup/pkg/config/config.go:22: 100.0%
- github.com/DataDog/pup/pkg/formatter/formatter.go:31: 100.0%
- github.com/DataDog/pup/pkg/util/time.go:20: 95.8%

## Summary

total:								(statements)		75.4%

📈 Coverage Status: ❌ FAILED - Coverage below minimum threshold

Updated for commit 056b055

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.

1 participant