You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2018/12/17 12:23:51 UTC

[GitHub] dspavlov closed pull request #102: IGNITE-10454 separate muted tests

dspavlov closed pull request #102: IGNITE-10454 separate muted tests
URL: https://github.com/apache/ignite-teamcity-bot/pull/102
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/ignite-tc-helper-web/src/main/webapp/mutes.html b/ignite-tc-helper-web/src/main/webapp/mutes.html
index ee8e7675..eb16b59e 100644
--- a/ignite-tc-helper-web/src/main/webapp/mutes.html
+++ b/ignite-tc-helper-web/src/main/webapp/mutes.html
@@ -68,6 +68,8 @@
             //     console.log(result);
             // }
 
+            let mutes = separateMutedTests(result);
+
             let table = $('#table');
 
             let testNameMatcher = new RegExp("\\.(\\w+\\d*):.*\\.([a-z][$\\w]+\\w+\\d*)");
@@ -78,7 +80,7 @@
             table.dataTable().fnDestroy();
 
             table.DataTable({
-                data: result,
+                data: mutes,
                 "iDisplayLength": 30, //rows to be shown by default
                 stateSave: true,
                 columnDefs: [
@@ -196,6 +198,33 @@
                 .order( [[ 0, 'asc' ], [ 1, 'asc' ]] )
                 .draw();
         }
+
+        function separateMutedTests(result) {
+            let mutes = [];
+
+            for (let mute of result) {
+                if (!isDefinedAndFilled(mute.target.test) || mute.target.test.length === 1) {
+                    mutes.push(mute);
+
+                    continue;
+                }
+
+                for (let t of mute.target.test) {
+                    let separateTest = {
+                        id: mute.id,
+                        assignment: mute.assignment,
+                        scope: mute.scope,
+                        ticketStatus: mute.ticketStatus
+                    };
+
+                    separateTest.target = {test: [t]};
+
+                    mutes.push(separateTest);
+                }
+            }
+
+            return mutes;
+        }
     </script>
 </head>
 <body>


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services