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

fix: alert rules remove omitempty #528

Merged
merged 1 commit into from
Aug 8, 2023
Merged

Conversation

jon-stewart
Copy link
Contributor

Issue:

https://lacework.atlassian.net/browse/GROW-2361

Description:

Empty arrays in AlertRule are excluded from requests to the Lacework API, making it impossible to remove resource groups. The root of the problem is the JSON config omitempty.

This fix removes the JSON config omitempty.

Additional Info:

Testing by creating and updating alert_rules with the following combinations against the fields changed in this commit:

  • array populated
  • empty array
  • field missing

@jon-stewart jon-stewart self-assigned this Aug 8, 2023
@jon-stewart jon-stewart requested a review from a team as a code owner August 8, 2023 09:04
@jon-stewart jon-stewart merged commit 2f01217 into main Aug 8, 2023
@jon-stewart jon-stewart deleted the jon-stewart/alert-rules branch August 8, 2023 12:20
This was referenced Aug 8, 2023
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