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

Account for repeating tenants when comparing rules #113

Merged
merged 3 commits into from
Jan 24, 2022

Conversation

dimitarvdimitrov
Copy link
Contributor

Account for a case where one group (g) can have the tenants [tenant-1, tenant-2] and another group (ng) with tenants [tenant-1, tenant-1] will be reported as equal.

Actual effect is that a group will not be reloaded if it has a subset of the tenants of the already existing group with the same namespace and name.

@dimitarvdimitrov dimitarvdimitrov added the bug Something isn't working label Jan 21, 2022
Copy link
Collaborator

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

Can we have a test covering the fix, please?

@dimitarvdimitrov
Copy link
Contributor Author

Thanks for the review, pushed the tests in eae4ac4

@dimitarvdimitrov dimitarvdimitrov merged commit 644605d into main Jan 24, 2022
@dimitarvdimitrov dimitarvdimitrov deleted the dimitar/compare-group-src-tenants-w-dups branch January 24, 2022 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants