feat(rover-ctl): support for get-info-many cmd#246
Merged
Conversation
Contributor
There was a problem hiding this comment.
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
ResourceHandlerinterface and generated mocks with a newInfoMany(ctx, names)method. - Implements
InfoManyin the commonBaseHandlerand wiresget-infoto call it when neither--namenor--fileis 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.
julius-malcovsky
previously approved these changes
Mar 16, 2026
…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
iagarba
approved these changes
Mar 17, 2026
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))
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.
No description provided.