Commit graph

21 commits

Author SHA1 Message Date
Fatih Acet
bfbd81a873 Fix landing widget state and improve Vue with state management. 2016-09-23 15:07:54 +03:00
Filipa Lacerda
be906c2636 Improves design when in mobile and tablet 2016-09-23 12:11:29 +01:00
Filipa Lacerda
2c2b487dc3 Improvements after review 2016-09-22 19:48:23 +01:00
Filipa Lacerda
43701de5f2 Makes Cycle analytics mobile friendly 2016-09-22 19:43:43 +01:00
Fatih Acet
b5dc0c6da5 Remove unnecessary #{} in cycle analytics template. 2016-09-21 00:19:17 +03:00
Fatih Acet
75272518be Fix typo on cycle analytics copy. 2016-09-21 00:19:17 +03:00
Fatih Acet
17a7688285 Add page title and fix sub menu width in Cycle Analytics page. 2016-09-21 00:19:17 +03:00
Fatih Acet
34a2a690d3 Update Cycle Analytics Read more link URL. 2016-09-21 00:19:17 +03:00
Fatih Acet
461b399538 Simplify vue template for cycle analytics. 2016-09-20 00:12:17 +03:00
Fatih Acet
e49c6f8666 Finalise cycle analytics frontend. 2016-09-19 23:41:36 +03:00
Fatih Acet
40c17f2dd9 Fix layout for cycle analytics. 2016-09-16 20:22:48 +03:00
Fatih Acet
798b17a353 Implement Cycle Analytics frontend. 2016-09-15 00:05:23 +03:00
Timothy Andrew
331080bca6 Fetch cycle analytics data for a specific date range.
1. Supported date ranges are 30 / 90 days ago. The default is 90 days
   ago.

2. All issues created before "x days ago" are filtered out, even if they
   have other related data (test runs, merge requests) within the filter
   range.
2016-08-26 16:28:20 +05:30
Timothy Andrew
ce6bcdd004 Fix minor error in 'CycleAnalytics#show'
- <Not enough data> wasn't being displayed in the 'Issue' and 'Plan'
  sections.
2016-08-26 16:28:20 +05:30
Timothy Andrew
fc92d06635 Add the "Test" cycle analytics section. 2016-08-26 16:28:20 +05:30
Timothy Andrew
3d5729a700 Add the "Production" cycle analytics section.
1. Rewrite the `Queries` module to work off a `data_point` hash, with
   `issue` and `merge_request` as keys. The "production" query needs
   both an issue and a merge request to make it's calculation, so it
   makes sense to keep things consistent and provide the same
   data (issue + merge request) for all queries.
2016-08-26 16:28:20 +05:30
Timothy Andrew
d3fef0fb18 Add the "Staging" cycle analytics section. 2016-08-26 16:28:20 +05:30
Timothy Andrew
14d6317ebc Add the "Review" cycle analytics section. 2016-08-26 16:28:20 +05:30
Timothy Andrew
487906b386 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.
2016-08-26 16:28:20 +05:30
Timothy Andrew
f932bb8e41 Add the "Plan" Cycle Analytics query.
1. Move from raw SQL to ActiveRecord.
2. Add a non-persisted `CycleAnalytics` model to store all the queries.
2016-08-26 16:27:37 +05:30
Timothy Andrew
8ccea81cba Display numbers for the "Issue (Tracker)" cycle analytics metric.
1. Code is messy and untested, but it is a start.
2016-08-26 16:27:37 +05:30