MinervaNeue/resources/skins.minerva.scripts
jdlrobson f14d9514c6 Fix formatPageIssuesSeverity
The page-issues reducer function that retrieves the severityLevels
for issues was incorrectly comparing two values in the multiple-issues
scenario.

Instead of comparing the severity of the current issue with the previous
value in the accumulator, it was comparing the current issue with the
previous issue in the original array, thus ignoring the
previous `maxSeverity` value in the accumulator.

Tests added and function refactored with more explicit variable names.

Bug: T203725
Change-Id: Ia4c15cbf0c2457d68a7381e8ed04c1a6b3ae65d1
2018-09-07 11:25:16 +02:00
..
AB.js Hygiene: move page issues A/B test logging to file 2018-08-14 20:49:06 +00:00
DownloadIcon.js Fix common typos in code 2018-08-27 20:54:16 +00:00
errorLogging.js Client side error reporting for Minerva+MobileFrontend 2018-08-30 14:35:27 -07:00
init.js Hygiene: Use early returns in a few places for special cases 2018-09-04 21:08:00 +00:00
initLogging.js Hygiene: Cleanup initialisation files 2017-09-07 17:48:58 +00:00
mobileRedirect.js Minerva is its own skin 2017-07-12 08:12:40 -07:00
pageIssues.js Fix formatPageIssuesSeverity 2018-09-07 11:25:16 +02:00
pageIssuesLogger.js Log sectionNumbers in PageIssues schema 2018-08-27 18:02:51 +00:00
PageIssuesOverlay.js page-issues sectionNumbers consistency on modalClose event 2018-09-05 21:29:53 +02:00
PageIssuesOverlay.less Hygiene: IssuesOverlay moved from MobileFrontend to Minerva 2018-08-16 14:06:12 -07:00
PageIssuesOverlayContent.hogan Hygiene: IssuesOverlay moved from MobileFrontend to Minerva 2018-08-16 14:06:12 -07:00
pageIssuesParser.js Hygiene: IssuesOverlay moved from MobileFrontend to Minerva 2018-08-16 14:06:12 -07:00
preInit.js Hygiene: update JSDoc boxed and JQuery types 2018-07-03 11:10:12 -05:00
references.js Hygiene: update JSDoc boxed and JQuery types 2018-07-03 11:10:12 -05:00
search.js Use OverlayManager for SearchOverlay 2018-04-05 15:23:36 +02:00
styles.less Remove unnecessary skins.minerva.base.styles 2018-07-26 01:18:00 +00:00