Commit 6fd8037f authored by Dylan Griffith's avatar Dylan Griffith

Merge branch '220481-harden-security-ci-build-job-queries' into 'master'

Harden security ci build job queries

See merge request gitlab-org/gitlab!33966
parents 6bfef2d2 8b583725
---
title: Harden security ci build job queries
merge_request: 33966
author:
type: performance
......@@ -364,7 +364,10 @@ module EE
}
SECURE_PRODUCT_TYPES.each do |secure_type, attribs|
results["#{prefix}#{attribs[:name]}".to_sym] = distinct_count(::Ci::Build.where(name: secure_type).where(time_period), :user_id)
results["#{prefix}#{attribs[:name]}".to_sym] = distinct_count(::Ci::Build.where(name: secure_type).where(time_period),
:user_id,
start: user_minimum_id,
finish: user_maximum_id)
end
# handle license rename https://gitlab.com/gitlab-org/gitlab/issues/8911
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment