You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2018/08/20 10:32:54 UTC

svn commit: r1838422 - in /comdev/reporter.apache.org: branches/TEST_INSTALL/scripts/readjira.py trunk/scripts/readjira.py

Author: sebb
Date: Mon Aug 20 10:32:54 2018
New Revision: 1838422

URL: http://svn.apache.org/viewvc?rev=1838422&view=rev
Log:
We only want totals, so fetch as little as possible

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

Modified: comdev/reporter.apache.org/branches/TEST_INSTALL/scripts/readjira.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/branches/TEST_INSTALL/scripts/readjira.py?rev=1838422&r1=1838421&r2=1838422&view=diff
==============================================================================
--- comdev/reporter.apache.org/branches/TEST_INSTALL/scripts/readjira.py (original)
+++ comdev/reporter.apache.org/branches/TEST_INSTALL/scripts/readjira.py Mon Aug 20 10:32:54 2018
@@ -76,10 +76,10 @@ def getProjects():
 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""") # >=
+        req = Request("""https://issues.apache.org/jira/rest/api/2/search?jql=project='""" + project + """'+AND+created%3E=-91d&fields=key""") # >=
         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""") # >=
+        req = Request("""https://issues.apache.org/jira/rest/api/2/search?jql=project='""" + project + """'+AND+resolved%3E=-91d&fields=key""") # >=
         req.add_header("Authorization", "Basic %s" % base64string)
         rdata = json.loads(urlopen(req, timeout=JIRATIMEOUT).read().decode('utf-8'))
         with open(file, "w") as f:

Modified: comdev/reporter.apache.org/trunk/scripts/readjira.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/readjira.py?rev=1838422&r1=1838421&r2=1838422&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/readjira.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/readjira.py Mon Aug 20 10:32:54 2018
@@ -76,10 +76,10 @@ def getProjects():
 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""") # >=
+        req = Request("""https://issues.apache.org/jira/rest/api/2/search?jql=project='""" + project + """'+AND+created%3E=-91d&fields=key""") # >=
         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""") # >=
+        req = Request("""https://issues.apache.org/jira/rest/api/2/search?jql=project='""" + project + """'+AND+resolved%3E=-91d&fields=key""") # >=
         req.add_header("Authorization", "Basic %s" % base64string)
         rdata = json.loads(urlopen(req, timeout=JIRATIMEOUT).read().decode('utf-8'))
         with open(file, "w") as f: