Skip to content

Commit

Permalink
Enable multiple views on all history charts (#126)
Browse files Browse the repository at this point in the history
This makes all remaining history charts multiview-capable. For most
charts, it made sense to select one value of each time period for weekly
aggregation, while for a few others, computing the sum was more apt.
  • Loading branch information
pluehne authored and larsxschneider committed Feb 26, 2018
1 parent a24ed3c commit 07bfa49
Show file tree
Hide file tree
Showing 16 changed files with 729 additions and 67 deletions.
32 changes: 31 additions & 1 deletion docs/housekeeping-abandoned-orgs.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,37 @@ <h3>Abandoned Organizations</h3>
<canvas
data-url="{{ site.dataURL }}/organizations-abandoned.tsv"
data-type="history"
></canvas>
data-config='{
"views":
[
{
"label": "2 m",
"tooltip": "Show the last 2 months",
"aggregate": false,
"slice": [0, 61]
},
{
"label": "2 y",
"tooltip": "Show the last 2 years",
"aggregate":
{
"period": "week",
"method": "first"
},
"slice": [0, 106],
"default": true
},
{
"label": "all",
"tooltip": "Show all data",
"aggregate":
{
"period": "week",
"method": "first"
}
}
]
}'></canvas>
<div class="info-box">
<p>
An organizations is considered <em>abandoned</em> if none of its repositories has received a push in the last year (ignoring <a href="https://help.github.com/articles/archiving-repositories/">archived</a> repositories).
Expand Down
32 changes: 31 additions & 1 deletion docs/housekeeping-api-requests.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,37 @@ <h3>API Requests</h3>
<canvas
data-url="{{ site.dataURL }}/api-requests.tsv"
data-type="history"
></canvas>
data-config='{
"views":
[
{
"label": "2 m",
"tooltip": "Show the last 2 months",
"aggregate": false,
"slice": [0, 61]
},
{
"label": "2 y",
"tooltip": "Show the last 2 years",
"aggregate":
{
"period": "week",
"method": "sum"
},
"slice": [0, 106],
"default": true
},
{
"label": "all",
"tooltip": "Show all data",
"aggregate":
{
"period": "week",
"method": "sum"
}
}
]
}'></canvas>
<div class="info-box">
<p>
The total number of <a href="https://developer.github.com/">GitHub API requests</a>.
Expand Down
32 changes: 31 additions & 1 deletion docs/housekeeping-forks.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,37 @@ <h3>Forks to Organizations</h3>
<canvas
data-url="{{ site.dataURL }}/forks-to-organizations.tsv"
data-type="history"
></canvas>
data-config='{
"views":
[
{
"label": "2 m",
"tooltip": "Show the last 2 months",
"aggregate": false,
"slice": [0, 61]
},
{
"label": "2 y",
"tooltip": "Show the last 2 years",
"aggregate":
{
"period": "week",
"method": "first"
},
"slice": [0, 106],
"default": true
},
{
"label": "all",
"tooltip": "Show all data",
"aggregate":
{
"period": "week",
"method": "first"
}
}
]
}'></canvas>
<div class="info-box">
<p>
Forks to personal user accounts are a great way to contribute code.
Expand Down
32 changes: 31 additions & 1 deletion docs/housekeeping-git-requests.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,37 @@ <h3>Git Requests</h3>
<canvas
data-url="{{ site.dataURL }}/git-requests.tsv"
data-type="history"
></canvas>
data-config='{
"views":
[
{
"label": "2 m",
"tooltip": "Show the last 2 months",
"aggregate": false,
"slice": [0, 61]
},
{
"label": "2 y",
"tooltip": "Show the last 2 years",
"aggregate":
{
"period": "week",
"method": "sum"
},
"slice": [0, 106],
"default": true
},
{
"label": "all",
"tooltip": "Show all data",
"aggregate":
{
"period": "week",
"method": "sum"
}
}
]
}'></canvas>
<div class="info-box">
<p>
The total number of Git requests (includes pushes, fetches, and clones).
Expand Down
98 changes: 88 additions & 10 deletions docs/housekeeping-git-traffic.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,51 @@ <h3>Operations</h3>
data-url="{{ site.dataURL }}/git-download.tsv"
data-type="history"
data-config='{
"series": [
"clones/day",
"fetches/day"
"views":
[
{
"label": "2 m",
"tooltip": "Show the last 2 months",
"aggregate": false,
"series":
[
"clones/day",
"fetches/day"
],
"slice": [0, 61]
},
{
"label": "2 y",
"tooltip": "Show the last 2 years",
"aggregate":
{
"period": "week",
"method": "sum"
},
"series":
[
"clones/day",
"fetches/day"
],
"slice": [0, 106],
"default": true
},
{
"label": "all",
"tooltip": "Show all data",
"aggregate":
{
"period": "week",
"method": "sum"
},
"series":
[
"clones/day",
"fetches/day"
]
}
]
}'
></canvas>
}'></canvas>
<div class="info-box">
<p>
<em>Cloning</em> a Git repository is expensive, as the entire repository history must be transferred.
Expand All @@ -34,12 +73,51 @@ <h3>Transferred Data</h3>
data-url="{{ site.dataURL }}/git-download.tsv"
data-type="history"
data-config='{
"series": [
"clone traffic/day [GB]",
"fetch traffic/day [GB]"
"views":
[
{
"label": "2 m",
"tooltip": "Show the last 2 months",
"aggregate": false,
"series":
[
"clone traffic/day [GB]",
"fetch traffic/day [GB]"
],
"slice": [0, 61]
},
{
"label": "2 y",
"tooltip": "Show the last 2 years",
"aggregate":
{
"period": "week",
"method": "sum"
},
"series":
[
"clone traffic/day [GB]",
"fetch traffic/day [GB]"
],
"slice": [0, 106],
"default": true
},
{
"label": "all",
"tooltip": "Show all data",
"aggregate":
{
"period": "week",
"method": "sum"
},
"series":
[
"clone traffic/day [GB]",
"fetch traffic/day [GB]"
]
}
]
}'
></canvas>
}'></canvas>
<div class="info-box">
<p>
The amount of data transferred for clones and fetches.
Expand Down
32 changes: 31 additions & 1 deletion docs/housekeeping-repo-location.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,37 @@ <h3>Personal Repositories with Nonowner Pushes (Last 4 Weeks)</h3>
<canvas
data-url="{{ site.dataURL }}/repositories-personal-nonowner-pushes.tsv"
data-type="history"
></canvas>
data-config='{
"views":
[
{
"label": "2 m",
"tooltip": "Show the last 2 months",
"aggregate": false,
"slice": [0, 61]
},
{
"label": "2 y",
"tooltip": "Show the last 2 years",
"aggregate":
{
"period": "week",
"method": "first"
},
"slice": [0, 106],
"default": true
},
{
"label": "all",
"tooltip": "Show all data",
"aggregate":
{
"period": "week",
"method": "first"
}
}
]
}'></canvas>
<div class="info-box">
<p>
Repositories in user accounts should only be pushed to by their owners, as these repositories might become unavailable or deleted if the owner leaves the company.
Expand Down
68 changes: 59 additions & 9 deletions docs/orgs-activity.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,66 @@ <h3>Organizations (Active)</h3>
data-url="{{ site.dataURL }}/organization-activity.tsv"
data-type="history"
data-config='{
"series": [
"last four weeks",
"last week",
"last day"
],
"visibleSeries": [
"last four weeks"
"views":
[
{
"label": "2 m",
"tooltip": "Show the last 2 months",
"aggregate": false,
"series":
[
"last four weeks",
"last week",
"last day"
],
"visibleSeries":
[
"last four weeks"
],
"slice": [0, 61]
},
{
"label": "2 y",
"tooltip": "Show the last 2 years",
"aggregate":
{
"period": "week",
"method": "first"
},
"series":
[
"last four weeks",
"last week",
"last day"
],
"visibleSeries":
[
"last four weeks"
],
"slice": [0, 106],
"default": true
},
{
"label": "all",
"tooltip": "Show all data",
"aggregate":
{
"period": "week",
"method": "first"
},
"series":
[
"last four weeks",
"last week",
"last day"
],
"visibleSeries":
[
"last four weeks"
]
}
]
}'
></canvas>
}'></canvas>
<div class="info-box">
<p>
Shows how many organizations are active.
Expand Down
Loading

0 comments on commit 07bfa49

Please sign in to comment.