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 3b2fd55  Rename URLs for release candidate drafts
3b2fd55 is described below

commit 3b2fd55ec805c61fe7dc1bbd4dc0dabd56e4116b
Author: Sean B. Palmer <[email protected]>
AuthorDate: Thu Mar 27 14:27:34 2025 +0200

    Rename URLs for release candidate drafts
---
 atr/routes/candidate_draft.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/atr/routes/candidate_draft.py b/atr/routes/candidate_draft.py
index 5dfa958..daedb5f 100644
--- a/atr/routes/candidate_draft.py
+++ b/atr/routes/candidate_draft.py
@@ -154,7 +154,7 @@ def _path_warnings_errors_metadata(
     return warnings, errors
 
 
[email protected]("/candidate/draft/add")
[email protected]("/candidate-draft/add")
 async def add(session: routes.CommitterSession) -> str:
     """Show a page to allow the user to rsync files to candidate drafts."""
     # Do them outside of the template rendering call to ensure order
@@ -201,7 +201,7 @@ async def _add_one(
             await f.write(chunk)
 
 
[email protected]("/candidate/draft/add/<project_name>/<version_name>", 
methods=["GET", "POST"])
[email protected]("/candidate-draft/add/<project_name>/<version_name>", 
methods=["GET", "POST"])
 async def add_project(
     session: routes.CommitterSession, project_name: str, version_name: str
 ) -> response.Response | str:
@@ -234,7 +234,7 @@ async def add_project(
     )
 
 
[email protected]("/candidate/draft/files/<project_name>/<version_name>")
[email protected]("/candidate-draft/files/<project_name>/<version_name>")
 async def files(session: routes.CommitterSession, project_name: str, 
version_name: str) -> str:
     """Show all the files in the rsync upload directory for a release."""
     # Check that the user has access to the project
@@ -315,7 +315,7 @@ async def files(session: routes.CommitterSession, 
project_name: str, version_nam
     )
 
 
[email protected]("/candidate/draft/checks/<project_name>/<version_name>/<path:file_path>")
[email protected]("/candidate-draft/checks/<project_name>/<version_name>/<path:file_path>")
 async def checks(session: routes.CommitterSession, project_name: str, 
version_name: str, file_path: str) -> str:
     """Show the status of all checks for a specific file."""
     # Check that the user has access to the project
@@ -367,7 +367,7 @@ async def checks(session: routes.CommitterSession, 
project_name: str, version_na
     )
 
 
[email protected]("/candidate/draft/delete/<project_name>/<version_name>/<path:file_path>",
 methods=["POST"])
[email protected]("/candidate-draft/delete/<project_name>/<version_name>/<path:file_path>",
 methods=["POST"])
 async def delete(
     session: routes.CommitterSession, project_name: str, version_name: str, 
file_path: str
 ) -> response.Response:
@@ -395,7 +395,7 @@ async def delete(
     return quart.redirect(util.as_url(files, project_name=project_name, 
version_name=version_name))
 
 
[email protected]("/candidate/draft/hashgen/<project_name>/<version_name>/<path:file_path>",
 methods=["POST"])
[email protected]("/candidate-draft/hashgen/<project_name>/<version_name>/<path:file_path>",
 methods=["POST"])
 async def hashgen(
     session: routes.CommitterSession, project_name: str, version_name: str, 
file_path: str
 ) -> response.Response:
@@ -451,7 +451,7 @@ async def hashgen(
     return quart.redirect(util.as_url(files, project_name=project_name, 
version_name=version_name))
 
 
[email protected]("/candidate/draft/tools/<project_name>/<version_name>/<path:file_path>")
[email protected]("/candidate-draft/tools/<project_name>/<version_name>/<path:file_path>")
 async def tools(session: routes.CommitterSession, project_name: str, 
version_name: str, file_path: str) -> str:
     """Show the tools for a specific file."""
     # Check that the user has access to the project


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to