Commit 9504208a authored by Z.J. van de Weg's avatar Z.J. van de Weg

Make query CE/EE agnostic

The query we used refferenced a EE column directly, breaking CE compat.
This query changes that behaviour by using a wildcard match on all
projects colums.

The code which interprets the results can already handle extra columns.
Query was copy-pasted from
https://gitlab.com/gitlab-org/gitlab-monitor/issues/25#note_30414761
and solves gitlab-org/gitlab-monitor#25
parent 07ff1536
Pipeline #49812 passed with stage
in 25 seconds
......@@ -32,9 +32,7 @@ module GitLab
SELECT
ci_builds.runner_id,
ci_runners.is_shared,
projects.mirror,
projects.pending_delete,
projects.mirror_trigger_builds,
projects.*,
ci_pipelines.pipeline_schedule_id,
ci_builds.trigger_request_id,
COUNT(*) AS count
......@@ -49,9 +47,7 @@ module GitLab
AND ci_builds.status = 'running'
GROUP BY
ci_builds.runner_id,
projects.mirror,
projects.pending_delete,
projects.mirror_trigger_builds,
projects.id,
ci_runners.is_shared,
ci_pipelines.pipeline_schedule_id,
ci_builds.trigger_request_id
......
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