Files
coder/coderd
Spike Curtis 9fe52826da feat: send include_related from WorkspaceByOwnerAndName options (#29908)
Stacked on #29855.

Wires `WorkspaceOptions.IncludeRelated` through
`codersdk.Client.WorkspaceByOwnerAndName`. The method now applies
`params.asRequestOption()` (matching `Client.Workspace`), so the
`include_related` query parameter is sent to the server. Previously it
only forwarded `include_deleted` and silently dropped `IncludeRelated`.

- `include_deleted` behavior is unchanged: `asRequestOption` sets it
when true; the server treats an omitted value the same as `false`.
- Updated the `TemplateOnly` and `LatestBuildOnly` subtests of
`TestWorkspaceByOwnerAndNameIncludeRelated` to drive narrowing through
the SDK method and its options, exercising the wiring end to end.
Option-level encoding is already covered by
`TestWorkspaceOptionsAsRequestOption`.

_This PR was created by Coder Agents on behalf of @spikecurtis._
2026-10-26 12:59:53 +01:00
..