-
- Downloads
Add the "Code" Cycle Analytics section.
1. Record the `wip_flag_first_removed_at` and `first_assigned_to_user_other_than_author` metrics for a merge request. Use a `merge_request_metrics` table, similar to the one for `issues`. Metrics are recorded `after_save`. 2. Move larger queries to a `CycleAnalytics::Queries` module.
Showing
- app/models/cycle_analytics.rb 12 additions, 9 deletionsapp/models/cycle_analytics.rb
- app/models/cycle_analytics/queries.rb 26 additions, 0 deletionsapp/models/cycle_analytics/queries.rb
- app/models/merge_request.rb 8 additions, 0 deletionsapp/models/merge_request.rb
- app/models/merge_request/metrics.rb 15 additions, 0 deletionsapp/models/merge_request/metrics.rb
- app/views/projects/cycle_analytics/show.html.haml 15 additions, 2 deletionsapp/views/projects/cycle_analytics/show.html.haml
- db/migrate/20160825052008_add_table_merge_request_metrics.rb 36 additions, 0 deletionsdb/migrate/20160825052008_add_table_merge_request_metrics.rb
- db/schema.rb 12 additions, 1 deletiondb/schema.rb
Loading
Please register or sign in to comment