-
Notifications
You must be signed in to change notification settings - Fork 393
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ 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
|
There was a problem hiding this 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.
catalog/resource_grants.go
Outdated
@@ -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.") |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
CustomizeDiff
and Client Side Validation for databricks_grants
CustomizeDiff
and Client Side Validation for databricks_grants
CustomizeDiff
and Client Side Validation for databricks_grants
Changes
We remove client side validation for
databricks_grants
Tests
Integration tests, updated unit tests, manually tested binary.
make test
run locallydocs/
folderinternal/acceptance