Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
gitlab-org
gitlab-exporter
Commits
a4679985
Commit
a4679985
authored
Feb 23, 2018
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Satisfy rubocop
parent
cae49a98
Pipeline
#77738
passed with stage
in 17 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Gemfile.lock
Gemfile.lock
+3
-3
lib/gitlab_monitor/database/row_count.rb
lib/gitlab_monitor/database/row_count.rb
+2
-2
No files found.
Gemfile.lock
View file @
a4679985
PATH
remote: .
specs:
gitlab-monitor (2.
6
.0)
gitlab-monitor (2.
7
.0)
connection_pool (~> 2.2.1)
pg (~> 0.18.4)
quantile (~> 0.2.0)
...
...
@@ -25,7 +25,7 @@ GEM
rack-protection (1.5.3)
rack
rainbow (2.1.0)
redis (3.3.
3
)
redis (3.3.
5
)
redis-namespace (1.5.3)
redis (~> 3.0, >= 3.0.4)
rspec (3.5.0)
...
...
@@ -69,4 +69,4 @@ DEPENDENCIES
rubocop (~> 0.42)
BUNDLED WITH
1.1
3.2
1.1
6.1
lib/gitlab_monitor/database/row_count.rb
View file @
a4679985
...
...
@@ -7,7 +7,7 @@ module GitLab
# queries in the QUERIES constant. If in doubt how these work, read
# #construct_query
class
RowCountCollector
<
Base
WHERE_MIRROR_ENABLED
=
<<~
SQL
WHERE_MIRROR_ENABLED
=
<<~
SQL
.
freeze
projects.mirror = true
AND project_mirror_data.retry_count <= 14
AND (projects.visibility_level = 20 OR plans.name IN ('early_adopter', 'bronze', 'silver', 'gold'));
...
...
@@ -21,7 +21,7 @@ module GitLab
LEFT JOIN plans ON namespaces.plan_id = plans.id
SQL
check:
"SELECT 1 FROM information_schema.tables WHERE table_name='project_mirror_data'"
}
}
.
freeze
QUERIES
=
{
mirrors_ready_to_sync:
MIRROR_QUERY
.
merge
(
# EE only
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment