Author: sebb
Date: Fri Aug  8 12:35:14 2025
New Revision: 1927697

Log:
Reinstate auth - it seems it is needed to get full data

Modified:
   comdev/reporter.apache.org/trunk/scripts/readjira.py

Modified: comdev/reporter.apache.org/trunk/scripts/readjira.py
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/readjira.py        Fri Aug  8 
12:04:49 2025        (r1927696)
+++ comdev/reporter.apache.org/trunk/scripts/readjira.py        Fri Aug  8 
12:35:14 2025        (r1927697)
@@ -61,7 +61,7 @@ def getProjects():
     print("Refresh %s" % PROJECT_JSON)
     try:
         req = Request("https://issues.apache.org/jira/rest/api/2/project.json";)
-        # TEMP req.add_header("Authorization", "Basic %s" % base64string)
+        req.add_header("Authorization", "Basic %s" % base64string)
         x = json.loads(urlopen(req, 
timeout=JIRATIMEOUT).read().decode('utf-8'))
         with open(PROJECT_JSON, "w") as f:
             json.dump(x, f, indent=1, sort_keys=True)
@@ -75,10 +75,10 @@ def getJIRAS(project):
     file = "%s/data/JIRA/%s.json" % (MYHOME, project)
     try:
         req = 
Request("""https://issues.apache.org/jira/rest/api/2/search?jql=project='""" + 
project + """'+AND+created%3E=-91d&fields=key""") # >=
-        # TEMP req.add_header("Authorization", "Basic %s" % base64string)
+        req.add_header("Authorization", "Basic %s" % base64string)
         cdata = json.loads(urlopen(req, 
timeout=JIRATIMEOUT).read().decode('utf-8'))
         req = 
Request("""https://issues.apache.org/jira/rest/api/2/search?jql=project='""" + 
project + """'+AND+resolved%3E=-91d&fields=key""") # >=
-        # TEMP req.add_header("Authorization", "Basic %s" % base64string)
+        req.add_header("Authorization", "Basic %s" % base64string)
         rdata = json.loads(urlopen(req, 
timeout=JIRATIMEOUT).read().decode('utf-8'))
         with open(file, "w") as f:
             json.dump([cdata['total'], rdata['total'], project], f, indent=1, 
sort_keys=True)

Reply via email to