-
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
Fix diff detection for databricks_share
resource
#2197
Conversation
acceptance tests passed |
@marekbrysa do you mind validating this manually with your issue as well? |
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.
in general looks good, but may need to change name...
@@ -128,6 +128,13 @@ func (si ShareInfo) resourceShareMap() map[string]SharedDataObject { | |||
return m | |||
} | |||
|
|||
func Equal(a, b SharedDataObject) bool { |
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.
I would either rename it to be more explicit on what we're comparing, or make it a member function of the corresponding struct.
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.
Also perhaps rename the parameters? b
has the meaning of the "after"/goal state?
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.
not blocking, but this should be the method on SharedDataObject
in the follow-up PR
Changes
Improve diff detection by suppressing diff for
shared_as
field. Close #2167Tests
make test
run locallyinternal/acceptance