Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/sentry/preprod/vcs/status_checks/size/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def format_status_check_messages(
raise ValueError("No metrics exist for VCS size status check")

parts = []
if analyzed_count > 0:
if analyzed_count > 0 and not triggered_rules:
parts.append(
ngettext("%(count)d app analyzed", "%(count)d apps analyzed", analyzed_count)
% {"count": analyzed_count}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,7 @@ def test_single_triggered_rule_shows_details_section(self):
"""

assert title == "Size Analysis"
assert subtitle == "1 app analyzed"
assert subtitle == ""
assert summary == expected

def test_multiple_triggered_rules_url_formatting(self):
Expand Down Expand Up @@ -1386,7 +1386,7 @@ def test_multiple_triggered_rules_url_formatting(self):
"""

assert title == "Size Analysis"
assert subtitle == "1 app analyzed"
assert subtitle == ""
assert summary == expected

def test_multiple_apps_with_triggered_rules(self):
Expand Down Expand Up @@ -1499,7 +1499,7 @@ def test_multiple_apps_with_triggered_rules(self):
"""

assert title == "Size Analysis"
assert subtitle == "2 apps analyzed"
assert subtitle == ""
assert summary == expected

def test_mixed_pass_fail_with_triggered_rules(self):
Expand Down Expand Up @@ -1602,5 +1602,5 @@ def test_mixed_pass_fail_with_triggered_rules(self):
"""

assert title == "Size Analysis"
assert subtitle == "2 apps analyzed"
assert subtitle == ""
assert summary == expected
Loading