Commit Graph

151 Commits

Author SHA1 Message Date
GitLab Bot 1741eab29c Add latest changes from gitlab-org/gitlab@master 2020-12-08 03:09:37 +00:00
GitLab Bot e701659ba3 Add latest changes from gitlab-org/gitlab@master 2020-12-03 21:09:35 +00:00
GitLab Bot 708ee0bcb2 Add latest changes from gitlab-org/gitlab@master 2020-09-17 18:10:12 +00:00
GitLab Bot 71da5de44f Add latest changes from gitlab-org/gitlab@master 2020-08-05 15:09:59 +00:00
GitLab Bot 3ce55b46df Add latest changes from gitlab-org/gitlab@master 2020-07-22 18:09:27 +00:00
GitLab Bot ead1d2523c Add latest changes from gitlab-org/gitlab@master 2020-06-04 15:08:21 +00:00
GitLab Bot a5650b86b5 Add latest changes from gitlab-org/gitlab@master 2020-05-13 21:08:55 +00:00
GitLab Bot 8ff63012e9 Add latest changes from gitlab-org/gitlab@master 2020-05-12 15:10:33 +00:00
GitLab Bot db061f4432 Add latest changes from gitlab-org/gitlab@master 2020-04-22 18:09:52 +00:00
GitLab Bot e33f87ac0f Add latest changes from gitlab-org/gitlab@master 2020-04-21 15:21:10 +00:00
GitLab Bot 09093c1278 Add latest changes from gitlab-org/gitlab@master 2020-04-15 18:09:36 +00:00
GitLab Bot a8de96bff5 Add latest changes from gitlab-org/gitlab@master 2020-03-05 18:08:19 +00:00
GitLab Bot 0c6bc5443a Add latest changes from gitlab-org/gitlab@master 2020-02-07 21:08:39 +00:00
GitLab Bot e4ea43b2b8 Add latest changes from gitlab-org/gitlab@master 2020-01-27 21:08:47 +00:00
GitLab Bot 045c0f9554 Add latest changes from gitlab-org/gitlab@master 2020-01-06 12:07:56 +00:00
Aakriti Gupta 9e674f92a3 Prevent guests from seeing commits for cycle analytics
- if the user has access level lower than REPORTER,
don't include commit count in summary
2019-11-20 10:35:58 +01:00
GitLab Bot b570d73ecd Add latest changes from gitlab-org/gitlab@master 2019-11-19 12:06:00 +00:00
GitLab Bot ded8ee5a09 Add latest changes from gitlab-org/gitlab@master 2019-11-01 15:06:21 +00:00
GitLab Bot 8e45d25f7d Add latest changes from gitlab-org/gitlab@master 2019-10-16 18:08:01 +00:00
GitLab Bot f155cc9034 Add latest changes from gitlab-org/gitlab@master 2019-10-16 03:06:12 +00:00
GitLab Bot 8c8b94e711 Add latest changes from gitlab-org/gitlab@master 2019-10-07 21:07:54 +00:00
Gosia Ksionek 6c5e948013 Fix error on project name
Add project path to sql query to build proper path
2019-08-05 21:15:00 +00:00
Małgorzata Ksionek 822129b6b7 Change sql query 2019-07-23 22:00:50 +02:00
Małgorzata Ksionek 5ce4236b66 Add code review remarks
Add cr remarks

Improve specs according to the review

Fix schema

Add cr remarks

Fix naming

Add cr remarks
2019-07-23 12:01:39 +02:00
Małgorzata Ksionek 1b102f5d11 Add basic project extraction
To allow project filtering

Prepare summary for accepting multiple groups

Modify deploys group summary class

Add filtering by project name in issues summary

Fix rubocop offences

Add changelog entry

Change name to id in project filtering

Fix rebase problem

Add project extraction
2019-07-23 12:01:39 +02:00
Małgorzata Ksionek 18535eb411 Add code review remarks
Change small things for better readability
2019-07-16 18:45:15 +02:00
Małgorzata Ksionek 1dde18f394 Add code review remarks
Make specs more readable
2019-07-16 12:33:42 +02:00
Małgorzata Ksionek beaa635306 Add class for group level analytics
Add specs for group level

Update entities

Update base classes

Add groups-centric changes

Update plan and review stage

Add summary classes

Add summary spec

Update specs files

Add to specs test cases for group

Add changelog entry

Add group serializer

Fix typo

Fix typo

Add fetching namespace in sql query

Update specs

Add rubocop fix

Add rubocop fix

Modify method to be in sync with code review

Add counting deploys from subgroup

To group summary stage

Add subgroups handling

In group stage summary

Add additional spec

Add additional specs

Add more precise inheritance

Add attr reader to group level

Fix rubocop offence

Fix problems with specs

Add cr remarks

Renaming median method and a lot of calls in specs

Move spec setup

Rename method in specs

Add code review remarks regarding module

Add proper module name
2019-07-15 15:06:40 +02:00
Małgorzata Ksionek 198df06fea Add attribute reader 2019-07-10 13:22:29 +02:00
Małgorzata Ksionek 2d283dd403 Add guard clause 2019-07-09 12:16:38 +02:00
Małgorzata Ksionek 3459ba13b2 Add cr remarks 2019-07-09 12:16:38 +02:00
Małgorzata Ksionek f6423fa468 Add code review remarks 2019-07-09 12:16:38 +02:00
Małgorzata Ksionek 21bc038b8d Add one method to base event fetcher
FIx file
2019-07-09 12:16:37 +02:00
Małgorzata Ksionek 04dea6546a Fix rubocop offences 2019-07-09 12:16:37 +02:00
Małgorzata Ksionek ae2514d0a1 Update class calls 2019-07-09 12:16:37 +02:00
Małgorzata Ksionek abca34d08e Modify base class for cycle analytics fetching 2019-07-09 12:16:37 +02:00
Małgorzata Ksionek 68a5e20532 Change constant path 2019-07-09 12:16:37 +02:00
Gosia Ksionek 976b8b5391 Fix plan stage query
Fix plan stage query and the way it is displayed
2019-06-17 13:17:18 +00:00
Andrew Newdigate 3288e1a874 Adds the Rubocop ReturnNil cop
This style change enforces `return if ...` instead of
`return nil if ...` to save maintainers a few minor review points
2019-03-06 17:51:56 +02:00
gfyoung 7e6f6e1603 Enable even more frozen string in lib/gitlab
Enables frozens string for the following:

* lib/gitlab/conflict/**/*.rb
* lib/gitlab/cross_project_access/**/*.rb
* lib/gitlab/cycle_analytics/**/*.rb
* lib/gitlab/data_builder/**/*.rb
* lib/gitlab/database/**/*.rb
* lib/gitlab/dependency_linker/**/*.rb
* lib/gitlab/diff/**/*.rb
* lib/gitlab/downtime_check/**/*.rb
* lib/gitlab/email/**/*.rb
* lib/gitlab/etag_caching/**/*.rb

Partially addresses gitlab-org/gitlab-ce#47424.
2018-11-06 22:47:32 -08:00
Kim Carlbäcker 1d50b6a4ad Migrate CycleAnalytics::CommitCount to Gitaly 2018-06-11 12:59:11 +00:00
Jacob Vosmaer (GitLab) edb9db37ed Add "deny disk access" Gitaly feature (tripswitch) 2018-06-01 11:56:29 +00:00
Tiago Botelho 522f4b2c6a Adapt cycle analytics spec helper and cycle analytics usage data spec 2018-03-01 16:43:26 +00:00
Tiago Botelho 335ee79a73 Refactors median code to work with both single and multiple projects 2018-02-28 10:46:20 +00:00
Tiago Botelho 3f31da9c69 Restrict cycle analytics usage data to instances that use postgres only 2018-02-28 10:46:20 +00:00
Tiago Botelho 41bb23ae1d Restore memoization to base query and add a batch base query method 2018-02-28 10:46:20 +00:00
Tiago Botelho 4fcbcce364 Add BatchLoader as a way to refactor the base stage code 2018-02-28 10:46:20 +00:00
Tiago Botelho 7c109c5750 Refactor CycleAnalytics base stage class and model 2018-02-28 10:46:19 +00:00
Tiago Botelho a7b3f11edd Adds get all medians to Cycle Analytics model 2018-02-28 10:46:19 +00:00
Yorick Peterse d0b8f536a1
Remove soft removals related code
This removes all usage of soft removals except for the "pending delete"
system implemented for projects. This in turn simplifies all the query
plans of the models that used soft removals. Since we don't really use
soft removals for anything useful there's no point in keeping it around.

This _does_ mean that hard removals of issues (which only admins can do
if I'm not mistaken) can influence the "iid" values, but that code is
broken to begin with. More on this (and how to fix it) can be found in
https://gitlab.com/gitlab-org/gitlab-ce/issues/31114.

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/37447
2018-01-08 17:04:45 +01:00