Skip to content

Instantly share code, notes, and snippets.

@wlach
Created May 5, 2015 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wlach/7fa3c8c33c234de8630c to your computer and use it in GitHub Desktop.
Save wlach/7fa3c8c33c234de8630c to your computer and use it in GitHub Desktop.
diff --git a/webapp/app/js/perf.js b/webapp/app/js/perf.js
index b9681ca..908d60f 100644
--- a/webapp/app/js/perf.js
+++ b/webapp/app/js/perf.js
@@ -82,6 +82,8 @@ perf.factory('PhSeries', ['$http', 'thServiceDomain', function($http, thServiceD
});
if (series) {
+ // if it is not a summary series, then find the summary series
+ // corresponding to it (could be more than one) and use that
if (!series.subtestSignatures) {
series = _.filter(lists.seriesList,
function(s) {
@@ -90,8 +92,8 @@ perf.factory('PhSeries', ['$http', 'thServiceDomain', function($http, thServiceD
});
});
}
- subtestSignatures = _.union(_.map(series, 'subtestSignatures'))[0];
- suiteName = _.union(_.map(series, 'name'))[0];
+ subtestSignatures = _.union(_.flatten(_.pluck(series, 'subtestSignatures')));
+ suiteName = _.union(_.pluck(series, 'name'))[0];
}
//For each subtest, find the matching series in the list and store it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment