Skip to content

feat: rate limit CRUD ops from the CLI/TUI#4474

Open
mnafees wants to merge 3 commits into
mainfrom
nafees/cli-rl
Open

feat: rate limit CRUD ops from the CLI/TUI#4474
mnafees wants to merge 3 commits into
mainfrom
nafees/cli-rl

Conversation

@mnafees

@mnafees mnafees commented Jul 21, 2026

Copy link
Copy Markdown
Member

Description

Adds a new set of subcommands to manage rate limits from the CLI with hatchet rate-limits create, hatchet rate-limits update, `hatchet

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist

Changes have been:

  • Tested (unit, integration, or manually with steps specified)
  • Linted and formatted
  • Documented (where applicable)

🤖 AI Disclosure
  • I acknowledge that an LLM was used in the creation of this Pull Request, in accordance with Hatchet's AI_POLICY.md.
  • Details: [e.g. generating tests, writing docs]

@mnafees mnafees self-assigned this Jul 21, 2026
@vercel

vercel Bot commented Jul 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hatchet-docs Ready Ready Preview, Comment Jul 22, 2026 11:28am

Request Review

@github-actions github-actions Bot added the engine Related to the core Hatchet engine label Jul 21, 2026
@mnafees
mnafees requested a review from abelanger5 July 21, 2026 15:36
return client.NewFromConfigFile( //nolint:staticcheck
configFile,
client.WithLogger(logger), //nolint:staticcheck
client.WithTLSConfig(tlsConfig), //nolint:staticcheck

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I specifically added this after a local env var that I need for local dev was overriding the TLS behavior for my CLI. I think this makes sense to me but happy to debate on the design.

Comment thread pkg/client/admin.go
Comment on lines +583 to +590
case types.Day:
putParams.Duration = admincontracts.RateLimitDuration_DAY
case types.Week:
putParams.Duration = admincontracts.RateLimitDuration_WEEK
case types.Month:
putParams.Duration = admincontracts.RateLimitDuration_MONTH
case types.Year:
putParams.Duration = admincontracts.RateLimitDuration_YEAR

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

These were all missing and so it would always default to seconds, whoops 🤐

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

engine Related to the core Hatchet engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant