Skip to content

Conversation

@lennartkats-db
Copy link
Contributor

@lennartkats-db lennartkats-db commented Dec 23, 2025

Summary

Refactors apps-mcp warehouse selection to use the shared cfgpickers.GetDefaultWarehouse function from #4170.

  • This is a PR stacked on top of the above PR; it needs to be changed to target main before merging

lennartkats-db and others added 6 commits December 23, 2025 16:30
- Add `SelectWarehouse` function with state-sorted picker (running first)
- Add `GetDefaultWarehouse` function for determining default warehouse
- Add `Format` field to JSON schema for custom input types
- Use `format: "warehouse_path"` in default-sql and dbt-sql templates
- Update apps-mcp to use shared `GetDefaultWarehouse` logic
- Fix case-insensitive search in cmdio Select

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

Co-Authored-By: Claude <noreply@anthropic.com>
- Add filter support to SelectWarehouse (variadic warehouseFilter)
- Show warehouse type (pro/classic/serverless) in gray lowercase
- Make [DEFAULT] marker gray
- Sort by state priority then alphabetically for default selection
- Display list sorted by running state first, then alphabetically

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

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@lennartkats-db lennartkats-db requested a review from a team as a code owner December 23, 2025 16:02
Base automatically changed from default-warehouse-in-templates to main December 31, 2025 08:55
@lennartkats-db lennartkats-db added this pull request to the merge queue Dec 31, 2025
Merged via the queue into main with commit de47c12 Dec 31, 2025
15 checks passed
@lennartkats-db lennartkats-db deleted the refactor-default-warehouse branch December 31, 2025 09:03
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.

3 participants