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

Don't drop Rules from file storage after migration to Policies #741

Merged
merged 1 commit into from
Mar 15, 2023

Conversation

gigovich
Copy link
Contributor

Describe your changes

Rego policy migration clears the rules property of the file storage, but it does not allow rollback management upgrade, so this changes pre-saves rules in the file store and updates it from the policies.

Issue ticket number and link

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

@gigovich gigovich requested review from braginini and mlsmaycon March 14, 2023 12:56
@gigovich gigovich force-pushed the fix-rego-pre-save-rules branch from cc8325a to b7b7aa1 Compare March 14, 2023 13:11
Copy link
Collaborator

@mlsmaycon mlsmaycon left a comment

Choose a reason for hiding this comment

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

LGTM

@gigovich gigovich merged commit 2a1efbd into main Mar 15, 2023
@gigovich gigovich deleted the fix-rego-pre-save-rules branch March 15, 2023 05:42
pulsastrix pushed a commit to pulsastrix/netbird that referenced this pull request Dec 24, 2023
…rdio#741)

Rego policy migration clears the rules property of the file storage, but it does not allow rollback management upgrade, so this changes pre-saves rules in the file store and updates it from the policies.
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.

2 participants