fix(clp-package): Ensure --count and --count-by-time arguments are mutually exclusive in sbin search scripts (fixes #1859).#1871
Merged
Conversation
… exclusive in sbin search scripts (fixes y-scope#1859).
Contributor
WalkthroughAdds mutual exclusivity validation to two CLI search script entry points. When both Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
gibber9809
approved these changes
Jan 15, 2026
gibber9809
left a comment
Contributor
There was a problem hiding this comment.
LGTM. For the PR title how about:
fix(clp-package): Ensure `--count` and `--count-by-time` arguments are mutually exclusive in sbin search scripts (fixes #1859).
--count and --count-by-time are mutually exclusive in sbin search scripts (fixes #1859).--count and --count-by-time arguments are mutually exclusive in sbin search scripts (fixes #1859).
davidlion
pushed a commit
to davidlion/clp
that referenced
this pull request
Jan 17, 2026
…e mutually exclusive in sbin search scripts (fixes y-scope#1859). (y-scope#1871)
junhaoliao
added a commit
to junhaoliao/clp
that referenced
this pull request
May 17, 2026
…e mutually exclusive in sbin search scripts (fixes y-scope#1859). (y-scope#1871)
junhaoliao
added a commit
to junhaoliao/clp
that referenced
this pull request
May 17, 2026
…e mutually exclusive in sbin search scripts (fixes y-scope#1859). (y-scope#1871)
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.
Description
Adds validation to reject using
--countand--count-by-timetogether insearch.sh, as these options are mutually exclusive. Previously, using both options together would cause aKeyError: 'group_tags'because the second option'sAggregationConfigwould overwrite the first one's configuration.Checklist
breaking change.
Validation performed
./sbin/compress.sh --timestamp-key timestamp ~/samples/postgresql.jsonl--countand--count-by-timenow fails with a clear error message:./sbin/search.sh --count --count-by-time 1 "*"--countworks individually:./sbin/search.sh --count "*"--count-by-timeworks individually:./sbin/search.sh --count-by-time 60000 "*"->
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.