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

(CONT-242) Fix duplicate rule detection #1140

Merged
merged 3 commits into from Jun 13, 2023

Conversation

david22swan
Copy link
Member

@david22swan david22swan commented Jun 7, 2023

This was previously accomplished by retrieving the full list of rules each time a rule was set in order to check it was unique. This was to allow the user to choose the response to a duplicate rule being found.

However this caused a massive slowdown within certain module runs and as such we have changed the the location of the check, so that it instead runs a check for any duplicates when retrieving the current rules prior to any updates being made.

As an effect of this the user is now unable to choose the response to a duplicate rule being found, however wee feel that this is a fair tradeoff for the increased speed and that the response that we have chosen is the correct one.

This was previously accomplished b retrieving the full list of rules each time a rule was set in order to check it was unique. This was to allow the user to choose the response to a duplicate rule being found.

However this caused a massive slowdown within certain module runs and as such we have changed the the location of the check, so that it instead runs a check for any duplicates when retrieving the current rules prior to any updates being made.

As an effect of this the user is now unable to choose the response to a duplicate rule being found, however wee feel that this is a fair tradeoff for the increased speed and that the response that we have chosen is the correct one.
@david22swan david22swan requested a review from a team as a code owner June 7, 2023 16:51
@david22swan david22swan force-pushed the CONT-242/main/duplicate_rule branch 3 times, most recently from df14317 to 8b17271 Compare June 7, 2023 17:53
jordanbreen28
jordanbreen28 previously approved these changes Jun 8, 2023
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@GSPatton GSPatton merged commit 6b2a745 into puppetlabs:main Jun 13, 2023
38 checks passed
@david22swan david22swan deleted the CONT-242/main/duplicate_rule branch June 23, 2023 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants