From cd7e181af68159bedc47ab4fefd117a28902a8dd Mon Sep 17 00:00:00 2001 From: loris-fab Date: Fri, 31 Jul 2026 09:00:17 +0200 Subject: [PATCH 1/7] [T3348] PERF: parallelize the 365 childpool search requests - do_365_mix() was calling the GMC search API sequentially once per day of the year (~1m30 total), which looked like an infinite loading spinner to users. Requests are now fired concurrently via a thread pool and results are re-sorted chronologically afterwards. - Add a confirmation popup on the "365 children" button to set expectations on the search duration. --- .../views/global_childpool_view.xml | 4 + .../wizards/global_child_search.py | 121 +++++++++++++----- 2 files changed, 93 insertions(+), 32 deletions(-) diff --git a/child_compassion/views/global_childpool_view.xml b/child_compassion/views/global_childpool_view.xml index aa03fa42a..9f23b6fa3 100644 --- a/child_compassion/views/global_childpool_view.xml +++ b/child_compassion/views/global_childpool_view.xml @@ -77,6 +77,10 @@ type="object" class="oe_highlight" style="margin-left: 5px" + confirm="This search takes about 10 seconds !" + confirm-title="Just a heads up" + confirm-label="Let's go" + cancel-label="Not now" />