-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lars Schneider
committed
Jan 31, 2018
1 parent
14da15e
commit 91f5c02
Showing
6 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
organization team members | ||
gamma admins 15 | ||
epsilon great team 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
date legacy admin teams | ||
2018-01-30 1 | ||
2018-01-29 4 | ||
2018-01-28 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
layout: default | ||
title: Teams | ||
permalink: /recommendations-legacy-teams | ||
--- | ||
|
||
<div class="chart-placeholder"> | ||
<h3>Legacy Admin Teams</h3> | ||
<canvas | ||
data-url="{{ site.dataURL }}/teams-legacy.tsv" | ||
data-type="history" | ||
></canvas> | ||
<div class="info-box"> | ||
<p> | ||
Organizations created before September 2015 might have legacy admin teams. | ||
In order to get the best performance out of GitHub Enterprise, these teams | ||
should be <a href="https://help.github.com/enterprise/2.11/user/articles/migrating-your-previous-admin-teams-to-the-improved-organization-permissions/">migrated to the improved permissions model</a>. | ||
</p> | ||
</div> | ||
</div> | ||
|
||
<div class="chart-placeholder"> | ||
<table data-url="{{ site.dataURL }}/teams-legacy-detailed.tsv"></table> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
from .ReportDaily import * | ||
|
||
# Organizations created before September 2015 might have legacy admin | ||
# teams. In order to get the best performance out of GHE, these teams | ||
# should be migrated to the improved permissions model. | ||
# c.f. https://help.github.com/enterprise/2.11/user/articles/migrating-your-previous-admin-teams-to-the-improved-organization-permissions/ | ||
class ReportTeamsLegacy(ReportDaily): | ||
def name(self): | ||
return "teams-legacy" | ||
|
||
def updateDailyData(self): | ||
self.detailedHeader, self.detailedData = self.parseData( | ||
self.executeGHEConsole(''' | ||
puts "organization\tteam\tmembers\n" | ||
User.where(:type => "Organization") | ||
.order("login") | ||
.each do |o| | ||
if o.teams && o.teams.legacy_admin.size > 0 | ||
o.teams.legacy_admin.order("name").each { |t| | ||
puts "#{o.login}\t#{t.name}\t#{t.members.size}" | ||
} | ||
end | ||
end | ||
''') | ||
) | ||
if len(self.data) == 0: | ||
self.header = ["date", "legacy admin teams"] | ||
self.data.append([str(self.yesterday()), len(self.detailedData)]) | ||
self.truncateData(self.timeRangeTotal()) | ||
self.sortDataByDate() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters