feat(cli): drill-down workspace picker for parent-context resource types - #522
Draft
MarioCadenas wants to merge 1 commit into
Draft
feat(cli): drill-down workspace picker for parent-context resource types#522MarioCadenas wants to merge 1 commit into
MarioCadenas wants to merge 1 commit into
Conversation
Adds the chained picker for the 4 resource types that need parent context before their instances can be listed: - volume, uc_function: catalog -> schema -> resource - secret: scope -> key - vector_search_index: endpoint -> index - PARENT_CONTEXT_CHAINS declares each type's drill-down as ordered steps; each step builds its list command from prior picks. Positional-arg CLI form is used (databricks schemas list <CATALOG>, volumes list <CAT> <SCHEMA>, etc.). - The env provider walks the chain interactively via clack selects, falling back to free-text on cancel, empty level, or 'Enter manually' at any step. - Extracted runList so flat and drill-down share JSON parsing + failure handling. 14 new tests for depth, positional args, and each chain. Signed-off-by: MarioCadenas <MarioCadenas@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack 7/7 — base: `feat/registry-picker-flat`
What
Chained picker for the 4 resource types that need parent context before instances can be listed:
volume, uc_function: catalog → schema → resource
secret: scope → key
vector_search_index: endpoint → index
`PARENT_CONTEXT_CHAINS` declares each type's drill-down as ordered steps; each step builds its list command from prior picks. Uses positional-arg CLI form (`databricks schemas list `, `volumes list `).
The env provider walks the chain via clack selects, falling back to free-text on cancel, empty level, or "Enter manually" at any step.
Extracted `runList` so flat and drill-down share JSON parsing + failure handling.
Tests
14 tests: depth, positional args, each chain.
Final PR of the resource-aware `appkit add` stack (7/7).