From 0483019e9800dc1b4ef4493890f815f047b7c04e Mon Sep 17 00:00:00 2001 From: Sean McGivern Date: Wed, 5 Apr 2017 13:29:48 +0100 Subject: Port 'Add more usage data to EE ping' to CE CE port of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/735 --- config/routes/admin.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'config/routes/admin.rb') diff --git a/config/routes/admin.rb b/config/routes/admin.rb index 486ce3c5c87..3c1c2ce2582 100644 --- a/config/routes/admin.rb +++ b/config/routes/admin.rb @@ -91,6 +91,7 @@ namespace :admin do resource :application_settings, only: [:show, :update] do resources :services, only: [:index, :edit, :update] + get :usage_data put :reset_runners_token put :reset_health_check_token put :clear_repository_check_states -- cgit v1.2.1 From 81022d76671a3c8961f6969542f8968901668a5f Mon Sep 17 00:00:00 2001 From: Sean McGivern Date: Thu, 30 Mar 2017 16:48:33 +0100 Subject: Add user cohorts table to admin area This table shows the percentage of users who registered in the last twelve months, who last signed in during or later than each of those twelve months, by month. It is only enabled when the usage ping is enabled, and the page also shows pretty-printed usage ping data. The cohorts table is generated in Ruby from some basic SQL queries, because performing the gap-filling and running sums needed in both MySQL and Postgres is painful. --- config/routes/admin.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config/routes/admin.rb') diff --git a/config/routes/admin.rb b/config/routes/admin.rb index 3c1c2ce2582..5b44d449b2b 100644 --- a/config/routes/admin.rb +++ b/config/routes/admin.rb @@ -106,6 +106,8 @@ namespace :admin do end end + resources :user_cohorts, only: :index + resources :builds, only: :index do collection do post :cancel_all -- cgit v1.2.1 From 5b698082323e019e47b5c739cdec0300b521340b Mon Sep 17 00:00:00 2001 From: Sean McGivern Date: Wed, 5 Apr 2017 11:24:15 +0100 Subject: Rename user cohorts -> cohorts --- config/routes/admin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/routes/admin.rb') diff --git a/config/routes/admin.rb b/config/routes/admin.rb index 5b44d449b2b..52ba10604d4 100644 --- a/config/routes/admin.rb +++ b/config/routes/admin.rb @@ -106,7 +106,7 @@ namespace :admin do end end - resources :user_cohorts, only: :index + resources :cohorts, only: :index resources :builds, only: :index do collection do -- cgit v1.2.1