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/30 15:28:44 UTC

(tooling-trusted-release) branch main updated: Show eventual acceptable addresses in a description on the vote form

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 f324085  Show eventual acceptable addresses in a description on the vote form
f324085 is described below

commit f324085551ce377c94d4832708ada9ca75e193b5
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Mon Jun 30 16:27:46 2025 +0100

    Show eventual acceptable addresses in a description on the vote form
---
 atr/db/models.py     | 4 ++--
 atr/routes/voting.py | 4 +++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/atr/db/models.py b/atr/db/models.py
index 41bb96d..9a6874d 100644
--- a/atr/db/models.py
+++ b/atr/db/models.py
@@ -343,10 +343,10 @@ Thanks,
     def policy_mailto_addresses(self) -> list[str]:
         if ((policy := self.release_policy) is None) or (not policy.mailto_addresses):
             if self.committee is not None:
-                return [f"dev@{self.committee.name}.apache.org"]
+                return [f"dev@{self.committee.name}.apache.org", f"private@{self.committee.name}.apache.org"]
             else:
                 # TODO: Or raise an error?
-                return [f"dev@{self.name}.apache.org"]
+                return [f"dev@{self.name}.apache.org", f"private@{self.name}.apache.org"]
         return policy.mailto_addresses
 
     @property
diff --git a/atr/routes/voting.py b/atr/routes/voting.py
index a98ed40..21392be 100644
--- a/atr/routes/voting.py
+++ b/atr/routes/voting.py
@@ -69,6 +69,7 @@ async def selected_revision(
             min_hours = release.release_policy.min_hours
         else:
             min_hours = 72
+        release_policy_mailto_addresses = ", ".join(release.project.policy_mailto_addresses)
 
         class VoteInitiateForm(util.QuartFormTyped):
             """Form for initiating a release vote."""
@@ -80,7 +81,8 @@ async def selected_revision(
                 validators=[wtforms.validators.InputRequired("Mailing list selection is required")],
                 default="user-tests@tooling.apache.org",
                 description="NOTE: The limited options above are provided for testing purposes."
-                " In the finished version of ATR, you will be able to send to your own specified mailing lists.",
+                " In the finished version of ATR, you will be able to send to your own specified mailing lists, i.e. "
+                f"{release_policy_mailto_addresses}.",
             )
             vote_duration = wtforms.IntegerField(
                 "Minimum vote duration",


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