Skip to content

refactor(client): move internal/http to client/http and internal/version to client/types/version - #110

Merged
grubmeshi merged 1 commit into
mainfrom
public-client-http
Nov 25, 2026
Merged

grubmeshi merged 1 commit into
mainfrom
public-client-http

Conversation

@grubmeshi

Copy link
Copy Markdown
Collaborator

What it does

Moves the HTTP client and the version type into client/, so that another module (the Terraform provider, the building block runner) can name the HTTP client, its request options and the version type that client/ already uses in its exported API.

Review

Mechanical: the files move unchanged, apart from import paths. This includes the imports of the user and workspace user group clients that came with main. The development skill now says that HTTP lives in client/http.

Place in the stack

1 of 6. Base: main. Next: profile-resolution.

🤖 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 1053040244b8a7672b04073086d086e396950b59.

Scope Coverage
Unit tests 78.0%
Acceptance tests 53.3%
Combined 82.5%
Uncovered functions
client/api_key.go:52: meshApiKeyClient.Create 0.0%
client/api_key.go:56: meshApiKeyClient.Read 0.0%
client/api_key.go:60: meshApiKeyClient.Update 0.0%
client/api_key.go:64: meshApiKeyClient.Delete 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:71: MeshBuildingBlockDefinitionApprovalPolicies.NothingRequiresApproval 0.0%
client/building_block_definition.go:82: DisabledSchedule 0.0%
client/building_block_definition.go:89: MeshBuildingBlockDefinitionSchedule.IsDisabled 0.0%
client/building_block_definition.go:93: MeshBuildingBlockDefinitionSpec.HasNeutralPolicies 0.0%
client/building_block_definition.go:97: MeshBuildingBlockDefinitionSpec.WithNeutralPolicies 0.0%
client/building_block_definition.go:166: meshBuildingBlockDefinitionClient.List 0.0%
client/building_block_definition.go:173: meshBuildingBlockDefinitionClient.Read 0.0%
client/building_block_definition.go:177: meshBuildingBlockDefinitionClient.Create 0.0%
client/building_block_definition.go:181: meshBuildingBlockDefinitionClient.Update 0.0%
client/building_block_definition.go:185: meshBuildingBlockDefinitionClient.Delete 0.0%
client/building_block_definition_version.go:103: MeshBuildingBlockType.TagInputTargets 0.0%
client/building_block_definition_version.go:247: meshBuildingBlockDefinitionVersionClient.Create 0.0%
client/building_block_definition_version.go:256: meshBuildingBlockDefinitionVersionClient.Update 0.0%
client/building_block_definition_version_implementation.go:81: MeshBuildingBlockDefinitionImplementation.InferType 0.0%
client/building_block_definition_version_implementation.go:95: MeshBuildingBlockDefinitionImplementation.MarshalJSONTo 0.0%
... and 137 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.

@grubmeshi
grubmeshi added this pull request to stack #115 November 25, 2026 10:25
…ion to client/types/version

Another module can then name the HTTP client, its request options and the version type that
client/ already uses in its exported API. The files move unchanged, apart from import paths.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@grubmeshi
grubmeshi merged commit 1053040 into main Nov 25, 2026
14 checks passed
@grubmeshi
grubmeshi deleted the public-client-http branch November 25, 2026 15:16
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