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

198 policy service issue with logical deletion in policy service leading to conflict on policy recreation #199

Conversation

aliprax
Copy link
Contributor

@aliprax aliprax commented Nov 29, 2024

Description

This pull request fixes an issue in the policy service where duplicate name checks did not properly account for the IS_LAST_VERSION flag. Previously, the check would cause conflicts when recreating policies with the same names as logically deleted policies.

Changes

  • Updated the duplicate name check logic to ensure it only considers policies where IS_LAST_VERSION = true.
  • Added appropriate tests to verify the updated behavior.

Issue Addressed

Resolves the problem where attempting to create a policy with the same name as a logically deleted one would result in an error.

Testing

  • Tested creating new policies with the same names as previously deleted ones to confirm no conflicts occur.

@gabrielefantini gabrielefantini merged commit d0b57a9 into main Dec 4, 2024
1 check passed
@gabrielefantini gabrielefantini deleted the 198-policy-service-issue-with-logical-deletion-in-policy-service-leading-to-conflict-on-policy-recreation branch December 4, 2024 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Policy service] Issue with Logical Deletion in Policy Service Leading to Conflict on Policy Recreation
2 participants