Skip to content

chore: remove unused UpstreamGroup type#107

Merged
rdimitrov merged 1 commit into
mainfrom
sprout-tune
May 14, 2026
Merged

chore: remove unused UpstreamGroup type#107
rdimitrov merged 1 commit into
mainfrom
sprout-tune

Conversation

@rdimitrov
Copy link
Copy Markdown
Member

Summary

  • Removes UpstreamData.Groups field and the UpstreamGroup struct from registry/types/upstream_registry.go. These were tagged "optional, for future use" and never populated or consumed — converters only wrote an empty slice.
  • Drops the corresponding groups block from registry/types/data/upstream-registry.schema.json and the validateGroupServers branch from the schema validator.
  • The unrelated internal Registry.Groups / Group type in registry/types/registry_types.go (actively used via GetAllGroups, GetGroupByName, GetAllGroupServers) is untouched.

Net diff: 8 insertions, 282 deletions across 6 files.

Downstream follow-ups

After this merges, two empty-slice literals in toolhive-registry-server need to be dropped (no behavior change):

  • internal/registry/testutils_upstream.go:28
  • internal/sources/api_upstream.go:201

No usages in toolhive or dockyard.

Test plan

  • task lint — registry packages clean (0 issues)
  • task testregistry/types and registry/converters pass with -race
  • Verify downstream toolhive-registry-server build picks up the type removal cleanly when bumped

🤖 Generated with Claude Code

The UpstreamData.Groups field and UpstreamGroup struct were never
populated or consumed — converters only wrote an empty slice and the
ToolHive Registry.Groups (which is unrelated and still in use) covers
the grouping concept internally. Drop the unused type, the schema
groups property, and the dependent validator branch.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@rdimitrov rdimitrov merged commit 970f779 into main May 14, 2026
5 checks passed
@rdimitrov rdimitrov deleted the sprout-tune branch May 14, 2026 15:38
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