-
Notifications
You must be signed in to change notification settings - Fork 325
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
The IdentifyMissingComments() function has a logic error on line 426. Uses OR (||) when it should use AND (&&). Current logic: "if NOT updating OR deleting" means connections being deleted are still added to MissingComments, contradicting intended behavior.
Severity
LOW - Wasted work but doesn't cause incorrect behavior
Reproduction
- Create ConnectionUpdates with a connection marked for deletion
- Set CommentsSet to false for that connection
- Call IdentifyMissingComments()
- Observe that the deleted connection is added to MissingComments
Expected Behavior
if \!updating && \!deleting {
log.Printf("[TRACE] connection %s comments not set, marking as missing", name)
u.MissingComments[name] = state
}Test Reference
Test: TestConnectionUpdates_IdentifyMissingComments in pkg/steampipeconfig/connection_updates_test.go:125
Related Code
pkg/steampipeconfig/connection_updates.go:426
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working