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
b077b6ea
Commit
b077b6ea
authored
Mar 31, 2021
by
Rajendra Kadam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Read project min/max from existing min/max methods
parent
4680be77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/gitlab/usage_data.rb
lib/gitlab/usage_data.rb
+2
-2
No files found.
lib/gitlab/usage_data.rb
View file @
b077b6ea
...
...
@@ -389,8 +389,8 @@ module Gitlab
# rubocop: disable CodeReuse/ActiveRecord
def
container_expiration_policies_usage
results
=
{}
start
=
::
Project
.
minimum
(
:id
)
finish
=
::
Project
.
maximum
(
:id
)
start
=
project_minimum_id
finish
=
project_maximum_id
results
[
:projects_with_expiration_policy_disabled
]
=
distinct_count
(
::
ContainerExpirationPolicy
.
where
(
enabled:
false
),
:project_id
,
start:
start
,
finish:
finish
)
# rubocop: disable UsageData/LargeTable
...
...
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