Issue/2345 (#2427)
* add stat_shared_plan to track number of shares of plans owned by org members

* add stat_exported_plan and stat_shared_plan to stats rake task

* added parallelization to the stats tasks/services

* make paralell stats more reliable with imports

* additional import statements for parallel services

* add csv download button for org-admins, make global download super-admin only

* add gemfile.lock for parallel gem

* fix policy and controller usage tests

* refactor services to be non-concurrent by default

* apply fix from PR#2430 to mysql workflow

* upgrade github checkout action to v2

* upgrade remaining github checkout actions to v2

* remove @v2 from the ruby-setup on mysql
dev
1 parent e9704da commit 66e196befd311ee4236267d88e9e15b7c107db58
@Sam Rust Sam Rust authored on 17 Mar 2020
GitHub committed on 17 Mar 2020
Showing 28 changed files
View
.github/workflows/brakeman.yml
View
.github/workflows/eslint.yml
View
.github/workflows/mysql.yml
View
.github/workflows/postgres.yml
View
.github/workflows/rubocop.yml
View
Gemfile
View
Gemfile.lock
View
app/controllers/usage_controller.rb
View
app/models/stat_exported_plan.rb 0 → 100644
View
app/models/stat_exported_plan/create_or_update.rb 0 → 100644
View
app/models/stat_shared_plan.rb 0 → 100644
View
app/models/stat_shared_plan/create_or_update.rb 0 → 100644
View
app/policies/usage_policy.rb
View
app/services/org/create_created_plan_service.rb
View
app/services/org/create_exported_plan_service.rb 0 → 100644
View
app/services/org/create_joined_user_service.rb
View
app/services/org/create_last_month_created_plan_service.rb
View
app/services/org/create_last_month_exported_plan_service.rb 0 → 100644
View
app/services/org/create_last_month_joined_user_service.rb
View
app/services/org/create_last_month_shared_plan_service.rb 0 → 100644
View
app/services/org/create_shared_plan_service.rb 0 → 100644
View
app/services/org/monthly_usage_service.rb 0 → 100644
View
app/views/usage/_total_usage.html.erb
View
config/database.yml.sample
View
config/routes.rb
View
lib/tasks/stat.rake
View
spec/controllers/usage_controller_spec.rb
View
spec/policies/usage_policy_spec.rb