Skip to content

Creates vue component for warning block about stuck runners

Filipa Lacerda requested to merge 50101-stuck-component into master

What does this MR do?

  • Creates vue component for warning block about stuck runners

Moves this haml block: https://gitlab.com/gitlab-org/gitlab-ee/blob/master/app/views/projects/jobs/show.html.haml#L11

.bs-callout.bs-callout-warning.js-build-stuck
  %p
    - if no_runners_for_project?(@build.project)
      This job is stuck, because the project doesn't have any runners online assigned to it.
    - elsif @build.tags.any?
      This job is stuck, because you don't have any active runners online with any of these tags assigned to them:
      - @build.tags.each do |tag|
        %span.badge.badge-primary
          = tag
    - else
      This job is stuck, because you don't have any active runners that can run this job.

    %br
    Go to
      = link_to project_runners_path(@build.project, anchor: 'js-runners-settings') do
        Runners page

Note: this may need some adjustments once we get the full API, but shouldn't change much.

Screenshots (if relevant)

Screen_Shot_2018-08-09_at_14.48.42

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

#50101 (closed)

Merge request reports