Commit graph

18 commits

Author SHA1 Message Date
Alexis Reigel
a1094e2316
add type filter to admin runners page 2018-09-24 16:04:10 +02:00
Yorick Peterse
f0e7b5e7a3
Cleaned up CI runner administration code
In https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/19625 some
changes were introduced that do not meet our abstraction reuse rules.
This commit cleans up some of these changes so the requirements are met.

Most notably, sorting of the runners in Admin::RunnersFinder has been
delegated to Ci::Runner.order_by, similar to how we order data in
models that include the Sortable module. If we need more sort orders in
the future we can include Sortable and have Ci::Runner.order_by call
`super` to delegate to Sortable.order_by.
2018-09-14 15:05:46 +02:00
Grzegorz Bizon
55c23a0935 Merge branch 'feature/runner-state-filter-for-admin-view' into 'master'
Feature: State filter for admin runners view

See merge request gitlab-org/gitlab-ce!19625
2018-09-14 09:03:44 +00:00
Stan Hu
32b96bfd81 Merge branch 'frozen-string-app-finders-graphql' into 'master'
Enable frozen string in app/graphql + app/finders

See merge request gitlab-org/gitlab-ce!21681
2018-09-13 19:44:31 +00:00
gfyoung
47b3038434 Enable frozen string in app/graphql + app/finders
Partially addresses #47424.
2018-09-11 12:15:23 -07:00
Yorick Peterse
2039c8280d
Disable existing offenses for the CodeReuse cops
This whitelists all existing offenses for the various CodeReuse cops, of
which most are triggered by the CodeReuse/ActiveRecord cop.
2018-09-11 17:32:00 +02:00
Alexis Reigel
7d316a9bbb
enable frozen string literal on runners finder 2018-08-29 15:02:54 +02:00
Alexis Reigel
34bdb74740
add sort dropdown to admin runners page 2018-08-29 15:02:54 +02:00
Alexis Reigel
89b30999c2
use filtered search bar for admin runners 2018-08-29 15:02:54 +02:00
Alexis Reigel
0a0350be00
extract filter/sort/paging logic to finder class 2018-08-20 17:15:11 +02:00
Yorick Peterse
7a233b37cd
Remove code for dynamically generating routes
This adds a database migration that creates routes for any projects and
namespaces that don't already have one. We also remove the runtime code
for dynamically creating routes, as this is no longer necessary.
2018-07-25 16:41:29 +02:00
blackst0ne
3d3b46f344 [Rails5] Rename sort methods to sort_by_attribute 2018-04-04 09:19:47 +00:00
Stan Hu
48f0eff37a Remove N+1 queries in /admin/projects page 2018-03-19 08:32:57 -07:00
Stan Hu
351d0c28dc Fix timeouts loading /admin/projects page
These extra sort keys caused sequential scans on the namespaces and projects
page. Removing them makes the page load on GitLab.com.

Closes #44338
2018-03-15 20:48:04 -07:00
Mehdi Lahmam
55f4ddad2b Add an option to list only archived projects
Closes #35994
2017-08-24 10:11:07 +02:00
Mehdi Lahmam
d184f27ed3 Refactor Admin::ProjectsFinder by extracting finders as private methods 2017-08-24 10:11:00 +02:00
Tiago Botelho
21066e827a Pending delete projects no longer return 500 error in Admins projects view 2017-08-11 11:45:09 +01:00
Maxim Rydkin
fab1b0f1d1 Decrease ABC threshold to 56.96 2017-07-24 10:54:16 +00:00