You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by sb...@apache.org on 2025/06/12 18:34:03 UTC

(tooling-trusted-release) branch main updated: Add a temporary way for all users to restart checks easily

This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-release.git


The following commit(s) were added to refs/heads/main by this push:
     new 3b27ab2  Add a temporary way for all users to restart checks easily
3b27ab2 is described below

commit 3b27ab224cf979280e1c69cbb67e55f2d5893e7a
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Thu Jun 12 19:33:43 2025 +0100

    Add a temporary way for all users to restart checks easily
---
 atr/templates/check-selected.html       | 15 +++++++++++++++
 atr/templates/report-selected-path.html |  9 ---------
 2 files changed, 15 insertions(+), 9 deletions(-)

diff --git a/atr/templates/check-selected.html b/atr/templates/check-selected.html
index f6a8bbb..0ed4fe9 100644
--- a/atr/templates/check-selected.html
+++ b/atr/templates/check-selected.html
@@ -94,7 +94,22 @@
       {% endif %}
     </div>
   </div>
+  {% if phase == "release_candidate_draft" %}
+    <h2>Debugging</h2>
+    <div class="mb-2">
+      <p class="text-muted">The following form is for debugging purposes only. It will create a new revision.</p>
+    </div>
+    <div>
+      <form method="post"
+            action="{{ as_url(routes.draft.fresh, project_name=release.project.name, version_name=release.version) }}"
+            class="mb-0">
+        {{ empty_form.hidden_tag() }}
 
+        <button type="submit" class="btn btn-primary">Restart all checks</button>
+      </form>
+    </div>
+
+  {% endif %}
   {% if phase == "release_candidate" %}
     {% include "check-selected-candidate-forms.html" %}
 
diff --git a/atr/templates/report-selected-path.html b/atr/templates/report-selected-path.html
index 22b346d..a4b4b53 100644
--- a/atr/templates/report-selected-path.html
+++ b/atr/templates/report-selected-path.html
@@ -96,15 +96,6 @@
       {% endfor %}
     {% endif %}
     <button type="button" onclick="toggleAllDetails()" class="btn btn-secondary">Toggle all details</button>
-    {% if is_viewing_as_admin_fn(current_user.uid) and (release.phase.value == "release_candidate_draft") %}
-      <form method="post"
-            action="{{ as_url(routes.draft.fresh, project_name=release.project.name, version_name=release.version) }}"
-            class="mb-0">
-        {{ empty_form.hidden_tag() }}
-
-        <button type="submit" class="btn btn-primary">Restart all checks</button>
-      </form>
-    {% endif %}
   </div>
 
   <div class="mb-3">


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org