You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by hu...@apache.org on 2019/08/07 08:19:54 UTC

svn commit: r1864598 - /comdev/reporter.apache.org/trunk/site/wizard/kibble.py

Author: humbedooh
Date: Wed Aug  7 08:19:54 2019
New Revision: 1864598

URL: http://svn.apache.org/viewvc?rev=1864598&view=rev
Log:
weave in dev and user list advanced stats (threads and authors)

Modified:
    comdev/reporter.apache.org/trunk/site/wizard/kibble.py

Modified: comdev/reporter.apache.org/trunk/site/wizard/kibble.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/kibble.py?rev=1864598&r1=1864597&r2=1864598&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/kibble.py (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/kibble.py Wed Aug  7 08:19:54 2019
@@ -213,6 +213,39 @@ def main():
         cmtp_change = '%u%%' % int((cmtp_after - cmtp_before) / (cmtp_before or 1) * 100)
         
         
+        # Dev+user list traffic?
+        dev_ts = []
+        user_ts = []
+        if True:
+            ml = r'dev@%s\.apache\.org' % project
+            emails = requests.post('https://demo.kibble.apache.org/api/mail/timeseries-single',
+                      headers = {
+                        'Content-Type': 'application/json',
+                        'Kibble-Token': TOKEN,
+                      },
+                      json = {
+                        "quick":True,
+                        "interval": "week",
+                        "subfilter":"\?%s$" % ml,
+                        }
+                     ).json()
+            dev_ts = emails['timeseries']
+            
+            ml = r'users?@%s\.apache\.org' % project
+            emails = requests.post('https://demo.kibble.apache.org/api/mail/timeseries-single',
+                      headers = {
+                        'Content-Type': 'application/json',
+                        'Kibble-Token': TOKEN,
+                      },
+                      json = {
+                        "quick":True,
+                        "interval": "week",
+                        "subfilter":"\?%s$" % ml,
+                        }
+                     ).json()
+            user_ts = emails['timeseries']
+            
+            
         # Most discussed email topics
         # This requires 4 months of data because data is compiled into
         # monthly segments, so mid-month requests return skewed data.
@@ -296,6 +329,8 @@ def main():
                 'github': github_ts,
                 'jira': jira_ts,
                 'commits': commit_ts,
+                'devlist': dev_ts,
+                'userlist': user_ts,
             }
         }
         output = json.dumps(js, indent = 2)