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

tn 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 9f6c3ea  correctly associate webservices projects
9f6c3ea is described below

commit 9f6c3ea65a2f6a9abba4d43c712a3d5f03f0ddca
Author: Thomas Neidhart <[email protected]>
AuthorDate: Fri Mar 21 10:54:15 2025 +0100

    correctly associate webservices projects
---
 atr/blueprints/admin/admin.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/atr/blueprints/admin/admin.py b/atr/blueprints/admin/admin.py
index 50cd78a..59b8aff 100644
--- a/atr/blueprints/admin/admin.py
+++ b/atr/blueprints/admin/admin.py
@@ -246,7 +246,7 @@ async def _update_committees() -> tuple[int, int]:  # noqa: 
C901
 
                 # We create a PPMC
                 ppmc.is_podling = True
-                ppmc.full_name = podling_data.name.removesuffix("(Incubating)")
+                ppmc.full_name = 
podling_data.name.removesuffix("(Incubating)").removeprefix("Apache").strip()
                 podling_project = ldap_projects_by_name.get(podling_name)
                 if podling_project is not None:
                     ppmc.committee_members = podling_project.owners
@@ -271,6 +271,11 @@ async def _update_committees() -> tuple[int, int]:  # 
noqa: C901
 
             # Add projects and associated them to the right PMC
             for project_name, project_status in projects.items():
+                # FIXME: this is a quick workaround for inconsistent data wrt 
webservices PMC / projects
+                #        the PMC seems to be identified by the key ws, but the 
associated projects use webservices
+                if project_name.startswith("webservices-"):
+                    project_name = project_name.replace("webservices-", "ws-")
+
                 pmc = await data.committee(name=project_status.pmc).get()
                 if not pmc:
                     _LOGGER.warning(f"could not find PMC for project 
{project_name}: {project_status.pmc}")


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

Reply via email to