Skip to content

Commit c14fda0

Browse files
committed
Added a divider block after the subtitle in the source freshness alert message generation
1 parent b5870a3 commit c14fda0

File tree

257 files changed

+1793
-256
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

257 files changed

+1793
-256
lines changed

elementary/monitor/alerts/alert_messages/test_alert_message.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,7 @@ def get_source_freshness_alert_message_body(alert: SourceFreshnessAlertModel) ->
543543
report_link=alert.get_report_link(),
544544
)
545545
blocks.append(subtitle_block)
546+
blocks.append(DividerBlock())
546547

547548
details_blocks = get_details_blocks(
548549
tags=alert.tags,

tests/unit/alerts/alert_messages/fixtures/adaptive_card_source_freshness_alert_status-error_link-False_message-False_tags-False_owners-False_path-False_error-False_suppression-False.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@
2222
"type": "TextBlock",
2323
"text": "**Source:** test_source.test_identifier | **Status:** error | **Time:** 2025-02-03 11:21:07 UTC",
2424
"wrap": true
25-
},
25+
}
26+
]
27+
},
28+
{
29+
"type": "Container",
30+
"separator": true,
31+
"items": [
2632
{
2733
"type": "ActionSet",
2834
"actions": [

tests/unit/alerts/alert_messages/fixtures/adaptive_card_source_freshness_alert_status-error_link-False_message-False_tags-False_owners-False_path-False_error-False_suppression-True.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@
2222
"type": "TextBlock",
2323
"text": "**Source:** test_source.test_identifier | **Status:** error | **Time:** 2025-02-03 11:21:07 UTC | **Suppression interval:** 24",
2424
"wrap": true
25-
},
25+
}
26+
]
27+
},
28+
{
29+
"type": "Container",
30+
"separator": true,
31+
"items": [
2632
{
2733
"type": "ActionSet",
2834
"actions": [

tests/unit/alerts/alert_messages/fixtures/adaptive_card_source_freshness_alert_status-error_link-False_message-False_tags-False_owners-False_path-False_error-True_suppression-False.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@
2222
"type": "TextBlock",
2323
"text": "**Source:** test_source.test_identifier | **Status:** error | **Time:** 2025-02-03 11:21:07 UTC",
2424
"wrap": true
25-
},
25+
}
26+
]
27+
},
28+
{
29+
"type": "Container",
30+
"separator": true,
31+
"items": [
2632
{
2733
"type": "ActionSet",
2834
"actions": [

tests/unit/alerts/alert_messages/fixtures/adaptive_card_source_freshness_alert_status-error_link-False_message-False_tags-False_owners-False_path-False_error-True_suppression-True.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@
2222
"type": "TextBlock",
2323
"text": "**Source:** test_source.test_identifier | **Status:** error | **Time:** 2025-02-03 11:21:07 UTC | **Suppression interval:** 24",
2424
"wrap": true
25-
},
25+
}
26+
]
27+
},
28+
{
29+
"type": "Container",
30+
"separator": true,
31+
"items": [
2632
{
2733
"type": "ActionSet",
2834
"actions": [

tests/unit/alerts/alert_messages/fixtures/adaptive_card_source_freshness_alert_status-error_link-False_message-False_tags-False_owners-False_path-True_error-False_suppression-False.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@
2222
"type": "TextBlock",
2323
"text": "**Source:** test_source.test_identifier | **Status:** error | **Time:** 2025-02-03 11:21:07 UTC",
2424
"wrap": true
25-
},
25+
}
26+
]
27+
},
28+
{
29+
"type": "Container",
30+
"separator": true,
31+
"items": [
2632
{
2733
"type": "TextBlock",
2834
"text": "\u2139\ufe0f **Details**",

tests/unit/alerts/alert_messages/fixtures/adaptive_card_source_freshness_alert_status-error_link-False_message-False_tags-False_owners-False_path-True_error-False_suppression-True.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@
2222
"type": "TextBlock",
2323
"text": "**Source:** test_source.test_identifier | **Status:** error | **Time:** 2025-02-03 11:21:07 UTC | **Suppression interval:** 24",
2424
"wrap": true
25-
},
25+
}
26+
]
27+
},
28+
{
29+
"type": "Container",
30+
"separator": true,
31+
"items": [
2632
{
2733
"type": "TextBlock",
2834
"text": "\u2139\ufe0f **Details**",

tests/unit/alerts/alert_messages/fixtures/adaptive_card_source_freshness_alert_status-error_link-False_message-False_tags-False_owners-False_path-True_error-True_suppression-False.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@
2222
"type": "TextBlock",
2323
"text": "**Source:** test_source.test_identifier | **Status:** error | **Time:** 2025-02-03 11:21:07 UTC",
2424
"wrap": true
25-
},
25+
}
26+
]
27+
},
28+
{
29+
"type": "Container",
30+
"separator": true,
31+
"items": [
2632
{
2733
"type": "TextBlock",
2834
"text": "\u2139\ufe0f **Details**",

tests/unit/alerts/alert_messages/fixtures/adaptive_card_source_freshness_alert_status-error_link-False_message-False_tags-False_owners-False_path-True_error-True_suppression-True.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@
2222
"type": "TextBlock",
2323
"text": "**Source:** test_source.test_identifier | **Status:** error | **Time:** 2025-02-03 11:21:07 UTC | **Suppression interval:** 24",
2424
"wrap": true
25-
},
25+
}
26+
]
27+
},
28+
{
29+
"type": "Container",
30+
"separator": true,
31+
"items": [
2632
{
2733
"type": "TextBlock",
2834
"text": "\u2139\ufe0f **Details**",

tests/unit/alerts/alert_messages/fixtures/adaptive_card_source_freshness_alert_status-error_link-False_message-False_tags-False_owners-True_path-False_error-False_suppression-False.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@
2222
"type": "TextBlock",
2323
"text": "**Source:** test_source.test_identifier | **Status:** error | **Time:** 2025-02-03 11:21:07 UTC",
2424
"wrap": true
25-
},
25+
}
26+
]
27+
},
28+
{
29+
"type": "Container",
30+
"separator": true,
31+
"items": [
2632
{
2733
"type": "TextBlock",
2834
"text": "\u2139\ufe0f **Details**",

0 commit comments

Comments
 (0)