Repository navigation
Conversation
Add `--tag`, `--search`, `--source` and `--state` to `cloud clickstack alert list`. Repeated flags are sent as repeated query parameters; `--source`/`--state` take the library enums' VALUES. The spec limits (32-character tags, 512-character search) are clap value-parser errors, and the 50-tag limit is a post-parse usage error on `alert list`, both before credentials. `--name` lookups keep paging through every alert unfiltered. Fixes #1472 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sdairs
force-pushed
the
claude/drift-1466-cli-clickstack
branch
from
November 17, 2026 16:45
9b1c4e4 to
1508d66
Compare
sdairs
changed the base branch from
claude/drift-1466-api-clickstack
to
claude/drift-1466-cli-postgres
November 17, 2026 16:45
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1472. CLI PR for the ClickStack part of #1466, stacked on #1478.
cloud clickstack alert listgains four filters:--tag(repeatable)--search--source saved_search|tile|inline(repeatable)--state ALERT|OK|INSUFFICIENT_DATA|DISABLED|PENDING(repeatable)--sourceand--statecome from the library enums'VALUES.searchat most 512, at most 50 tags. Clap can't cap how many times a flag repeats, so the 50-tag limit is checked after parsing, invalidate_post_parse.--namelookup still pages through all alerts unfiltered, so name resolution is unchanged.🤖 Generated with Claude Code
Note
Low Risk
Read-only CLI list filtering with local validation and tests; no changes to auth, writes, or credential handling beyond earlier usage checks.
Overview
cloud clickstack alert listnow supports server-side filters: repeatable--tag,--search,--source, and--state, with enum values driven from the API library’sVALUESlists.Filter inputs are validated in the CLI (per-tag/search length limits; at most 50 tags) so bad requests fail as usage errors (exit 2) before credentials are read. The 50-tag cap is enforced in
validate_post_parsevia a newclickstack_validation_errorhook, matching the existing ClickPipe pattern.List and paginated API calls pass the parsed filters through as query parameters.
--namealert resolution still pages the full unfiltered list. Tests cover clap parsing, limits, post-parse validation, wire query params, and the guide documents filter behavior.Reviewed by Cursor Bugbot for commit 1508d66. Bugbot is set up for automated code reviews on this repo. Configure here.