feat: add GetDynamicDashboard to DashboardService - #441
Open
NickJosevski wants to merge 1 commit into
Open
Conversation
DashboardService had no methods, so the dynamic dashboard endpoint was unreachable from the SDK. DashboardDynamicQuery and DashboardItem already existed. Adds GetDynamicDashboard and the Dashboard response type it returns. ProjectLimit is a pointer so callers can tell an uncapped dashboard from one capped at zero. Backs OctopusDeploy/cli#305. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
NickJosevski
force-pushed
the
nj/dashboard-dynamic
branch
from
August 10, 2026 06:51
b500823 to
732ddb0
Compare
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.
Change
DashboardServicehad no methods, so the dynamic dashboard endpoint was unreachable.DashboardDynamicQueryandDashboardItemalready existed.Adds
GetDynamicDashboard(query)and theDashboardresponse type it returns. Gives the release currently deployed to each environment, filterable by project and environment, optionally including the previous deployment.ProjectLimitis a*intso callers can tell an uncapped dashboard from one capped at zero.GetDashboardfor the non-dynamic endpoint is still unimplemented.Notes
Path expansion sits in an unexported helper so it can be tested without HTTP. The dynamic dashboard has its own link, so it is parsed directly rather than through
GetURITemplate.The link template comma-joins list params. Both that and repeated params were checked against a live server and give the same results.
Tests
Unit tests cover URI expansion and deserialisation, the latter pinned to a captured response.
Also run end to end against a live instance through a prototype CLI command: filters by name and by ID,
--include-previous, and tenanted deployments.Backs OctopusDeploy/cli#305.
🤖 Generated with Claude Code