Class: Projects::Ci::DailyBuildGroupReportResultsController

Inherits:
ApplicationController
  • Object
show all
Includes:
Gitlab::Utils::StrongMemoize
Defined in:
app/controllers/projects/ci/daily_build_group_report_results_controller.rb

Constant Summary collapse

MAX_ITEMS =
1000
REPORT_WINDOW =
90.days

Instance Method Summary collapse

Methods included from Gitlab::Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Instance Method Details

#indexObject


13
14
15
16
17
18
# File 'app/controllers/projects/ci/daily_build_group_report_results_controller.rb', line 13

def index
  respond_to do |format|
    format.csv { send_data(render_csv(report_results), type: 'text/csv; charset=utf-8') }
    format.json { render json: render_json(report_results) }
  end
end