Skip to content

Commit

Permalink
fix(data_partition): fix issue with enable attribute (#1034)
Browse files Browse the repository at this point in the history
Co-authored-by: pranav-new-relic <[email protected]>
  • Loading branch information
RavitejaSurampudi and pranav-new-relic authored Jul 11, 2023
1 parent d0c5f21 commit 0482b4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/logconfigurations/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,9 @@ type LogConfigurationsUpdateDataPartitionRuleInput struct {
// The description of the data partition rule.
Description string `json:"description,omitempty"`
// Whether or not this data partition rule is enabled.
Enabled bool `json:"enabled,omitempty"`
// NOTE: DO NOT add 'omitempty' to the JSON description of Enabled as fetched from Tutone.
// It omits 'enabled' even if the calling service sends it as 'false', which is why 'omitempty' has been manually discarded.
Enabled bool `json:"enabled"`
// Unique data partition rule identifier.
ID string `json:"id"`
// The criteria of the data partition rule.
Expand Down

0 comments on commit 0482b4f

Please sign in to comment.