Skip to content

feat(cli): suggest fact table columns from an explicit schema - #129

Draft
rtiman-spotify wants to merge 4 commits into
spotify:mainfrom
rtiman-spotify:cli-column-suggestions
Draft

rtiman-spotify wants to merge 4 commits into
spotify:mainfrom
rtiman-spotify:cli-column-suggestions

Conversation

@rtiman-spotify

Copy link
Copy Markdown

Summary

Adds data fact-tables suggest-columns --from-file schema.json through the existing Metrics SuggestFactTableColumns HTTP API. Reuses the existing fact-table command group, validates explicit schema metadata and returns proposed mappings without creating or certifying resources.

Dependencies

Depends on #123 and transitively #122. The fork branch contains those exact commits; its main-targeted diff includes the prerequisites until they land. Kept draft; do not merge out of order. There is no duplicate fact-table command group or CRUD implementation.

Safety and limits

Accepts schema column names, optional supported enum types and repeated flags; rejects rows, unknown fields and new column annotations. Handles suggestion/error oneofs and treats application errors on HTTP 200 as failures. It sends no sample rows, performs no writes and never silently starts an onboarding workflow. Auth-free dry-run makes no HTTP/model requests.

Verification

Node 24, pnpm build and full pnpm qa passed. Focused MSW command/input coverage includes schema validation, regional/profile auth, HTTP/application errors, malformed results and auth-free dry-run. Existing E2E regression runs in CI. No live API/model compatibility claim.

Checklist

  • Local build/typecheck/lint/unit tests passed
  • CLI documentation and example updated
  • New behavior/regression tests added
  • TUI screenshots (not applicable)

Related: https://spotify.atlassian.net/browse/SLMD-1921.

rtiman-spotify and others added 4 commits October 19, 2026 15:30
Co-Authored-By: Xirp Agent (gpt-6.1-sol) <xirp-agent@users.noreply.ghe.spotify.net>
Co-Authored-By: Xirp Agent (gpt-6.1-sol) <xirp-agent@users.noreply.ghe.spotify.net>
Co-Authored-By: Xirp Agent (gpt-6.1-sol) <xirp-agent@users.noreply.ghe.spotify.net>
Co-Authored-By: Xirp Agent (gpt-6.1-sol) <xirp-agent@users.noreply.ghe.spotify.net>
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.

1 participant