Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only set ComputeID value when --compute-id flag provided #1229

Merged
merged 1 commit into from
Feb 22, 2024

Conversation

andrewnester
Copy link
Contributor

@andrewnester andrewnester commented Feb 22, 2024

Changes

Fixes an issue when compute_id is defined in the bundle config, correctly replaced in validate command but not used in deploy command

Previously when compute_id was set in bundle.yml and bundle deploy was executed with no --compute-id flag, compute_id from bundle configuration file was reset to an empty string which is unexpected.

Now, the value of compute_id from bundle config only changed when the --compute-id flag is passed

Tests

Manually

@codecov-commenter
Copy link

codecov-commenter commented Feb 22, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (b65ce75) 52.43% compared to head (aa47273) 52.42%.

Files Patch % Lines
cmd/bundle/deploy.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1229      +/-   ##
==========================================
- Coverage   52.43%   52.42%   -0.01%     
==========================================
  Files         308      308              
  Lines       17587    17588       +1     
==========================================
  Hits         9221     9221              
- Misses       7673     7674       +1     
  Partials      693      693              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andrewnester andrewnester added this pull request to the merge queue Feb 22, 2024
Merged via the queue into main with commit 1b4a774 Feb 22, 2024
4 checks passed
@andrewnester andrewnester deleted the fix/compute-id-deploy branch February 22, 2024 15:23
andrewnester added a commit that referenced this pull request Feb 23, 2024
CLI:
 * Improved error message when no .databrickscfg ([#1223](#1223)).
 * Use Go SDK Iterators when listing resources with the CLI ([#1202](#1202)).

Bundles:
 * Only set ComputeID value when `--compute-id` flag provided ([#1229](#1229)).
 * Add correct tag value for models in dev mode ([#1230](#1230)).
 * Upgrade Terraform provider to 1.37.0 ([#1235](#1235)).

Internal:
 * Fix CLI nightlies on our UC workspaces ([#1225](#1225)).
 * Handle alias types for map keys in toTyped conversion ([#1232](#1232)).
@andrewnester andrewnester mentioned this pull request Feb 23, 2024
github-merge-queue bot pushed a commit that referenced this pull request Feb 23, 2024
CLI:
* Improved error message when no .databrickscfg
([#1223](#1223)).
* Use Go SDK Iterators when listing resources with the CLI
([#1202](#1202)).

Bundles:
* Only set ComputeID value when `--compute-id` flag provided
([#1229](#1229)).
* Add correct tag value for models in dev mode
([#1230](#1230)).
* Upgrade Terraform provider to 1.37.0
([#1235](#1235)).

Internal:
* Fix CLI nightlies on our UC workspaces
([#1225](#1225)).
* Handle alias types for map keys in toTyped conversion
([#1232](#1232)).
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.

None yet

3 participants