Skip to content
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

Conversation

VinceMacBuche
Copy link
Member

@VinceMacBuche VinceMacBuche requested a review from fanf May 26, 2020 20:23

function reportsSum (complianceArray) {
if (Array.isArray(complianceArray)) {
return complianceArray.reduce(function(total, value) { return total + reduce} )
Copy link
Member

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 ?

Copy link
Member

@fanf fanf May 26, 2020

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} )
Copy link
Member

@fanf fanf May 26, 2020

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)

@VinceMacBuche
Copy link
Member Author

PR updated with a new commit

@Normation-Quality-Assistant
Copy link
Contributor

This PR is not mergeable to upper versions.
Since it is "Ready for merge" you must merge it by yourself using the following command:
rudder-dev merge https://github.com/Normation/rudder/pull/3009
-- Your faithful QA
Kant merge: "To be is to do."
(https://ci.normation.com/jenkins/job/merge-accepted-pr/25228/console)

@fanf
Copy link
Member

fanf commented May 26, 2020

OK, squash merging this PR

@fanf fanf force-pushed the bug_17521/a_repaired_in_system_policies_should_not_be_seen_as_a_problem_for_warning_display_in_nodes_list branch from ec3e922 to 961410e Compare May 26, 2020 21:02
@fanf
Copy link
Member

fanf commented May 26, 2020

OK, merging this PR

@fanf fanf merged commit 6ecab83 into Normation:branches/rudder/6.1 May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants