Skip to content

Conversation

kmvachhani
Copy link
Contributor

@kmvachhani kmvachhani commented Mar 13, 2025

add data source and resource for missing stateful detection elements, update cache GHA version

Copy link
Contributor

@ombellare ombellare left a comment

Choose a reason for hiding this comment

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

Just a couple of comments but overall LGTM!

return diag.FromErr(err)
}

d.SetId(fmt.Sprintf("count_%s", ruleName))
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the id be count__ruleName__ruleType (with double underscores)?

ruleIndexObj, ok := d.GetOk("index")
ruleIndex := 0
if ok {
ruleIndex = ruleIndexObj.(int)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Could we use the ruleIndex, ok form here to avoid panic since we are not enforcing a schema on this field?

@kmvachhani kmvachhani marked this pull request as ready for review March 17, 2025 18:58
Copy link
Contributor

@ombellare ombellare left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for addressing my nits :)

@kmvachhani kmvachhani merged commit aeee262 into master Mar 18, 2025
23 checks passed
@kmvachhani kmvachhani deleted the stateful-rules-docs branch March 18, 2025 16:29
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.

3 participants