New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #17521: A repaired in system policies should not be seen as a problem for warning display in nodes list #3009
Fixes #17521: A repaired in system policies should not be seen as a problem for warning display in nodes list #3009
Conversation
|
||
function reportsSum (complianceArray) { | ||
if (Array.isArray(complianceArray)) { | ||
return complianceArray.reduce(function(total, value) { return total + reduce} ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happen for reduce when array size is 1? Does it correcty returns the value, or does it fails ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be total+value
(and it's ok for size == 1, I just checked)
|
||
function reportsSum (complianceArray) { | ||
if (Array.isArray(complianceArray)) { | ||
return complianceArray.reduce(function(total, value) { return total + reduce} ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be total+value
(and it's ok for size == 1, I just checked)
PR updated with a new commit |
This PR is not mergeable to upper versions. |
OK, squash merging this PR |
…roblem for warning display in nodes list
ec3e922
to
961410e
Compare
OK, merging this PR |
https://issues.rudder.io/issues/17521