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

Remove payload from AlertItem #156

Conversation

mykola-kobets-epam
Copy link
Contributor

No description provided.

Copy link

@mykola-kobets-epam mykola-kobets-epam changed the title [WIP] Remove payload from AlertItem Remove payload from AlertItem Jul 23, 2024
@mykola-kobets-epam mykola-kobets-epam force-pushed the remove-payload-from-alert-item branch 7 times, most recently from f0d1302 to 252f5a6 Compare July 26, 2024 09:06
@@ -52,22 +52,30 @@ const (
/***********************************************************************************************************************
* Types
**********************************************************************************************************************/
// AlertItem common alert data.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty line after header

Copy link
Contributor Author

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 {
Copy link
Collaborator

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.

Copy link
Contributor Author

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 {
Copy link
Collaborator

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.

Copy link
Contributor Author

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>
@mykola-kobets-epam mykola-kobets-epam force-pushed the remove-payload-from-alert-item branch from 252f5a6 to 8d47252 Compare July 26, 2024 12:21
Copy link

@al1img al1img merged commit 1a65185 into aosedge:feature_dynamic_nodes Jul 26, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants