Skip to content

feat(rover-ctl): support for get-info-many cmd#246

Merged
ron96g merged 3 commits into
mainfrom
feat/rover-ctl-get-info-many
Mar 17, 2026
Merged

feat(rover-ctl): support for get-info-many cmd#246
ron96g merged 3 commits into
mainfrom
feat/rover-ctl-get-info-many

Conversation

@ron96g
Copy link
Copy Markdown
Member

@ron96g ron96g commented Dec 10, 2025

No description provided.

Copilot AI review requested due to automatic review settings March 16, 2026 13:23
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds client-side support in rover-ctl for retrieving “info” for multiple resources (including the no-args “get all” use case), alongside the underlying handler interface/API updates.

Changes:

  • Extends the ResourceHandler interface and generated mocks with a new InfoMany(ctx, names) method.
  • Implements InfoMany in the common BaseHandler and wires get-info to call it when neither --name nor --file is provided.
  • Adjusts pre-request patch hooks to be nil-tolerant for rover/apispec handlers.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
rover-ctl/test/mocks/mock_ResourceHandler.go Regenerated mock to include InfoMany and bump mockery version.
rover-ctl/test/mocks/mock_ResetSecretHandler.go Regenerated mock to include InfoMany and bump mockery version.
rover-ctl/pkg/handlers/v0/rover.go Makes PatchRoverRequest nil-safe (important with changed hook execution).
rover-ctl/pkg/handlers/v0/apispec.go Makes PatchApiSpecificationRequest nil-safe (important with changed hook execution).
rover-ctl/pkg/handlers/interface.go Adds InfoMany to the ResourceHandler contract.
rover-ctl/pkg/handlers/common/base_handler.go Adds InfoMany, refactors info request execution, and changes hook execution behavior in SendRequest.
rover-ctl/pkg/commands/get-info/cmd.go Allows running without --name/--file and calls InfoMany to fetch info for all resources.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread rover-ctl/pkg/handlers/common/base_handler.go Outdated
Comment thread rover-ctl/pkg/commands/get-info/cmd.go
Comment thread rover-ctl/pkg/handlers/common/base_handler.go
…erver-side name filtering

- Fix query parameter key from 'name' (singular) to 'names' (plural) to
  match the OpenAPI spec, and use url.Values for proper URL encoding
- Add nil guard in PatchEventSpecificationRequest to prevent nil
  dereference when SendRequest hooks run without an object
- Implement server-side filtering by params.Names in GetApplicationsInfo
  so the names query parameter is actually applied
- Add tests for the getInfoMany code path (no --name/--file flags) and
  for server-side name filtering
- Fix copy-paste comment and remove extra blank line
@ron96g ron96g merged commit 1d9f194 into main Mar 17, 2026
214 of 215 checks passed
@ron96g ron96g deleted the feat/rover-ctl-get-info-many branch March 17, 2026 10:20
dtit-semantic-release Bot pushed a commit that referenced this pull request Mar 18, 2026
# [0.18.0](v0.17.0...v0.18.0) (2026-03-18)

### Bug Fixes

* **common-server:** race-condition and security improvements ([#272](#272)) ([9d08e02](9d08e02))
* **gateway:** add deny-all sentinel to ACL plugin when no consumers exist ([#277](#277)) ([0dd6017](0dd6017))

### Features

* **common-libs:** improve error handling, add feature flags, and fix logger type ([#260](#260)) ([03165a0](03165a0))
* **common-server:** unify latency format in logs ([#267](#267)) ([5fbb19e](5fbb19e))
* **gateway:** add buffering config, dynamic upstream, access control fix, and secret-manager integration ([#259](#259)) ([719c58f](719c58f))
* introduce event-driven communication to the control plane ([#265](#265)) ([f1ed1f5](f1ed1f5))
* **rover-ctl:** add EventSpec handler, env placeholder substitution, and HTTP client improvements ([#264](#264)) ([f15e0f7](f15e0f7))
* **rover-ctl:** support for get-info-many cmd ([#246](#246)) ([1d9f194](1d9f194))
* **secret-manager:** add write strategy support and improve caching ([#263](#263)) ([3f311bf](3f311bf))
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.

4 participants