From 12db1d90a30565ba26957af7577e11c8124968c1 Mon Sep 17 00:00:00 2001 From: Mark Fletcher Date: Mon, 24 Jun 2019 14:35:06 +0100 Subject: [PATCH] Redirect dashboard to Native insights --- .../application/bugs_past_slo.coffee | 23 ---------------- app/views/groups/bugs_past_slo.html.haml | 1 - app/views/shared/_bugs_past_slo.html.haml | 27 ++++--------------- 3 files changed, 5 insertions(+), 46 deletions(-) delete mode 100644 app/assets/javascripts/application/bugs_past_slo.coffee diff --git a/app/assets/javascripts/application/bugs_past_slo.coffee b/app/assets/javascripts/application/bugs_past_slo.coffee deleted file mode 100644 index ca2da2d..0000000 --- a/app/assets/javascripts/application/bugs_past_slo.coffee +++ /dev/null @@ -1,23 +0,0 @@ -BugsPastSloChart = (element) -> - query = @queries.ScopedQuery(@queries.IssuablesPerLabelQuery( - 'Open', - @query_strings.BugsPastSlo, - @query_strings.Priorities, - @query_strings.IssuesScope - )) - @charts.BarChart(element, query.query_string, query.view_string) - -CustomerBugsPastSloChart = (element) -> - query = @queries.ScopedQuery(@queries.IssuablesPerLabelQuery( - 'Open', - @query_strings.CustomerBugsPastSlo, - @query_strings.Priorities, - @query_strings.IssuesScope - )) - @charts.BarChart(element, query.query_string, query.view_string) - -$(document).ready () -> - if document.getElementById('open-bugs-past-slo') - BugsPastSloChart(document.getElementById('open-bugs-past-slo')) - if document.getElementById('open-customer-bugs-past-slo') - CustomerBugsPastSloChart(document.getElementById('open-customer-bugs-past-slo')) diff --git a/app/views/groups/bugs_past_slo.html.haml b/app/views/groups/bugs_past_slo.html.haml index 4f2a24e..23c32b1 100644 --- a/app/views/groups/bugs_past_slo.html.haml +++ b/app/views/groups/bugs_past_slo.html.haml @@ -1,2 +1 @@ = render partial: 'shared/bugs_past_slo', locals: { source: @group } -= render partial: 'shared/project_level_links', locals: { group: @group, name: 'bugs past slo', link: method(:group_project_bugs_past_slo_path) } diff --git a/app/views/shared/_bugs_past_slo.html.haml b/app/views/shared/_bugs_past_slo.html.haml index 05297ba..508a60f 100644 --- a/app/views/shared/_bugs_past_slo.html.haml +++ b/app/views/shared/_bugs_past_slo.html.haml @@ -2,26 +2,9 @@ .page-header %h1.page-title= "Dashboard: #{source.path}" .page-header - %h2.page-title Bugs By Team + %h2.page-title Bugs Past SLO .row.row-cards - .col-lg-12 - .card - .card-header - %h3.card-title Open Bugs Past SLO - .card-body - %canvas#open-bugs-past-slo - .card-body - %div - %div.text-wrap - %p Displays number of open bugs with the `missed-SLO` label. Label will automatically be applied by the rule introduced #{link_to 'here', 'https://gitlab.com/gitlab-org/quality/triage-ops/merge_requests/125'} - .row.row-cards - .col-lg-12 - .card - .card-header - %h3.card-title Open Customer Bugs Past SLO - .card-body - %canvas#open-customer-bugs-past-slo - .card-body - %div - %div.text-wrap - %p Displays number of open customer bugs with the `missed-SLO` label. Label will automatically be applied by the rule introduced #{link_to 'here', 'https://gitlab.com/gitlab-org/quality/triage-ops/merge_requests/125'} + .card + .card-body + %div.text-wrap + %p This dashboard has been migrated to `gitlab-org` insights and is available #{link_to('here', 'https://gitlab.com/groups/gitlab-org/-/insights')} -- GitLab