2018-07-17 20:37:58 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-09-10 14:08:54 -04:00
|
|
|
class Admin::DevOpsReportController < Admin::ApplicationController
|
2021-04-02 08:09:15 -04:00
|
|
|
include RedisTracking
|
2020-06-22 11:09:27 -04:00
|
|
|
|
2021-01-18 07:10:41 -05:00
|
|
|
helper_method :show_adoption?
|
|
|
|
|
2021-04-02 08:09:15 -04:00
|
|
|
track_redis_hll_event :show, name: 'i_analytics_dev_ops_score', if: -> { should_track_devops_score? }
|
2020-06-22 11:09:27 -04:00
|
|
|
|
2020-10-05 17:08:47 -04:00
|
|
|
feature_category :devops_reports
|
|
|
|
|
2022-03-04 13:20:01 -05:00
|
|
|
urgency :low
|
|
|
|
|
2018-08-27 11:31:01 -04:00
|
|
|
# rubocop: disable CodeReuse/ActiveRecord
|
2020-08-21 14:10:24 -04:00
|
|
|
def show
|
2020-09-10 14:08:54 -04:00
|
|
|
@metric = DevOpsReport::Metric.order(:created_at).last&.present
|
2018-07-17 20:37:58 -04:00
|
|
|
end
|
2018-08-27 11:31:01 -04:00
|
|
|
# rubocop: enable CodeReuse/ActiveRecord
|
2021-01-18 07:10:41 -05:00
|
|
|
|
|
|
|
def show_adoption?
|
|
|
|
false
|
|
|
|
end
|
2021-04-02 08:09:15 -04:00
|
|
|
|
|
|
|
def should_track_devops_score?
|
|
|
|
true
|
|
|
|
end
|
2018-07-17 20:37:58 -04:00
|
|
|
end
|
2021-01-18 07:10:41 -05:00
|
|
|
|
2021-05-11 17:10:21 -04:00
|
|
|
Admin::DevOpsReportController.prepend_mod_with('Admin::DevOpsReportController')
|