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: deprecate alert_rule event_categories attribute #545

Merged

Conversation

dmurray-lacework
Copy link
Collaborator

@dmurray-lacework dmurray-lacework commented Aug 29, 2023

Issue: https://lacework.atlassian.net/browse/GROW-2333

Description:
The alert_rule field event_categories has been renamed to alert_subcategories in the Alert Rule UI.

This change marks event_categories as deprecated in favour of alert_subcategories to maintain parity with the Lacework UI.

  • Resource resource_lacework_alert_rule has been updated to include the field alert_subcategories and set event_categories to deprecated
  • Docs have been updated to reflect the attribute change
  • Test integration/resource_lacework_alert_rule_test.go has been updated to use alert_subcategories

Testing

  • integration/resource_lacework_alert_rule_test.go integration test has been updated with the new field.

Signed-off-by: Darren Murray <darren.murray@lacework.net>
@dmurray-lacework dmurray-lacework requested a review from a team as a code owner August 29, 2023 14:11
Signed-off-by: Darren Murray <darren.murray@lacework.net>
docs/resources/alert_rule.md Outdated Show resolved Hide resolved
Signed-off-by: Darren Murray <darren.murray@lacework.net>
Signed-off-by: Darren Murray <darren.murray@lacework.net>
Signed-off-by: Darren Murray <darren.murray@lacework.net>
Signed-off-by: Darren Murray <darren.murray@lacework.net>
Copy link
Contributor

@afiune afiune left a comment

Choose a reason for hiding this comment

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

Signed-off-by: Darren Murray <darren.murray@lacework.net>
@dmurray-lacework dmurray-lacework merged commit e9231c9 into main Aug 30, 2023
@dmurray-lacework dmurray-lacework deleted the dmurray-lacework/GROW-2333/deprecate-event-categories branch August 30, 2023 12:28
@lacework-releng lacework-releng mentioned this pull request Aug 30, 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