Skip to content

Conversation

@pjcdawkins
Copy link
Collaborator

Summary

Fixes CLI-60 where internal storage services like site---internal---storage couldn't be queried with the --service option in metrics commands.

Problem

Internal storage services appear in metrics data but not in the deployment structure. When users tried to filter by these services using --service site---internal---storage, the CLI would reject them with "No services were found matching the name(s)".

Solution

The fix takes a conservative approach by deriving internal storage service names from webapps in the deployment. For each webapp (e.g., site), we add site---internal---storage to the list of selectable services.

This ensures:

  • Only internal storage for actual webapps can be selected (strict validation maintained)
  • Wildcard patterns like --service site* match both site and site---internal---storage
  • Invalid service names are still rejected with a helpful error message

Changes

Modified src/Command/Metrics/MetricsCommandBase.php to build an expanded list of selectable service names that includes internal storage services for each webapp before performing wildcard selection.

Test Plan

  • Verify disk --service site---internal---storage works correctly
  • Verify wildcards like --service site* match internal storage
  • Verify invalid service names are still rejected

Generated with Claude Code (https://claude.com/claude-code)

Internal storage services like 'site---internal---storage' appear in metrics
data but not in the deployment structure. This change adds derived internal
storage service names for each webapp to the list of selectable services,
allowing them to be filtered with --service option while maintaining strict
validation.

Fixes CLI-60.

Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@pjcdawkins pjcdawkins closed this Nov 4, 2025
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