Commit Graph

164 Commits

Author SHA1 Message Date
James Lopez b805666984 refactor cycle analytics - updated based on MR feedback 2017-01-17 11:32:55 +01:00
James Lopez a67311cb4c Fix other spec failures 2017-01-17 11:32:55 +01:00
James Lopez 02e1e48192 more refactoring and fixing old specs 2017-01-17 11:32:54 +01:00
James Lopez fc6f8f2056 added new summary serializers and refactor all of the summary stuff into separate logical classes 2017-01-17 11:32:54 +01:00
James Lopez dc6ea14b0d fixed stage entity and added missing stage specs 2017-01-17 11:32:54 +01:00
James Lopez a998276223 added analytics stage serializer and moved some info to the stage classes from the controller 2017-01-17 11:32:54 +01:00
James Lopez 3268e37791 WIP - started refactoring cycle analytics median stuff into stages 2017-01-17 11:32:54 +01:00
James Lopez b938aa5cc8 Fix and relevant spec for plan stage breaking with nil commits 2016-11-23 09:10:04 +01:00
James Lopez 9b69168858 refactored a couple of things based on feedback 2016-11-21 14:09:26 +01:00
James Lopez 0fd397bba1 Added permissions per stage to cycle analytics endpoint 2016-11-21 10:49:05 +01:00
James Lopez f5b792e22e refactored updater and updated specs 2016-11-18 13:00:38 +01:00
James Lopez cb353d655b added new build updater, specs and refactored allowed_ids 2016-11-18 12:05:29 +01:00
James Lopez cd222357ad refactor events 2016-11-18 10:13:42 +01:00
James Lopez 24c2aa39ad fix blank state error 2016-11-17 20:54:02 +01:00
James Lopez 98773ef974 preload ids or objects for users, merge request and issues 2016-11-17 20:42:18 +01:00
James Lopez d5b673da79 more refactoring and added some auth checks 2016-11-17 18:00:37 +01:00
James Lopez 9c995725ea fix typo in error message 2016-11-17 15:05:13 +01:00
James Lopez e22b5cca02 remove class no longer required 2016-11-17 15:00:56 +01:00
James Lopez 37a3505019 fix integration spec 2016-11-17 15:00:01 +01:00
James Lopez af80fcb477 fix specs 2016-11-17 14:14:23 +01:00
James Lopez ed39d61d74 refactor events facade so it uses separate classes and refactor query stuff 2016-11-17 13:22:27 +01:00
James Lopez f9de157e70 fix date issue with mySQL only 2016-11-17 08:22:59 +01:00
James Lopez 9e0102e494 small refactor - removing includes no longer needed 2016-11-17 08:22:59 +01:00
James Lopez cf2dcf043c Refactor all query config stuff into separate classes and added specs 2016-11-17 08:22:59 +01:00
James Lopez cbc9f0cd1a fix issue with commits and also updated routes 2016-11-17 08:22:59 +01:00
James Lopez ca6da6ea30 Renamed pipeline column and fixed permissions for builds in events controller 2016-11-17 08:22:58 +01:00
James Lopez 73e9ec6319 serialize all the things! 2016-11-17 08:22:58 +01:00
James Lopez 8743e59f78 get all stages to use serlalizers - apart from plan - WIP 2016-11-17 08:22:58 +01:00
James Lopez f560099751 fix issue events and related spec - now using generic serializer for a hash 2016-11-17 08:22:58 +01:00
James Lopez 747e5c3b6f use request to pass extra parameters 2016-11-17 08:22:58 +01:00
James Lopez 6a2737e6a8 WIP - refactor events to use a generic build entity for some of the hybrid events 2016-11-17 08:22:58 +01:00
James Lopez 3b179bc37b WIP - refactored events to use build serializer, related spec passing 2016-11-17 08:22:58 +01:00
James Lopez 81d0146c4c WIP - refactoring URL builder and events presenter into serializers 2016-11-17 08:22:58 +01:00
James Lopez 4dfcab6ec3 fix iid issue making spec to fail - MySQL only 2016-11-17 08:22:58 +01:00
James Lopez 848ea241db fix MySQL problem with query 2016-11-17 08:22:58 +01:00
James Lopez 2e5c1c27eb fix events presenter after refactoring 2016-11-17 08:22:58 +01:00
James Lopez c6532ee370 refactored light url builder 2016-11-17 08:22:58 +01:00
James Lopez 7ac7cfeb75 refactored and added missing spec to light URL builder 2016-11-17 08:22:57 +01:00
James Lopez 83130ae877 Updated production events with new fields 2016-11-17 08:22:57 +01:00
James Lopez beeb64610e Refactored staging events, added missing fields and fixed specs 2016-11-17 08:22:57 +01:00
James Lopez bd31f24c54 Added branch option to test events
Also fixed test events ordering issue
2016-11-17 08:22:57 +01:00
James Lopez eccb6a5e92 Refactored test events
Now test events return the builds instead a list of pipelines to avoid calling pipeline.builds per each and get the info. Also, added missing fields/data, URLs, and fixed specs in events spec.
2016-11-17 08:22:57 +01:00
James Lopez 11bad33a42 added missing fields to code events and updated spec 2016-11-17 08:22:57 +01:00
James Lopez 1b5b2eac22 added missing fields to plan events and updated spec 2016-11-17 08:22:56 +01:00
James Lopez 8f7266cd4b added missing fields to issue. Also, added a light url builder to add URLs easily from arel. Updated specs. 2016-11-17 08:22:56 +01:00
James Lopez 9ead268cfa some more integration scenarios testing order. Also, fixed bug in the staging and test stages. 2016-11-17 08:22:56 +01:00
James Lopez 85c448d76f fix specs 2016-11-17 08:22:56 +01:00
James Lopez f9fd0ff1ca Some refactoring - used class instead of hash for the query configuration 2016-11-17 08:22:56 +01:00
James Lopez ca9ae8bf63 add email to user related queries so it can be used for displaying avatar in the UI 2016-11-17 08:22:56 +01:00
James Lopez 3cdc9af78e added production events and related spec 2016-11-17 08:22:55 +01:00
James Lopez 275292de47 Refactor the SQL/query stuff into a dynamic class. Also merged all the config in a single hash. 2016-11-17 08:22:55 +01:00
James Lopez 954e18922e fix mySQL error 2016-11-17 08:22:55 +01:00
James Lopez 1f701cb5e2 added staging events and spec 2016-11-17 08:22:55 +01:00
James Lopez f8acc7ea77 fixing spec failures 2016-11-17 08:22:55 +01:00
James Lopez d99cec7f55 review events - spec and logic 2016-11-17 08:22:55 +01:00
James Lopez ebd5ced7eb Added test events specs and logic. Also fixed some SQL and refactored the pipeline worker spec. 2016-11-17 08:22:55 +01:00
James Lopez 1a4ff5d720 Added code events spec and logic. Also fixed SQL issues and refactored the code a bit. 2016-11-17 08:22:55 +01:00
James Lopez 72660d58af plan events and spec working. Also added some TODOs to the code. 2016-11-17 08:22:54 +01:00
James Lopez 3b5d947730 commit events and spec 2016-11-17 08:22:54 +01:00
James Lopez 1d6068a1c3 fix specs - issue events working 2016-11-17 08:22:54 +01:00
James Lopez c545968ece fix timestamp diff and spec 2016-11-17 08:22:54 +01:00
James Lopez 847d2796cf fixed spec and SQL query 2016-11-17 08:22:54 +01:00
James Lopez 470e39d64f WIP - refactored some arel queries 2016-11-17 08:22:54 +01:00
James Lopez ec7db295d2 Started refactoring stuff to add events to cycle analytics
- Refactored cycle analytics class to extract DB logic
- Reuse logic in new events fetcher
- Started adding cycle analytics events class and spec (still not functional)
2016-11-17 08:22:54 +01:00