Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b8ecb7bc
Commit
b8ecb7bc
authored
May 19, 2020
by
Rajendra Kadam
Committed by
Peter Leitzen
May 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix leaky constant in statistics api spec
parent
d194f3dc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
.rubocop.yml
.rubocop.yml
+0
-1
changelogs/unreleased/leaky-constant-fix-13.yml
changelogs/unreleased/leaky-constant-fix-13.yml
+5
-0
spec/requests/api/statistics_spec.rb
spec/requests/api/statistics_spec.rb
+2
-2
No files found.
.rubocop.yml
View file @
b8ecb7bc
...
...
@@ -390,7 +390,6 @@ RSpec/LeakyConstantDeclaration:
-
'
spec/models/tree_spec.rb'
-
'
spec/policies/merge_request_policy_spec.rb'
-
'
spec/requests/api/graphql/tasks/task_completion_status_spec.rb'
-
'
spec/requests/api/statistics_spec.rb'
-
'
spec/rubocop/cop/rspec/env_assignment_spec.rb'
-
'
spec/serializers/commit_entity_spec.rb'
-
'
spec/services/ci/retry_build_service_spec.rb'
...
...
changelogs/unreleased/leaky-constant-fix-13.yml
0 → 100644
View file @
b8ecb7bc
---
title
:
Fix leaky constant issue in statistics api spec
merge_request
:
32042
author
:
Rajendra Kadam
type
:
fixed
spec/requests/api/statistics_spec.rb
View file @
b8ecb7bc
...
...
@@ -4,7 +4,7 @@ require 'spec_helper'
describe
API
::
Statistics
,
'Statistics'
do
include
ProjectForksHelper
TABLES_TO_ANALYZE
=
%w[
tables_to_analyze
=
%w[
projects
users
namespaces
...
...
@@ -62,7 +62,7 @@ describe API::Statistics, 'Statistics' do
# Make sure the reltuples have been updated
# to get a correct count on postgresql
TABLES_TO_ANALYZE
.
each
do
|
table
|
tables_to_analyze
.
each
do
|
table
|
ActiveRecord
::
Base
.
connection
.
execute
(
"ANALYZE
#{
table
}
"
)
end
...
...
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