Commit 394ea2f9 authored by Shinya Maeda's avatar Shinya Maeda

Set polling interval to the header in test_reports endpoint

parent 7a68f970
...@@ -102,6 +102,8 @@ class Projects::MergeRequestsController < Projects::MergeRequests::ApplicationCo ...@@ -102,6 +102,8 @@ class Projects::MergeRequestsController < Projects::MergeRequests::ApplicationCo
def test_reports def test_reports
result = @merge_request.compare_test_reports result = @merge_request.compare_test_reports
Gitlab::PollingInterval.set_header(response, interval: 10_000)
case result[:status] case result[:status]
when :parsing when :parsing
render json: '', status: :no_content render json: '', status: :no_content
......
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