From 50f703f95aa001bbd01a374286f66c4b5a4ceaf3 Mon Sep 17 00:00:00 2001 From: Steve Azzopardi Date: Thu, 25 Oct 2018 11:53:00 +0000 Subject: [PATCH] Move job stuck status to backend --- .../javascripts/jobs/components/job_app.vue | 6 +- .../jobs/components/stuck_block.vue | 16 +- app/assets/javascripts/jobs/store/getters.js | 11 +- app/serializers/build_details_entity.rb | 1 + ...ing-isjobstuck-verification-to-backend.yml | 5 + .../projects/jobs_controller_spec.rb | 2 + spec/features/projects/jobs_spec.rb | 56 +++++++ .../fixtures/api/schemas/job/job_details.json | 3 +- .../jobs/components/job_app_spec.js | 150 ++++++++++++------ spec/javascripts/jobs/store/getters_spec.js | 58 +++---- 10 files changed, 206 insertions(+), 102 deletions(-) create mode 100644 changelogs/unreleased/52202-consider-moving-isjobstuck-verification-to-backend.yml diff --git a/app/assets/javascripts/jobs/components/job_app.vue b/app/assets/javascripts/jobs/components/job_app.vue index ba14aaeed2c..ac19034f69d 100644 --- a/app/assets/javascripts/jobs/components/job_app.vue +++ b/app/assets/javascripts/jobs/components/job_app.vue @@ -77,11 +77,11 @@ 'shouldRenderCalloutMessage', 'shouldRenderTriggeredLabel', 'hasEnvironment', - 'isJobStuck', 'hasTrace', 'emptyStateIllustration', 'isScrollingDown', 'emptyStateAction', + 'hasRunnersForProject', ]), shouldRenderContent() { @@ -195,9 +195,9 @@ diff --git a/app/assets/javascripts/jobs/components/stuck_block.vue b/app/assets/javascripts/jobs/components/stuck_block.vue index a60643b2c65..1d5789b175a 100644 --- a/app/assets/javascripts/jobs/components/stuck_block.vue +++ b/app/assets/javascripts/jobs/components/stuck_block.vue @@ -23,14 +23,7 @@ export default {