Commit Graph

122 Commits

Author SHA1 Message Date
Filipa Lacerda a29a91f02d
Merge branch 'master' into 22643-manual-job-page
* master: (200 commits)
  Fix issue boards scroll config.
  Added multi editor setting on the profile preferences page
  fix missing import of timeWeek which would cause errors in prometheus graphs with deployments
  Remove downcase from special path helper
  Rename db:seed_fu-{pg,mysql} to gitlab:setup-{pg,mysql}
  Fix error when viewing diffs without blobs
  Moves prettier to dev dependency
  Eager load event target authors whenever possible
  Do not run ee_compat_check on security branches
  Include integration tests in CE/EE testing documentation
  41054-Disallow creation of new Kubernetes integrations
  Resolve "Resizable file list and commit panel"
  Make tooltip placement bottom by default as per design guidelines
  Fix groups list icon, timestamp alignment and row height
  Avoid leaving a push event empty if payload cannot be created
  Move git operations for UpdateRemoteMirrorService into Gitlab::Git
  Move delete_remote_branches from Gitlab::Shell to Gitlab::Git::Repository
  Move push_remote_branches from Gitlab::Shell to Gitlab::Git::Repository
  Update Kubernetes service documentation
  fix issue #37843
  ...
2018-01-04 22:39:01 +00:00
Grzegorz Bizon 3b8cee95a7 Fix cycle analytics specs 2018-01-04 11:28:18 +01:00
blackst0ne 27c95364b5 Replace '.team << [user, role]' with 'add_role(user)' in specs 2017-12-22 19:18:28 +11:00
Lin Jen-Shin 0b6d01ed77 Just define allowed_ids and override it with empty value
if not needed for those sub-classes.
2017-11-22 17:06:57 +08:00
Robert Speicher 4edfad9678 Enable Layout/TrailingWhitespace cop and auto-correct offenses 2017-08-15 13:44:37 -04:00
Robert Speicher 72a7b30c9f Change all `:empty_project` to `:project` 2017-08-02 17:47:31 -04:00
Robert Speicher 9513bd18c4 Ensure all project factories use `:repository` trait or `:empty_project` 2017-08-01 14:51:52 -04:00
Rémy Coutable ddccd24c13 Remove superfluous lib: true, type: redis, service: true, models: true, services: true, no_db: true, api: true
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-27 14:31:53 +02:00
Felipe Artur 921c2be44a Add transient head_pipeline_of to pipeline factories 2017-05-22 17:06:45 -03:00
Felipe Artur d9bebd89df Fix specs 2 2017-05-08 11:29:10 -03:00
Felipe Artur 24824cbb4c Fix Specs 2017-05-08 11:26:04 -03:00
Dmitriy Zaporozhets 11ff9fc6a9 Merge branch '28359-skip-process-commit-worker-unless-issues-referenced' into 'master'
Use regex to skip unnecessary reference processing in ProcessCommitWorker

Closes #28359

See merge request !10867
2017-05-08 12:54:23 +00:00
James Edwards-Jones 29519edb55 Cycle analytics specs needed Commit to reference issue
The plan stage both measures time taken and lists related commits. We test for commits being listed, so needed to actually mention the issue in them. An alternative would have been adding “allow_any_instance_of(Commit).to receive(:matches_cross_reference_regex?).and_return(true)” but this felt too coupled to implementation.
2017-05-04 20:03:47 +01:00
Robert Speicher d49768296c Auto-correct `RSpec/DescribedClass` violations 2017-05-01 11:13:33 -04:00
James Lopez bf05c7e035 fix spec 2017-02-07 09:29:34 +01:00
James Lopez 682e354df6 add spec 2017-02-06 16:28:17 +01:00
James Lopez 58a5d4a9e3 user project and not empty_project as we need the repo stuff 2017-02-06 15:25:21 +01:00
James Lopez 40bc96c902 fix typo [ci skip] 2017-02-06 15:24:50 +01:00
James Lopez 2e54454e61 Add limit to the number of events showed in cycle analytics and spec 2017-02-06 15:24:50 +01:00
Robert Speicher 80a6d2fda2 Use `:empty_project` where possible throughout spec/lib 2017-01-25 12:25:42 -05:00
James Lopez 150a448596 refactored a bunch of stuff based on feedback 2017-01-17 11:32:55 +01:00
James Lopez 30c6703f0a fix specs 2017-01-17 11:32:55 +01:00
James Lopez 982d5a0506 refactored metrics fetcher - merged into stage and events 2017-01-17 11:32:55 +01:00
James Lopez 3f681f4cef fix specs, refactor missing bits from events stuff 2017-01-17 11:32:55 +01:00
James Lopez b214be493d big refactor based on MR feedback 2017-01-17 11:32:55 +01:00
James Lopez daa4f3ded7 fix spec failures after merge 2017-01-17 11:32:55 +01:00
James Lopez 58dddcdfed few fixes after merge 2017-01-17 11:32:55 +01:00
James Lopez b805666984 refactor cycle analytics - updated based on MR feedback 2017-01-17 11:32:55 +01:00
James Lopez e4e313fcca Fix other spec failures 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 dc6ea14b0d fixed stage entity and added missing stage specs 2017-01-17 11:32:54 +01:00
Z.J. van de Weg 1096040024 Update effected tests 2016-12-04 17:32:33 +01:00
Yorick Peterse 6b4d33566f
Pass commit data to ProcessCommitWorker
By passing commit data to this worker we remove the need for querying
the Git repository for every job. This in turn reduces the time spent
processing each job.

The migration included migrates jobs from the old format to the new
format. For this to work properly it requires downtime as otherwise
workers may start producing errors until they're using a newer version
of the worker code.
2016-12-01 13:36:06 +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 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 0aa477884c fix small typo 2016-11-18 12:09:36 +01:00
James Lopez cb353d655b added new build updater, specs and refactored allowed_ids 2016-11-18 12:05:29 +01:00
James Lopez c76ef84781 run pipeline worker in cycle analytics dev setup 2016-11-18 10:50:47 +01:00
James Lopez cd222357ad refactor events 2016-11-18 10:13:42 +01:00
James Lopez e56c305be0 fix spec failures 2016-11-18 08:13:34 +01:00
James Lopez d5b673da79 more refactoring and added some auth checks 2016-11-17 18:00:37 +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 cbd7d00039 added custom date helper and spec and fixed some unrelated spec failures 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 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 3b179bc37b WIP - refactored events to use build serializer, related spec passing 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 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 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