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 ca2da2d5b8ee8a5cb6a2c786ba4f4f2cbacfae42..0000000000000000000000000000000000000000 --- 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 4f2a24e6860570b2210d38fe022cdb14fd6490ee..23c32b189854d099d843fe1d51c1046687d7749b 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 05297baa697d2791648e53a60f42f5117c64ef40..508a60f8f59cfcfedeec736d1048553b18d9f2f9 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')}