From fb5464e56cdede37ca5da2f3fb914208d766a6ed Mon Sep 17 00:00:00 2001 From: Anita Caron Date: Wed, 17 Apr 2024 10:11:23 +0200 Subject: [PATCH] Add message to badge when qc is INFO or PASS (#113) * add INFO and PASS to badge message * simplify badge label to QC, decided in meeting today --------- Co-authored-by: Anita Caron --- util/dashboard/dashboard.py | 2 ++ util/lib.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/util/dashboard/dashboard.py b/util/dashboard/dashboard.py index 08f396a..0618e6e 100755 --- a/util/dashboard/dashboard.py +++ b/util/dashboard/dashboard.py @@ -354,10 +354,12 @@ def run(): summary = 'INFO' color = 'green' summary_comment = '{0} info messages'.format(info) + badge_message.append(f"INFO {info}") else: summary = 'PASS' summary_comment = '' color = 'green' + badge_message.append("PASS") if warn > 0: badge_message.append(f"WARN {warn}") diff --git a/util/lib.py b/util/lib.py index 40a2c50..2d0c3bd 100644 --- a/util/lib.py +++ b/util/lib.py @@ -533,7 +533,7 @@ def compute_percentage_reused_entities(entity_use_map, internal_ns): return float(score_string) def create_dashboard_qc_badge(color: str, message: str, outdir: str): - create_badge(color, message, "OBO Dashboard QC", f"{outdir}/dashboard-qc-badge.json") + create_badge(color, message, "QC", f"{outdir}/dashboard-qc-badge.json") def create_dashboard_score_badge(color: str, message: str, outdir: str):