This repository has been archived by the owner on Mar 26, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ticket/next/5866' into next
* ticket/next/5866: (#5866) Get a consolidated report for baseline diffs in a group (#5866) Split dividing diff into pass and fail into a method maint: Fixing bad view logic related to enable_read_only_mode maint: Remove unused, user related views
- Loading branch information
Showing
13 changed files
with
259 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#sidebar= render 'shared/node_manager_sidebar' | ||
#main | ||
.header | ||
%h2 | ||
Diff Report for | ||
= @node_group.name | ||
- unless @nodes_without_latest_inspect_reports.empty? | ||
.item | ||
%h2 No latest inspect report | ||
= @nodes_without_latest_inspect_reports.map {|node| link_to node.name, node_path(node)}.join(", ") | ||
- unless @nodes_without_baselines.empty? | ||
.item | ||
%h2 No baseline | ||
= @nodes_without_baselines.map {|node| link_to node.name, node_path(node)}.join(", ") | ||
- unless @nodes_without_differences.empty? | ||
.item | ||
%h2 No differences from baseline | ||
= @nodes_without_differences.map {|node| link_to node.name, node_path(node)}.join(", ") | ||
- unless @nodes_with_differences.empty? | ||
.item | ||
%h2 Nodes with difference from baseline | ||
%a{ :href => '#', :class => ['expand-all', 'button'] } expand all | ||
%br | ||
- @nodes_with_differences.each do |diff_information| | ||
= render 'reports/diff', | | ||
:baseline_report => diff_information[:baseline_report], | | ||
:my_report => diff_information[:last_inspect_report], | | ||
:resource_statuses => diff_information[:resource_statuses], | | ||
:diff => diff_information[:report_diff] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
- show_expand_all_link ||= false | ||
.header | ||
%h4 | ||
Comparing | ||
= render 'reports/report_title', :report => my_report | ||
%br | ||
against baseline | ||
= render 'reports/report_title', :report => baseline_report | ||
.item | ||
%h4 | ||
= pluralize(resource_statuses[:failure].length, 'Mismatch') | ||
- if resource_statuses[:failure].present? && show_expand_all_link | ||
%a{ :href => '#', :class => 'expand-all' } (expand all) | ||
- if resource_statuses[:failure].present? | ||
%dl#baseline-diff-report | ||
- resource_statuses[:failure].each do |resource| | ||
%dt{:class => cycle( 'odd', 'even' )} | ||
= link_to h(resource), {}, {:class => 'expandable-link collapsed-link'} | ||
%dd.expandable.collapsed | ||
%table | ||
%tr | ||
%th Property | ||
%th Actual | ||
%th Baseline | ||
- diff[ resource ].each do |property, expected_actual| | ||
%tr | ||
- baseline, actual = expected_actual | ||
%td= h property | ||
%td= h actual | ||
%td= h baseline | ||
%h4= pluralize(resource_statuses[:pass].length, 'Match') | ||
- if resource_statuses[:pass].present? | ||
%dl#baseline-diff-report | ||
- resource_statuses[:pass].each do |resource| | ||
%dt{:class => cycle( 'odd', 'even' )} | ||
%span{:class => 'non-expandable-bullet'} | ||
= h(resource) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,8 @@ | ||
#sidebar= render 'shared/node_manager_sidebar' | ||
#main | ||
.header | ||
%h2 | ||
Comparing | ||
= render 'report_title', :report => @my_report | ||
%br | ||
against baseline | ||
= render 'report_title', :report => @baseline_report | ||
.item | ||
%h4 | ||
= pluralize(@resource_statuses[:failure].length, 'Mismatch') | ||
- if @resource_statuses[:failure].present? | ||
%a{ :href => '#', :class => 'expand-all' } (expand all) | ||
- if @resource_statuses[:failure].present? | ||
%dl#baseline-diff-report | ||
- @resource_statuses[:failure].each do |resource| | ||
%dt{:class => cycle( 'odd', 'even' )} | ||
= link_to h(resource), {}, {:class => 'expandable-link collapsed-link'} | ||
%dd.expandable.collapsed | ||
%table | ||
%tr | ||
%th Property | ||
%th Actual | ||
%th Baseline | ||
- @diff[ resource ].each do |property, expected_actual| | ||
%tr | ||
- baseline, actual = expected_actual | ||
%td= h property | ||
%td= h actual | ||
%td= h baseline | ||
%h4= pluralize(@resource_statuses[:pass].length, 'Match') | ||
- if @resource_statuses[:pass].present? | ||
%dl#baseline-diff-report | ||
- @resource_statuses[:pass].each do |resource| | ||
%dt{:class => cycle( 'odd', 'even' )} | ||
%span{:class => 'non-expandable-bullet'} | ||
= h(resource) | ||
= render 'diff', | | ||
:baseline_report => @baseline_report, | | ||
:my_report => @my_report, | | ||
:resource_statuses => @resource_statuses, | | ||
:diff => @diff, | | ||
:show_expand_all_link => true |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.