Skip to content

Workspace group display in workspace commands#11851

Open
officialasishkumar wants to merge 1 commit into
radius-project:mainfrom
officialasishkumar:fix/workspace-display-group
Open

Workspace group display in workspace commands#11851
officialasishkumar wants to merge 1 commit into
radius-project:mainfrom
officialasishkumar:fix/workspace-display-group

Conversation

@officialasishkumar
Copy link
Copy Markdown
Contributor

Description

rad workspace list and rad workspace show did not show the resource group even though the workspace scope contains it. This adds a GROUP column to the shared workspace table formatter and derives the displayed group name from the workspace scope. Structured workspace data remains unchanged.

The change also adds a scope-specific resource group transformer and coverage for the workspace formatter and transformer.

Type of change

  • This pull request fixes a bug in Radius and has an approved issue (issue link required).

Fixes: #9805

Contributor checklist

Please verify that the PR meets the following requirements, where applicable:

  • An overview of proposed schema changes is included in a linked GitHub issue.
    • Yes
    • Not applicable
  • A design document is added or updated under eng/design-notes/ in this repository, if new APIs are being introduced.
    • Yes
    • Not applicable
  • The design document has been reviewed and approved by Radius maintainers/approvers.
    • Yes
    • Not applicable
  • A PR for resource-types-contrib is created, if resource types or recipes are affected by the changes in this PR.
    • Yes
    • Not applicable
  • A PR for dashboard is created, if the Radius Dashboard is affected by the changes in this PR.
    • Yes
    • Not applicable
  • A PR for the documentation repository is created, if the changes in this PR affect the documentation or any user facing updates are made.
    • Yes
    • Not applicable

Add a GROUP column to rad workspace list and rad workspace show. The new table output derives the group name from the workspace scope while preserving the stored scope value for structured output.\n\nFixes: radius-project#9805

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
Copilot AI review requested due to automatic review settings May 11, 2026 18:51
@officialasishkumar officialasishkumar requested review from a team as code owners May 11, 2026 18:51
@officialasishkumar officialasishkumar requested a deployment to external-contributor-approval May 11, 2026 18:51 — with GitHub Actions Waiting
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

This PR fixes missing resource group visibility in the CLI workspace commands by adding a GROUP column to the shared workspace table formatter and deriving the displayed group name from the workspace Scope (without changing the underlying structured workspace data).

Changes:

  • Add ResourceScopeToResourceGroupNameTransformer to map a workspace scope ID to its resource group name for table display.
  • Add a GROUP column to the shared WorkspaceFormat() table output used by rad workspace list / rad workspace show.
  • Add/update unit tests covering the new transformer and the updated workspace table formatting.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pkg/cli/objectformats/transformers.go Adds a scope-specific transformer to extract a resource group name from a scope ID for table display.
pkg/cli/objectformats/transformers_test.go Adds unit tests for the new scope-to-group-name transformer.
pkg/cli/cmd/workspace/show/show_test.go Updates workspace test fixtures to include Scope so group can be displayed.
pkg/cli/cmd/workspace/list/list_test.go Updates workspace test fixtures to include Scope so group can be displayed.
pkg/cli/cmd/workspace/common/objectformats.go Adds the GROUP column to the shared workspace table formatter and wires in the transformer.
pkg/cli/cmd/workspace/common/objectformats_test.go Updates the expected rendered table output to include the new GROUP column.

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.

Usability: rad workspace show and rad workspace list do not show the group

2 participants