From 0964733556e4d5cf14ec482be36d46176ef159bf Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Thu, 25 Apr 2019 19:53:48 +0000 Subject: [PATCH] Don't hide Zuul CI comments When filtering CI system comments, don't hide those from Zuul, our gating CI system. It is important to see these comments as not all results may match the patterns used to expose them as rows in the CI table. Rename the "Toggle CI" button to "Toggle Extra CI" so that the name remains accurate without being too verbose. Change-Id: Id0cd8429ee5ce914aebbbc4a24bef9ebf675e21c --- modules/openstack_project/files/gerrit/hideci.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/openstack_project/files/gerrit/hideci.js b/modules/openstack_project/files/gerrit/hideci.js index bbd2d85aa5..5af1ea3734 100644 --- a/modules/openstack_project/files/gerrit/hideci.js +++ b/modules/openstack_project/files/gerrit/hideci.js @@ -356,7 +356,7 @@ var ci_toggle_visibility = function(comments, showOrHide) { comments = ci_parse_comments(); } $.each(comments, function(i, comment) { - if (comment.is_ci) { + if (comment.is_ci && !comment.is_trusted_ci) { $(comment.ref).toggle(showOrHide); } }); @@ -537,7 +537,7 @@ window.onload = function() { input.id = "toggleci"; input.type = "button"; input.className = "gwt-Button"; - input.value = "Toggle CI"; + input.value = "Toggle Extra CI"; input.onclick = function () { // Flip the cookie var showOrHide = 'true' == read_cookie('show-ci-comments');