Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Fix multi variable policies #441

Merged
merged 3 commits into from
Dec 24, 2017
Merged

Fix multi variable policies #441

merged 3 commits into from
Dec 24, 2017

Conversation

mihaidma
Copy link
Contributor

In case of policies with variables you could assign the same policy to the same user but having different variables. The checkPoliciesOrg was failing because in this case where you have duplicate policy IDs the query returns less results that the policy array as the query does not return duplicate entries.

Added also a fix on the decoreateUdaruCore retrieval, config was of type Reconfig and confg properties are accessed using .get(property)

@coveralls
Copy link

coveralls commented Dec 23, 2017

Coverage Status

Coverage remained the same at 96.261% when pulling 6565532 on fix/multi-variable-policies into 6cdcb9c on master.

}, {
key: 'sharedPolicy'
}]
policies: [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you do me the favour of "duplicating" policyWithVariables rather than policyWithVariablesMulti (btw to me this name kind of suggested some kind of feature... which is not the case 😕 )

For someone reading the tests for policies with variables for the first time, I must say that the names and values chosen lean more towards confusion and not clarity. But no need to take action If you don't feel like 😄

Copy link
Contributor

@floridemai floridemai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.Nice work!

@coveralls
Copy link

coveralls commented Dec 24, 2017

Coverage Status

Coverage remained the same at 96.261% when pulling d0de679 on fix/multi-variable-policies into 6cdcb9c on master.

@floridemai
Copy link
Contributor

Thank you. :shipit:

@mihaidma mihaidma merged commit 51ea9e5 into master Dec 24, 2017
@mihaidma mihaidma deleted the fix/multi-variable-policies branch December 24, 2017 23:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants