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

fix(data_partition): fix issue with enable attribute #1034

Merged
merged 2 commits into from
Jul 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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