#686 - Add verbose option for config show POOL#690
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdded an optional Changes
Sequence Diagram(s)sequenceDiagram
participant CLI as "CLI (show command)"
participant Parser as "Arg parser"
participant ConfigFn as "_get_current_config"
participant Service as "ServiceClient.request"
participant API as "Remote API"
CLI->>Parser: parse args (type, revision?, --verbose?)
Parser-->>CLI: parsed args
CLI->>ConfigFn: call with service_client, config_type, params?
ConfigFn->>Service: request(GET /config?type=...&verbose=true?)
Service->>API: HTTP GET with query params
API-->>Service: 200 OK + config payload
Service-->>ConfigFn: response
ConfigFn-->>CLI: return config or raise error (guard for non-POOL/historical verbose)
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/cli/config.py`:
- Around line 377-382: The code currently only rejects --verbose for
non-revision branches, so ensure you detect revision-style config inputs and
fail fast: if args.verbose is set and args.config represents a revision (e.g.,
contains ':' or otherwise denotes CONFIG:revision) raise
osmo_errors.OSMOUserError with a clear message (similar to the existing one)
instead of silently ignoring it; perform this check before calling
_get_current_config and before any revision-path logic so both POOL:3 or
SERVICE:3 forms trigger the same rejection as non-revision checks (use
args.verbose, args.config and the existing config_history.ConfigHistoryType
constants to guide placement).
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 6e82735a-63e1-4448-bc96-3578a5ec51d0
📒 Files selected for processing (1)
src/cli/config.py
5d27f3f to
a863312
Compare
Description
Add an option to show POOL config --verbose
Issue #686
Checklist
Summary by CodeRabbit
New Features
--verbose/-voption to the show command to produce enhanced output for POOL configurations.Bug Fixes
--verbosefrom being used with historical revisions and non-POOL types; now returns a clear error when invalid.Documentation