Skip to content

Comments

fix: auto-resolve IDs and strip ObjectID prefixes#171

Merged
yuaanlin merged 1 commit intomainfrom
fix/log-ux-and-objectid-prefix
Feb 18, 2026
Merged

fix: auto-resolve IDs and strip ObjectID prefixes#171
yuaanlin merged 1 commit intomainfrom
fix/log-ux-and-objectid-prefix

Conversation

@yuaanlin
Copy link
Member

Summary

  • ObjectID() auto-strips prefixes like service-, project-, environment-, deployment- so users can pass prefixed IDs directly
  • deployment log --service-id now resolves projectID and environmentID from the service itself, instead of relying on context (which may point to a different project)
  • Auto-resolve environmentID across all commands (deployment get/list, service delete/expose/metric/redeploy/restart/suspend, update tag) since environments are deprecated
  • Refactored log API to match backend GraphQL schema (subscription takes projectID, serviceID, environmentID)
  • Use graphql-ws protocol for WebSocket subscriptions

Test plan

  • deployment log --service-id service-xxx returns logs from the correct project
  • go build ./... passes
  • go test ./... passes

🤖 Generated with Claude Code

- ObjectID() now auto-strips prefixes (e.g. "service-xxx" → "xxx") so
  users can pass prefixed IDs without errors
- Log command resolves projectID and environmentID from serviceID instead
  of relying on context (which may point to a different project)
- Refactored log API to use proper subscription parameters (projectID,
  serviceID, environmentID) matching backend GraphQL schema
- Auto-resolve environmentID across all commands that need it (deploy,
  service operations) since environments are deprecated
- Use graphql-ws protocol for WebSocket subscriptions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@yuaanlin yuaanlin merged commit c4af2db into main Feb 18, 2026
3 checks passed
@yuaanlin yuaanlin deleted the fix/log-ux-and-objectid-prefix branch February 18, 2026 17: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.

1 participant