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

Removed CustomizeDiff and Client Side Validation for databricks_grants #3290

Merged
merged 6 commits into from
Feb 22, 2024

Conversation

tanmay-db
Copy link
Contributor

@tanmay-db tanmay-db commented Feb 22, 2024

Changes

We remove client side validation for databricks_grants

Tests

Integration tests, updated unit tests, manually tested binary.

  • make test run locally
  • relevant change in docs/ folder
  • covered with integration tests in internal/acceptance
  • relevant acceptance tests are passing
  • using Go SDK

@tanmay-db tanmay-db requested review from a team as code owners February 22, 2024 16:07
@tanmay-db tanmay-db requested review from hectorcast-db and removed request for a team February 22, 2024 16:07
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b38e059) 83.63% compared to head (a6b59dc) 83.62%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3290      +/-   ##
==========================================
- Coverage   83.63%   83.62%   -0.02%     
==========================================
  Files         174      174              
  Lines       15866    15852      -14     
==========================================
- Hits        13270    13256      -14     
  Misses       1807     1807              
  Partials      789      789              
Files Coverage Δ
catalog/resource_grants.go 84.61% <100.00%> (-1.50%) ⬇️

Copy link
Contributor

@mgyucht mgyucht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit, otherwise LGTM.

@@ -104,6 +104,7 @@ func (sm securableMapping) kv(d attributeGetter) (string, string) {
}
return field, v
}
fmt.Printf("[WARN] Unexpected resource or permissions. Please proceed at your own risk.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use tflog.Warn here rather than printing out information: https://pkg.go.dev/github.com/hashicorp/terraform-plugin-log/tflog#Warn

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, sorry about that, didn't push the latest commits. I have also removed the map because we can use the one in permissions.

@tanmay-db tanmay-db changed the title Remove CustomizeDiff and Client Side Validation for databricks_grants Remove CustomizeDiff and Client Side Validation for databricks_grants Feb 22, 2024
@tanmay-db tanmay-db changed the title Remove CustomizeDiff and Client Side Validation for databricks_grants Removed CustomizeDiff and Client Side Validation for databricks_grants Feb 22, 2024
@tanmay-db tanmay-db added this pull request to the merge queue Feb 22, 2024
Merged via the queue into main with commit f6b5df9 Feb 22, 2024
5 checks passed
@tanmay-db tanmay-db deleted the remove-validation branch February 22, 2024 17:00
@tanmay-db tanmay-db mentioned this pull request Feb 22, 2024
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.

4 participants