- Issue created by @vbouchet
- π«π·France vbouchet
As per my investigation, this is because the Recipes source is not updating the number of result.
Object.entries(data).forEach((item) => { const [source, result] = item; if (result.totalResults !== 0) { $activeTab = source; [project] = result.list; projectExists = true; } });
The JS behind /admin/modules/browse/{module_name} still invokes all the source plugins but expect only one source to return results.
Globally, I think the JS should be aware of the active source tab so other sources can act appropriately:
- In case it is the /browser, run a lightweight query as the goal is only to know the number of projects matching the criteria.
- In case it is the /browser/{project_name}, don't do anything - Merge request !521Issue #3455715: Get the total number of recipes after applying the filters. β (Open) created by vbouchet
- Status changed to Needs review
9 days ago 2:50pm 19 June 2024 - π«π·France vbouchet
The suggested commit is not reworking the global implementation, just fixing the way total is counted in the Recipe sources so it does count only after filtering is applied.