Skip to content

Commit

Permalink
Add detailed Git versions report (#144)
Browse files Browse the repository at this point in the history
This adds an extended edition of the Git versions report. In addition to
tracking the used Git versions of the last day, this tracks all used Git
versions every day, making an upgrade trend chart possible.

Note that this only includes the report (which gathers the data) but not
the chart. Also, for compatibility, the former Git versions chart is
retained for now. The migration will be done in a future pull request.
  • Loading branch information
pluehne authored and larsxschneider committed Apr 10, 2018
1 parent 6a98b4e commit 7a33b87
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions updater/reports/ReportGitVersionsNew.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from .ReportDaily import *

# Lists which git version was used by how many users yesterday
class ReportGitVersionsNew(ReportDaily):
def name(self):
return "git-versions-new"

def updateDailyData(self):
newHeader, newData = self.parseData(
self.executeScript(self.scriptPath("git-versions.sh")))

self.header = ["date"] + newHeader

newData = [[str(self.yesterday())] + row for row in newData]

self.data.extend(newData)
self.truncateData(self.timeRangeTotal())
self.sortDataByDate()
2 changes: 2 additions & 0 deletions updater/update-stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from reports.ReportGitDownload import *
from reports.ReportGitRequests import *
from reports.ReportGitVersions import *
from reports.ReportGitVersionsNew import *
from reports.ReportOrgActivity import *
from reports.ReportOrgCollaboration import *
from reports.ReportOrgOwners import *
Expand Down Expand Up @@ -79,6 +80,7 @@ def main():
ReportGitDownload(configuration, dataDirectory, metaStats).update()
ReportGitRequests(configuration, dataDirectory, metaStats).update()
ReportGitVersions(configuration, dataDirectory, metaStats).update()
ReportGitVersionsNew(configuration, dataDirectory, metaStats).update()
ReportOrgActivity(configuration, dataDirectory, metaStats).update()
ReportOrgCollaboration(configuration, dataDirectory, metaStats).update()
ReportOrgOwners(configuration, dataDirectory, metaStats).update()
Expand Down

0 comments on commit 7a33b87

Please sign in to comment.