-
- Downloads
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.
Showing
- app/assets/javascripts/dispatcher.js 1 addition, 0 deletionsapp/assets/javascripts/dispatcher.js
- app/controllers/admin/application_settings_controller.rb 6 additions, 1 deletionapp/controllers/admin/application_settings_controller.rb
- app/controllers/admin/user_cohorts_controller.rb 7 additions, 0 deletionsapp/controllers/admin/user_cohorts_controller.rb
- app/services/user_cohorts_service.rb 49 additions, 0 deletionsapp/services/user_cohorts_service.rb
- app/views/admin/application_settings/_form.html.haml 1 addition, 1 deletionapp/views/admin/application_settings/_form.html.haml
- app/views/admin/dashboard/_head.html.haml 4 additions, 0 deletionsapp/views/admin/dashboard/_head.html.haml
- app/views/admin/user_cohorts/_cohorts_table.html.haml 37 additions, 0 deletionsapp/views/admin/user_cohorts/_cohorts_table.html.haml
- app/views/admin/user_cohorts/_usage_ping.html.haml 10 additions, 0 deletionsapp/views/admin/user_cohorts/_usage_ping.html.haml
- app/views/admin/user_cohorts/index.html.haml 16 additions, 0 deletionsapp/views/admin/user_cohorts/index.html.haml
- changelogs/unreleased-ee/user-cohorts.yml 4 additions, 0 deletionschangelogs/unreleased-ee/user-cohorts.yml
- config/routes/admin.rb 2 additions, 0 deletionsconfig/routes/admin.rb
- spec/services/user_cohorts_service_spec.rb 42 additions, 0 deletionsspec/services/user_cohorts_service_spec.rb
app/services/user_cohorts_service.rb
0 → 100644
app/views/admin/user_cohorts/index.html.haml
0 → 100644
changelogs/unreleased-ee/user-cohorts.yml
0 → 100644
spec/services/user_cohorts_service_spec.rb
0 → 100644
Please register or sign in to comment