Author: sebb
Date: Sun Jun 22 21:55:47 2025
New Revision: 1926648

URL: http://svn.apache.org/viewvc?rev=1926648&view=rev
Log:
Show when mail data was collected

Modified:
    comdev/reporter.apache.org/trunk/scripts/pdata.py
    comdev/reporter.apache.org/trunk/scripts/rapp/overview.py
    
comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js
    comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js

Modified: comdev/reporter.apache.org/trunk/scripts/pdata.py
URL: 
http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/pdata.py?rev=1926648&r1=1926647&r2=1926648&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/pdata.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/pdata.py Sun Jun 22 21:55:47 2025
@@ -243,6 +243,7 @@ cchanges = None
 bugzillastats = None
 lastRead = 0
 mld = None
+mld_date = None
 pmcdates = None
 
 # Don't include these ids in changes
@@ -258,13 +259,14 @@ def generate(user, project, runkibble):
         
         # Check if we need to re-read json inputs...
         if lastRead < (time.time() - CACHE_TIMEOUT):
-            global pmcSummary, dataHealth,pchanges, cchanges, bugzillastats, 
mld, pmcdates
+            global pmcSummary, dataHealth,pchanges, cchanges, bugzillastats, 
mld, mld_date, pmcdates
             pmcSummary = committee_info.PMCsummary()
             dataHealth = readJson(RAOHOME+"data/health.json", [])
             pchanges = readJson(RAOHOME+"data/pmcs.json")
             cchanges = readJson(RAOHOME+"data/projects.json")
             bugzillastats = readJson(RAOHOME+"data/bugzillastats.json", {})
             mld = readJson(RAOHOME+"data/maildata_extended.json")
+            mld_date = os.path.getmtime(RAOHOME+"data/maildata_extended.json")
             pmcdates = readJson(RAOHOME+"data/pmcdates.json")
             lastRead = time.time()
         
@@ -359,6 +361,7 @@ def generate(user, project, runkibble):
         output = {
             'count': count,
             'delivery': emails,
+            'email_date': mld_date,
             'jira': jdata,
             'bugzilla': bdata,
             'changes': cdata,

Modified: comdev/reporter.apache.org/trunk/scripts/rapp/overview.py
URL: 
http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/rapp/overview.py?rev=1926648&r1=1926647&r2=1926648&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/rapp/overview.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/rapp/overview.py Sun Jun 22 
21:55:47 2025
@@ -8,6 +8,7 @@ import time
 import re
 import committee_info
 import rapp.whimsy
+from datetime import datetime
 
 CACHE_TIMEOUT = 14400
 
@@ -45,10 +46,13 @@ def run(environ, user):
                     dumps[k] = None # Javascript does not expect an empty 
kibble dict
                 else:
                     dumps[k] = {}
-            if (k != 'kibble'):
+            if (k == 'kibble'):
+                if v:
+                    dumps[k] = v
+            elif k == 'email_date':
+                dumps[k] = datetime.fromtimestamp(v).strftime("%Y-%m-%d")
+            else:
                 dumps[k][xproject] = v
-            if k == 'kibble' and v:
-                dumps['kibble'] =v
     
     
     # Set personalized vars, dump

Modified: 
comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js
URL: 
http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js?rev=1926648&r1=1926647&r2=1926648&view=diff
==============================================================================
--- 
comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js 
(original)
+++ 
comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js 
Sun Jun 22 21:55:47 2025
@@ -213,6 +213,7 @@ function statistics_health(data) {
     html.inject(new HTML('h4', {}, "Community Health Metrics:"))
     document.body.inject(html);
     html.inject(new HTML('h5', {}, "Notable mailing list trends:"))
+    html.inject(new HTML('div', {}, `(as at ${data.email_date})`));
     let txt = "";
     // Mailing list changes
     for (var ml in data.delivery[project]) {

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js
URL: 
http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js?rev=1926648&r1=1926647&r2=1926648&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Sun Jun 22 
21:55:47 2025
@@ -2436,6 +2436,7 @@ function statistics_health(data) {
     html.inject(new HTML('h4', {}, "Community Health Metrics:"))
     document.body.inject(html);
     html.inject(new HTML('h5', {}, "Notable mailing list trends:"))
+    html.inject(new HTML('div', {}, `(as at ${data.email_date})`));
     let txt = "";
     // Mailing list changes
     for (var ml in data.delivery[project]) {


Reply via email to