Skip to content

Add substring matching to databricks bundle open#4461

Closed
wannte wants to merge 2 commits intodatabricks:mainfrom
wannte:add-prefix-matching-to-bundle-open
Closed

Add substring matching to databricks bundle open#4461
wannte wants to merge 2 commits intodatabricks:mainfrom
wannte:add-prefix-matching-to-bundle-open

Conversation

@wannte
Copy link
Copy Markdown

@wannte wannte commented Feb 6, 2026

Changes

Add substring (contains) matching to databricks bundle open for flexible resource resolution.

  • databricks bundle open foo matches any resource whose key contains foo (e.g. my_foo_job)
  • Single match resolves automatically; multiple matches prompt for selection (interactive) or list candidates (non-interactive)
  • Exact match still takes priority over substring matching

Tests

Unit tests covering middle and suffix substring matching in both bundle/resources/lookup_test.go and cmd/bundle/open_test.go.

🤖 Generated with Claude Code

@wannte wannte marked this pull request as ready for review February 6, 2026 14:02
@andrewnester
Copy link
Copy Markdown
Contributor

Thanks for raising the PR! For contributing to Databricks CLI we require users to sign CLA, if that's something you are willing to do, please drop an email with a request to dabs-feedback@databricks.com

@wannte
Copy link
Copy Markdown
Author

wannte commented Feb 24, 2026

@andrewnester I completed sign CLA! Can you review this PR?

@wannte wannte changed the title Add prefix matching to databricks bundle open Add substring matching to databricks bundle open Feb 24, 2026
wannte and others added 2 commits February 27, 2026 11:16
Allow users to type a prefix instead of a full resource key. If the prefix
uniquely identifies a resource it is auto-resolved; if multiple resources
match, an interactive prompt is shown (or an error with candidates in
non-interactive mode).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@wannte wannte force-pushed the add-prefix-matching-to-bundle-open branch from 374fd44 to 6a5ca7b Compare February 27, 2026 02:16
@github-actions
Copy link
Copy Markdown

An authorized user can trigger integration tests manually by following the instructions below:

Trigger:
go/deco-tests-run/cli

Inputs:

  • PR number: 4461
  • Commit SHA: 6a5ca7b5c1a7087e64ccde15cb2676193308c8eb

Checks will be approved automatically on success.

@wannte
Copy link
Copy Markdown
Author

wannte commented Mar 24, 2026

Closing to re-open as a new PR for visibility.

@denik
Copy link
Copy Markdown
Contributor

denik commented Mar 24, 2026

Closing to re-open as a new PR for visibility.

Hi @wannte , please don't open duplicate PRs. We've seen it, just did not get to it yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants