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/03/27 12:27:53 UTC

(tooling-trusted-release) branch main updated: Rename URLs for release candidate 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 3b2fd55  Rename URLs for release candidate drafts
3b2fd55 is described below

commit 3b2fd55ec805c61fe7dc1bbd4dc0dabd56e4116b
Author: Sean B. Palmer <se...@miscoranda.com>
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
 
 
-@routes.committer("/candidate/draft/add")
+@routes.committer("/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)
 
 
-@routes.committer("/candidate/draft/add/<project_name>/<version_name>", methods=["GET", "POST"])
+@routes.committer("/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(
     )
 
 
-@routes.committer("/candidate/draft/files/<project_name>/<version_name>")
+@routes.committer("/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
     )
 
 
-@routes.committer("/candidate/draft/checks/<project_name>/<version_name>/<path:file_path>")
+@routes.committer("/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
     )
 
 
-@routes.committer("/candidate/draft/delete/<project_name>/<version_name>/<path:file_path>", methods=["POST"])
+@routes.committer("/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))
 
 
-@routes.committer("/candidate/draft/hashgen/<project_name>/<version_name>/<path:file_path>", methods=["POST"])
+@routes.committer("/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))
 
 
-@routes.committer("/candidate/draft/tools/<project_name>/<version_name>/<path:file_path>")
+@routes.committer("/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: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org