This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new f645261dc09 Fix stats page showing 0 for per-type module counts
(#63911)
f645261dc09 is described below
commit f645261dc095f6cca7a8fcc26beb57b1e4e56b85
Author: Kaxil Naik <[email protected]>
AuthorDate: Thu Mar 19 04:10:28 2026 +0000
Fix stats page showing 0 for per-type module counts (#63911)
The stats page "Top 10 by Module Count" table showed 0 for all
per-type columns (Operators, Hooks, Sensors, etc.) while the Total
column was correct. This was caused by incremental builds: the
`...p` spread copied stale `module_counts` zeros from providers.json,
but `totalModules` was correctly computed from modules.json.
Override `module_counts` with the actual per-type counts from
modules.json (the source of truth), matching how `totalModules`
is already computed.
---
registry/src/_data/statsData.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/registry/src/_data/statsData.js b/registry/src/_data/statsData.js
index 02d40eeeb28..3897360d0dc 100644
--- a/registry/src/_data/statsData.js
+++ b/registry/src/_data/statsData.js
@@ -98,6 +98,7 @@ module.exports = function() {
// Enriched provider list with totals
const enrichedProviders = [...providers].map(p => ({
...p,
+ module_counts: countsByProvider[p.id] || {},
totalModules: countsByProvider[p.id]
? Object.values(countsByProvider[p.id]).reduce((a, b) => a + b, 0)
: 0,