Skip to content

Ele 85 group alerts by table#698

Merged
RoiTabach merged 54 commits into
masterfrom
ele-85-group-alerts-by-table
Feb 28, 2023
Merged

Ele 85 group alerts by table#698
RoiTabach merged 54 commits into
masterfrom
ele-85-group-alerts-by-table

Conversation

@RoiTabach
Copy link
Copy Markdown
Contributor

see ELE-85 for full description.
Also added rate-limit for the slack API client.

@linear
Copy link
Copy Markdown

linear Bot commented Feb 22, 2023

@github-actions
Copy link
Copy Markdown
Contributor

👋 @RoiTabach
Thank you for raising your pull request.
Please make sure to add tests and document all user-facing changes.
You can do this by editing the docs files in this pull request.

@RoiTabach
Copy link
Copy Markdown
Contributor Author

Unit tests added:

test_slack_alerts_group_by.py::test_grouping_logic[one_warning_goes_to_one_warning]
test_slack_alerts_group_by.py::test_grouping_logic[one_fail_group_by_all_channel_selection_is_default]
test_slack_alerts_group_by.py::test_grouping_logic[one_fail_one_warn_same_model_group_by_table_groups_them_together]
test_slack_alerts_group_by.py::test_grouping_logic[one_fail_one_warn_same_table_one_other_table_group_by_table_groups_them_to_2_groups]
test_slack_alerts_group_by.py::test_grouping_logic[two_alerts_on_model_1_two_alerts_on_model_2_default_grouping_is_by_table_by_one_alert_has_group_by_alert]
test_slack_alerts_group_by.py::test_grouping_logic[default_grouping_all_and_overrides_existing_by_alert_and_by_table_to_2_out_of_3_of_model_2_s_alerts]
test_slack_alerts_group_by.py::test_alert_group_construction[single_alert_no_channel_goes_to_default_channel]
test_slack_alerts_group_by.py::test_alert_group_construction[single_alert_with_non_default_channel_goes_to_non_default_channel]
test_slack_alerts_group_by.py::test_alert_group_construction[group_by_table_forces_use_of_the_model_channel]
test_slack_alerts_group_by.py::test_alert_group_construction[group_by_all_forces_use_of_the_default_channel]
test_slack_alerts_group_by.py::test_alert_group_construction[owners_are_deduplicated]
test_slack_alerts_group_by.py::test_alert_group_construction[tags_are_deduplicated]
test_slack_alerts_group_by.py::test_alert_group_construction[errors_warnings_and_fails_are_routed_properly]

Comment thread elementary/monitor/data_monitoring/data_monitoring_alerts.py Outdated
Comment thread elementary/monitor/alerts/group_of_alerts.py Outdated
Comment thread elementary/monitor/alerts/group_of_alerts.py Outdated
Comment thread elementary/monitor/alerts/group_of_alerts.py
Comment thread elementary/monitor/alerts/group_of_alerts.py Outdated
Comment thread elementary/monitor/alerts/group_of_alerts.py
Comment thread elementary/monitor/alerts/group_of_alerts.py Outdated
Comment thread elementary/monitor/alerts/group_of_alerts.py
Comment thread elementary/monitor/alerts/group_of_alerts.py
Copy link
Copy Markdown
Contributor

@IDoneShaveIt IDoneShaveIt left a comment

Choose a reason for hiding this comment

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

Left some comments.
Most if not all are small.

Comment thread elementary/monitor/alerts/group_of_alerts.py Outdated
Comment thread elementary/monitor/alerts/group_of_alerts.py Outdated
Comment thread elementary/monitor/alerts/group_of_alerts.py Outdated
def _number_of_failed_block(self):
# small_red_triangle: Falied: 36 | :Warning: Warning: 3 | :exclamation: Errors: 1
fields = []
all_components = list(self._components_to_alerts.items())
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

☝🏻

Comment thread elementary/monitor/alerts/group_of_alerts.py
Comment thread elementary/monitor/alerts/group_of_alerts.py Outdated
Comment thread elementary/monitor/alerts/group_of_alerts.py Outdated
Comment thread elementary/monitor/alerts/group_of_alerts.py Outdated
Comment thread elementary/monitor/alerts/group_of_alerts.py Outdated
Comment thread elementary/utils/models.py Outdated
Comment thread elementary/monitor/alerts/group_of_alerts.py Outdated
@RoiTabach RoiTabach merged commit fa97805 into master Feb 28, 2023
@RoiTabach RoiTabach deleted the ele-85-group-alerts-by-table branch February 28, 2023 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants