From 78763d13a5c7a988d93c5a75aaaa757ae76af3e1 Mon Sep 17 00:00:00 2001 From: Barbara Wulnikowska Date: Wed, 2 Dec 2020 10:22:03 +0100 Subject: [PATCH 1/4] Modify table in request monitoring --- .../main/url/reports/request-monitoring.html | 43 +++++++++++++++++-- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git a/report/src/main/webapp/app/layout/main/url/reports/request-monitoring.html b/report/src/main/webapp/app/layout/main/url/reports/request-monitoring.html index a5058c48e..679293bbf 100644 --- a/report/src/main/webapp/app/layout/main/url/reports/request-monitoring.html +++ b/report/src/main/webapp/app/layout/main/url/reports/request-monitoring.html @@ -25,8 +25,27 @@ + + + + + + + + + + + + + + + + + + +
-

Total size: {{case.result.totalSize.toFixed(2)}} kB

+

Total size: {{case.result.totalSize.toFixed(4)}} kB

@@ -36,9 +55,27 @@

Total size: {{case.result.totalSize.toFixed(2)}} kB

- + + + + + + + + + + + + + - + + From af59e659561bf7e9d9fe74fbbe903f2bdb72d1b1 Mon Sep 17 00:00:00 2001 From: Barbara Wulnikowska Date: Wed, 2 Dec 2020 14:16:44 +0100 Subject: [PATCH 2/4] Additional section with unexpected assets --- .../app/layout/main/url/mainView.url.controller.js | 1 + .../layout/main/url/reports/request-monitoring.html | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/report/src/main/webapp/app/layout/main/url/mainView.url.controller.js b/report/src/main/webapp/app/layout/main/url/mainView.url.controller.js index aca6ebba0..f3721f78e 100644 --- a/report/src/main/webapp/app/layout/main/url/mainView.url.controller.js +++ b/report/src/main/webapp/app/layout/main/url/mainView.url.controller.js @@ -64,6 +64,7 @@ define([], function () { cases.push(caseFactory.getCase(step, comparator, index)); }); }); + console.log({cases}); return cases; } diff --git a/report/src/main/webapp/app/layout/main/url/reports/request-monitoring.html b/report/src/main/webapp/app/layout/main/url/reports/request-monitoring.html index 679293bbf..5d7183312 100644 --- a/report/src/main/webapp/app/layout/main/url/reports/request-monitoring.html +++ b/report/src/main/webapp/app/layout/main/url/reports/request-monitoring.html @@ -55,16 +55,16 @@

Total size: {{case.result.totalSize.toFixed(4)}} kB

- - - - - + + + + From b8655b173124c251f12c56d6627f36eea6f936b9 Mon Sep 17 00:00:00 2001 From: Barbara Wulnikowska Date: Fri, 4 Dec 2020 08:41:27 +0100 Subject: [PATCH 3/4] Change ng-if for item with danger style --- .../webapp/app/layout/main/url/reports/request-monitoring.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report/src/main/webapp/app/layout/main/url/reports/request-monitoring.html b/report/src/main/webapp/app/layout/main/url/reports/request-monitoring.html index 5d7183312..73a36480c 100644 --- a/report/src/main/webapp/app/layout/main/url/reports/request-monitoring.html +++ b/report/src/main/webapp/app/layout/main/url/reports/request-monitoring.html @@ -61,7 +61,7 @@

Total size: {{case.result.totalSize.toFixed(4)}} kB

+ ng-repeat="item in case.result.results.size >= maxSize"> From 705f463fc9666af1c195fe86a2365f829e65c62f Mon Sep 17 00:00:00 2001 From: Barbara Wulnikowska Date: Tue, 8 Dec 2020 11:43:21 +0100 Subject: [PATCH 4/4] Remove console log and comment part of code for colouring failing items with proper comment --- .../main/url/mainView.url.controller.js | 1 - .../main/url/reports/request-monitoring.html | 47 ++++++------------- 2 files changed, 15 insertions(+), 33 deletions(-) diff --git a/report/src/main/webapp/app/layout/main/url/mainView.url.controller.js b/report/src/main/webapp/app/layout/main/url/mainView.url.controller.js index f3721f78e..aca6ebba0 100644 --- a/report/src/main/webapp/app/layout/main/url/mainView.url.controller.js +++ b/report/src/main/webapp/app/layout/main/url/mainView.url.controller.js @@ -64,7 +64,6 @@ define([], function () { cases.push(caseFactory.getCase(step, comparator, index)); }); }); - console.log({cases}); return cases; } diff --git a/report/src/main/webapp/app/layout/main/url/reports/request-monitoring.html b/report/src/main/webapp/app/layout/main/url/reports/request-monitoring.html index 73a36480c..971da9d69 100644 --- a/report/src/main/webapp/app/layout/main/url/reports/request-monitoring.html +++ b/report/src/main/webapp/app/layout/main/url/reports/request-monitoring.html @@ -25,27 +25,8 @@ - - - - - - - - - - - - - - - - - - -
-

Total size: {{case.result.totalSize.toFixed(4)}} kB

+

Total size: {{case.result.totalSize.toFixed(2)}} kB

{{$index+1}}{{item.url}}{{item.size.toFixed(2)}} + Unexpected assets: +
{{item.code}}
+ All gathered assets: +
{{$index+1}}{{item.url}}{{item.code}}{{item.url}} {{item.size.toFixed(2)}}
{{$index+1}}{{item.url}}{{item.size.toFixed(2)}} +
Unexpected assets:
{{$index+1}}{{item.url}}{{item.size.toFixed(2)}} {{item.code}}
{{$index+1}} {{item.url}} {{item.size.toFixed(2)}}
@@ -55,18 +36,20 @@

Total size: {{case.result.totalSize.toFixed(4)}} kB

- - - - - - - - - + + + + + + + + + + + + + +
- Unexpected assets: -
{{$index+1}}{{item.url}}{{item.size.toFixed(2)}}{{item.code}}
All gathered assets: