Commit c00e5bfa authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'zj-review-apps-usage-data' into 'master'

Add review apps to usage ping

Closes #33171

See merge request !12185
parents 89f7f98e e7d12a70
......@@ -45,6 +45,7 @@ class Environment < ActiveRecord::Base
.to_sql
order(Gitlab::Database.nulls_first_order("(#{max_deployment_id_sql})", 'ASC'))
end
scope :in_review_folder, -> { where(environment_type: "review") }
state_machine :state, initial: :available do
event :start do
......
---
title: Add review apps to usage metrics
merge_request: 12185
author:
......@@ -27,6 +27,7 @@ module Gitlab
deploy_keys: DeployKey.count,
deployments: Deployment.count,
environments: Environment.count,
in_review_folder: Environment.in_review_folder.count,
groups: Group.count,
issues: Issue.count,
keys: Key.count,
......
......@@ -37,6 +37,7 @@ describe Gitlab::UsageData do
deploy_keys
deployments
environments
in_review_folder
groups
issues
keys
......
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