-
-
Notifications
You must be signed in to change notification settings - Fork 939
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #363 from django/dashboard
Add dev-dashboard
- Loading branch information
Showing
69 changed files
with
28,626 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ secrets.json | |
.sass-cache/ | ||
.coverage | ||
.tox | ||
djangoproject/static/js/lib/jquery-flot/examples |
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
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
Empty file.
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,27 @@ | ||
from __future__ import absolute_import | ||
|
||
from django.contrib import admin | ||
from .models import Category, Metric, Datum | ||
|
||
|
||
@admin.register(Category) | ||
class CategoryAdmin(admin.ModelAdmin): | ||
list_display = ('name', 'position') | ||
list_editable = ('position',) | ||
ordering = ('position',) | ||
|
||
|
||
class MetricAdmin(admin.ModelAdmin): | ||
list_display = ('name', 'category', 'position', 'show_on_dashboard', 'show_sparkline', 'period') | ||
list_editable = ('show_on_dashboard', 'category', 'position', 'show_sparkline', 'period') | ||
ordering = ('category__position', 'position') | ||
prepopulated_fields = {'slug': ['name']} | ||
|
||
|
||
for MC in Metric.__subclasses__(): | ||
admin.site.register(MC, MetricAdmin) | ||
|
||
|
||
@admin.register(Datum) | ||
class DatumAdmin(admin.ModelAdmin): | ||
list_display = ('timestamp', 'metric', 'measurement') |
Binary file not shown.
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,246 @@ | ||
[ | ||
{ | ||
"fields": { | ||
"position": 1, | ||
"name": "Activity" | ||
}, | ||
"model": "dashboard.category", | ||
"pk": 1 | ||
}, | ||
{ | ||
"fields": { | ||
"position": 2, | ||
"name": "Patches" | ||
}, | ||
"model": "dashboard.category", | ||
"pk": 2 | ||
}, | ||
{ | ||
"fields": { | ||
"position": 3, | ||
"name": "Tickets by triage stage" | ||
}, | ||
"model": "dashboard.category", | ||
"pk": 3 | ||
}, | ||
{ | ||
"fields": { | ||
"position": 4, | ||
"name": "Accepted tickets by type" | ||
}, | ||
"model": "dashboard.category", | ||
"pk": 4 | ||
}, | ||
{ | ||
"fields": { | ||
"category": 3, | ||
"show_on_dashboard": true, | ||
"name": "Unreviewed tickets", | ||
"period": "instant", | ||
"show_sparkline": true, | ||
"query": "status=!closed&stage=Unreviewed", | ||
"unit_plural": "tickets", | ||
"position": 1, | ||
"slug": "unreviewed", | ||
"unit": "ticket" | ||
}, | ||
"model": "dashboard.tracticketmetric", | ||
"pk": 1 | ||
}, | ||
{ | ||
"fields": { | ||
"category": 2, | ||
"show_on_dashboard": true, | ||
"name": "Patches needing review", | ||
"period": "instant", | ||
"show_sparkline": true, | ||
"query": "status=!closed&needs_better_patch=0&needs_tests=0&needs_docs=0&has_patch=1&stage=Accepted", | ||
"unit_plural": "tickets", | ||
"position": 1, | ||
"slug": "patches", | ||
"unit": "ticket" | ||
}, | ||
"model": "dashboard.tracticketmetric", | ||
"pk": 2 | ||
}, | ||
{ | ||
"fields": { | ||
"category": 2, | ||
"show_on_dashboard": true, | ||
"name": "Doc. patches needing review", | ||
"period": "instant", | ||
"show_sparkline": true, | ||
"query": "status=!closed&needs_better_patch=0&component=Documentation&needs_tests=0&needs_docs=0&has_patch=1&stage=Accepted", | ||
"unit_plural": "tickets", | ||
"position": 1, | ||
"slug": "doc-patches", | ||
"unit": "ticket" | ||
}, | ||
"model": "dashboard.tracticketmetric", | ||
"pk": 3 | ||
}, | ||
{ | ||
"fields": { | ||
"category": 3, | ||
"show_on_dashboard": true, | ||
"name": "Tickets needing design decision", | ||
"period": "instant", | ||
"show_sparkline": true, | ||
"query": "status=!closed&stage=Design decision needed", | ||
"unit_plural": "tickets", | ||
"position": 1, | ||
"slug": "ddn", | ||
"unit": "ticket" | ||
}, | ||
"model": "dashboard.tracticketmetric", | ||
"pk": 4 | ||
}, | ||
{ | ||
"fields": { | ||
"category": 3, | ||
"show_on_dashboard": true, | ||
"name": "Tickets ready for commit", | ||
"period": "instant", | ||
"show_sparkline": true, | ||
"query": "status=!closed&stage=Ready for checkin", | ||
"unit_plural": "tickets", | ||
"position": 1, | ||
"slug": "rfc", | ||
"unit": "ticket" | ||
}, | ||
"model": "dashboard.tracticketmetric", | ||
"pk": 5 | ||
}, | ||
{ | ||
"fields": { | ||
"category": 1, | ||
"show_on_dashboard": true, | ||
"name": "Release blockers", | ||
"period": "instant", | ||
"show_sparkline": true, | ||
"query": "status=!closed&severity=Release blocker", | ||
"unit_plural": "tickets", | ||
"position": 1, | ||
"slug": "blockers", | ||
"unit": "ticket" | ||
}, | ||
"model": "dashboard.tracticketmetric", | ||
"pk": 6 | ||
}, | ||
{ | ||
"fields": { | ||
"category": 1, | ||
"show_on_dashboard": true, | ||
"name": "New tickets this week", | ||
"period": "weekly", | ||
"show_sparkline": true, | ||
"query": "time=thisweek..", | ||
"unit_plural": "tickets", | ||
"position": 1, | ||
"slug": "new-tickets-week", | ||
"unit": "ticket" | ||
}, | ||
"model": "dashboard.tracticketmetric", | ||
"pk": 7 | ||
}, | ||
{ | ||
"fields": { | ||
"category": 1, | ||
"show_on_dashboard": true, | ||
"name": "New tickets today", | ||
"period": "daily", | ||
"show_sparkline": true, | ||
"query": "time=today..", | ||
"unit_plural": "tickets", | ||
"position": 1, | ||
"slug": "new-tickets-today", | ||
"unit": "ticket" | ||
}, | ||
"model": "dashboard.tracticketmetric", | ||
"pk": 8 | ||
}, | ||
{ | ||
"fields": { | ||
"category": 2, | ||
"show_on_dashboard": true, | ||
"name": "\"Easy\" tickets", | ||
"period": "instant", | ||
"show_sparkline": true, | ||
"query": "status=!closed&easy=1&stage=Accepted", | ||
"unit_plural": "tickets", | ||
"position": 1, | ||
"slug": "easy-tickets", | ||
"unit": "ticket" | ||
}, | ||
"model": "dashboard.tracticketmetric", | ||
"pk": 9 | ||
}, | ||
{ | ||
"fields": { | ||
"category": 1, | ||
"show_on_dashboard": true, | ||
"name": "Commits today", | ||
"feed_url": "http://code.djangoproject.com/timeline?changeset=on&max=0&daysback=0&format=rss", | ||
"link_url": "http://code.djangoproject.com/timeline?changeset=on&max=0&daysback=0", | ||
"period": "daily", | ||
"show_sparkline": true, | ||
"unit_plural": "commits", | ||
"position": 1, | ||
"slug": "commits-today", | ||
"unit": "commit" | ||
}, | ||
"model": "dashboard.rssfeedmetric", | ||
"pk": 1 | ||
}, | ||
{ | ||
"fields": { | ||
"category": 1, | ||
"show_on_dashboard": true, | ||
"name": "Commits in the last week", | ||
"feed_url": "http://code.djangoproject.com/timeline?changeset=on&max=0&daysback=7&format=rss", | ||
"link_url": "http://code.djangoproject.com/timeline?changeset=on&max=0&daysback=7", | ||
"period": "weekly", | ||
"show_sparkline": true, | ||
"unit_plural": "commits", | ||
"position": 1, | ||
"slug": "commits-week", | ||
"unit": "commit" | ||
}, | ||
"model": "dashboard.rssfeedmetric", | ||
"pk": 2 | ||
}, | ||
{ | ||
"fields": { | ||
"category": 2, | ||
"show_on_dashboard": true, | ||
"name": "Pull Requests (Open)", | ||
"link_url": "https://github.com/django/django/pulls", | ||
"period": "instant", | ||
"show_sparkline": true, | ||
"unit_plural": "pull requests", | ||
"position": 1, | ||
"slug": "pull-requests-open", | ||
"unit": "pull request", | ||
"api_url": "https://api.github.com/repos/django/django/pulls?state=open" | ||
}, | ||
"model": "dashboard.githubitemcountmetric", | ||
"pk": 1 | ||
}, | ||
{ | ||
"fields": { | ||
"category": 2, | ||
"show_on_dashboard": true, | ||
"name": "Pull Requests (Closed)", | ||
"link_url": "https://github.com/django/django/pulls", | ||
"period": "instant", | ||
"show_sparkline": true, | ||
"unit_plural": "pull requests", | ||
"position": 1, | ||
"slug": "pull-requests-closed", | ||
"unit": "pull request", | ||
"api_url": "https://api.github.com/repos/django/django/pulls?state=closed" | ||
}, | ||
"model": "dashboard.githubitemcountmetric", | ||
"pk": 2 | ||
} | ||
] |
Oops, something went wrong.