Skip to content

stateful rules: fix docs and ci #611

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

Merged
merged 15 commits into from
Mar 18, 2025
Merged

stateful rules: fix docs and ci #611

merged 15 commits into from
Mar 18, 2025

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

Verified

This commit was signed with the committer’s verified signature. The key has expired.
weihanglo Weihang Lo

Verified

This commit was signed with the committer’s verified signature. The key has expired.
weihanglo Weihang Lo
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.

None yet

3 participants