Skip to content

Commit

Permalink
Fixed django#1119 -- Used GitHub API for commits stats.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixxm committed Oct 27, 2021
1 parent 471587a commit 24c0d07
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 2,672 deletions.
Binary file modified dashboard/fixtures/dashboard_example_data.json.gz
Binary file not shown.
12 changes: 6 additions & 6 deletions dashboard/fixtures/dashboard_production_metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
}
},
{
"model": "dashboard.rssfeedmetric",
"model": "dashboard.githubsearchcountmetric",
"pk": 1,
"fields": {
"name": "Commits today",
Expand All @@ -284,12 +284,12 @@
"period": "daily",
"unit": "commit",
"unit_plural": "commits",
"feed_url": "https://code.djangoproject.com/timeline?changeset=on&max=0&daysback=0&format=rss",
"link_url": "https://code.djangoproject.com/timeline?changeset=on&max=0&daysback=0"
"api_url": "https://api.github.com/search/commits",
"link_url": "https://github.com/django/django/commits"
}
},
{
"model": "dashboard.rssfeedmetric",
"model": "dashboard.githubsearchcountmetric",
"pk": 2,
"fields": {
"name": "Commits in the last week",
Expand All @@ -301,8 +301,8 @@
"period": "weekly",
"unit": "commit",
"unit_plural": "commits",
"feed_url": "https://code.djangoproject.com/timeline?changeset=on&max=0&daysback=7&format=rss",
"link_url": "https://code.djangoproject.com/timeline?changeset=on&max=0&daysback=7"
"api_url": "https://api.github.com/search/commits",
"link_url": "https://github.com/django/django/commits"
}
},
{
Expand Down
16 changes: 8 additions & 8 deletions dashboard/fixtures/dashboard_test_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,33 +180,33 @@
"category": 1,
"show_on_dashboard": true,
"name": "Commits today",
"feed_url": "https://code.djangoproject.com/timeline?changeset=on&max=0&daysback=0&format=rss",
"link_url": "https://code.djangoproject.com/timeline?changeset=on&max=0&daysback=0",
"api_url": "https://api.github.com/search/commits",
"link_url": "https://github.com/django/django/commits",
"period": "daily",
"show_sparkline": true,
"unit_plural": "commits",
"position": 1,
"position": 2,
"slug": "commits-today",
"unit": "commit"
},
"model": "dashboard.rssfeedmetric",
"model": "dashboard.githubsearchcountmetric",
"pk": 1
},
{
"fields": {
"category": 1,
"show_on_dashboard": true,
"name": "Commits in the last week",
"feed_url": "https://code.djangoproject.com/timeline?changeset=on&max=0&daysback=7&format=rss",
"link_url": "https://code.djangoproject.com/timeline?changeset=on&max=0&daysback=7",
"api_url": "https://api.github.com/search/commits",
"link_url": "https://github.com/django/django/commits",
"period": "weekly",
"show_sparkline": true,
"unit_plural": "commits",
"position": 1,
"position": 4,
"slug": "commits-week",
"unit": "commit"
},
"model": "dashboard.rssfeedmetric",
"model": "dashboard.githubsearchcountmetric",
"pk": 2
},
{
Expand Down
Loading

0 comments on commit 24c0d07

Please sign in to comment.