Skip to content

feat: filter workspace user groups by egid and display name - #116

Merged
tfelix merged 1 commit into
mainfrom
feature/bd-2917-workspace-user-group-filters
Nov 26, 2026
Merged

tfelix merged 1 commit into
mainfrom
feature/bd-2917-workspace-user-group-filters

Conversation

@tfelix

@tfelix tfelix commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

🤖 Written by AI agent

A group binding needs the group's meshStack name. meshStack generates this name for a group that SCIM created, so a caller cannot derive it from the group in the identity provider. Today the only way to find it is to list every workspace user group.

meshStack's meshObject API now filters GET /api/meshobjects/meshworkspaceusergroups by egid (exact match) and displayName (exact, ignores case). This PR adds both filters to MeshWorkspaceUserGroupListFilter. An older meshStack ignores them.

The Terraform provider uses this for its new meshstack_workspace_user_group data source, on a branch with the same name.

🤖 Generated with Claude Code

@meshcloud-gh-actions

meshcloud-gh-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Coverage of the acceptance run against the meshStack backend, on de526ea69e59e3a8affa71d423005fc2fdc80c08.

Scope Coverage
Unit tests 79.0%
Acceptance tests 56.7%
Combined 83.5%
Uncovered functions
client/api_key.go:18: MeshApiKey.meshObjectId 0.0%
client/api_key_permissions.go:20: ApiKeyPermissions.AllCodes 0.0%
client/api_key_permissions.go:33: ApiKeyPermissions.WorkspaceCodes 0.0%
client/api_key_permissions.go:263: AllApiKeyPermissions 0.0%
client/api_key_permissions.go:267: WorkspacePermissionCodes 0.0%
client/binding_status.go:18: *MeshGroupBindingStatus.WaitsForApproval 0.0%
client/binding_status.go:22: *MeshUserBindingStatus.WaitsForApproval 0.0%
client/building_block_definition.go:68: MeshBuildingBlockDefinitionApprovalPolicies.NothingRequiresApproval 0.0%
client/building_block_definition.go:79: DisabledSchedule 0.0%
client/building_block_definition.go:86: MeshBuildingBlockDefinitionSchedule.IsDisabled 0.0%
client/building_block_definition.go:90: MeshBuildingBlockDefinitionSpec.HasNeutralPolicies 0.0%
client/building_block_definition.go:94: MeshBuildingBlockDefinitionSpec.WithNeutralPolicies 0.0%
client/building_block_definition.go:148: MeshBuildingBlockDefinition.meshObjectId 0.0%
client/building_block_definition_version.go:99: MeshBuildingBlockType.TagInputTargets 0.0%
client/building_block_definition_version.go:220: MeshBuildingBlockDefinitionVersion.meshObjectId 0.0%
client/building_block_definition_version.go:223: MeshBuildingBlockDefinitionVersion.meshObjectNoSortQuery 0.0%
client/building_block_run.go:138: meshBuildingBlockRunClient.Claim 0.0%
client/building_block_run.go:158: MeshBuildingBlockRun.Abort 0.0%
client/building_block_run.go:181: MeshBuildingBlockRun.meshObjectId 0.0%
client/building_block_run_source.go:64: meshBuildingBlockRunClient.RegisterSource 0.0%
client/building_block_run_source.go:73: meshBuildingBlockRunClient.UpdateSourceSteps 0.0%
client/building_block_run_source.go:78: meshBuildingBlockRunClient.DownloadArtifact 0.0%
client/building_block_run_source.go:87: meshBuildingBlockRunClient.UploadArtifact 0.0%
client/building_block_run_source.go:98: *cappedWriter.Write 0.0%
client/building_block_runner.go:67: MeshBuildingBlockRunner.meshObjectId 0.0%
... and 71 more

covdata func names a method without its receiver, so an entry can belong to an implementation nothing selects rather than to a function the tests never reached. Open the file and line before reading one as a coverage gap.

@tfelix
tfelix marked this pull request as ready for review November 25, 2026 12:41
@tfelix
tfelix requested a review from grubmeshi November 25, 2026 12:41
A binding to a SCIM group needs the group's meshStack name, which
meshStack generates. With these filters a caller finds it from the
external group ID instead of listing every group.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tfelix
tfelix force-pushed the feature/bd-2917-workspace-user-group-filters branch from 37050c5 to de526ea Compare November 26, 2026 08:51
@sonarqubecloud

Copy link
Copy Markdown

@tfelix
tfelix merged commit 83b370e into main Nov 26, 2026
14 checks passed
@tfelix
tfelix deleted the feature/bd-2917-workspace-user-group-filters branch November 26, 2026 09:34
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.

2 participants