-
Notifications
You must be signed in to change notification settings - Fork 6
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
Remove payload from AlertItem #156
Remove payload from AlertItem #156
Conversation
|
f0d1302
to
252f5a6
Compare
@@ -52,22 +52,30 @@ const ( | |||
/*********************************************************************************************************************** | |||
* Types | |||
**********************************************************************************************************************/ | |||
// AlertItem common alert data. |
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.
Empty line after header
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.
done
@@ -1233,43 +1234,13 @@ func (host *testInstancesUsage) FillSystemInfo(instanceID string, instance *inst | |||
return nil | |||
} | |||
|
|||
func AlertsEqual(alert1, alert2 interface{}) 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.
Make this commit first and use alertutils directly.
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.
cant reorder commits because alertutils depend on refactoring alerts in its implementation.
// AlertsPayloadEqual compares alerts ignoring timestamp. | ||
// | ||
//nolint:funlen | ||
func AlertsPayloadEqual(alert1, alert2 interface{}) 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.
Would be nice to add minimalistic unit test.
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.
added
Signed-off-by: Mykola <mykola_kobets@epam.com>
Signed-off-by: Mykola <mykola_kobets@epam.com>
252f5a6
to
8d47252
Compare
|
No description provided.