Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev_ops_report_controller.rb « admin « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4ebc643be330cf6477758b8f8b9d5578eb49f4ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

class Admin::DevOpsReportController < Admin::ApplicationController
  include Analytics::UniqueVisitsHelper

  helper_method :show_adoption?

  track_unique_visits :show, target_id: 'i_analytics_dev_ops_score'

  feature_category :devops_reports

  # rubocop: disable CodeReuse/ActiveRecord
  def show
    @metric = DevOpsReport::Metric.order(:created_at).last&.present
  end
  # rubocop: enable CodeReuse/ActiveRecord

  def show_adoption?
    false
  end
end

Admin::DevOpsReportController.prepend_if_ee('EE::Admin::DevOpsReportController')