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/05/09 19:26:07 UTC

(tooling-trusted-release) branch main updated: Ensure that the start vote form is only displayed for drafts

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 8126099  Ensure that the start vote form is only displayed for drafts
8126099 is described below

commit 81260999f64438a67d7a355f7ec6f7162d097cf3
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Fri May 9 20:25:46 2025 +0100

    Ensure that the start vote form is only displayed for drafts
---
 atr/routes/voting.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/atr/routes/voting.py b/atr/routes/voting.py
index 6c26d5f..f45dbc3 100644
--- a/atr/routes/voting.py
+++ b/atr/routes/voting.py
@@ -42,10 +42,7 @@ async def selected_revision(
     await session.check_access(project_name)
 
     async with db.session() as data:
-        project = await data.project(name=project_name).demand(routes.FlashError("Project not found"))
-        release = await data.release(project_name=project.name, version=version_name, _committee=True).demand(
-            routes.FlashError("Release candidate not found")
-        )
+        release = await session.release(project_name, version_name, data=data, with_project=True, with_committee=True)
         # Check that the user is on the project committee for the release
         # TODO: Consider relaxing this to all committers
         # Otherwise we must not show the vote form


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