Skip to content

[bug] bulk_update emits NodeUpdated with empty changed_properties and replaces (not merges) properties #1434

Closed

Description

@mstomar125

Severity: medium · Confidence: high (empty changed_properties) / medium (normalization)

bulk_update (services/node_service/bulk.rs:551-569) hardcodes changed_properties: vec![] though it has old+new in hand → property-change-driven automation (playbook rules, UI subscribers on e.g. status: todo→done) silently no-ops for bulk edits. It also assigns updated_node.properties = p.clone() (wholesale replace) instead of the normalize+deep-merge the single-update path uses, so the event payload can diverge from persisted state and skip enum/required validation.

Fix: compute compute_property_changes(...) and run the same normalize+deep-merge as single-update.


Found via the 2026-06-18 multi-repo bug-hunt sweep. Confidence/severity from the sweep + spot-verification.

Activity

  1. mstomar125 commented on Jun 24, 2026

    @mstomar125
    ContributorAuthor

    Resolved in #1459. bulk_update now normalizes + deep-merges properties like update_node (was wholesale-replace of un-normalized values), validates the merged candidate, persists the merged value, and emits real changed_properties via compute_property_changes (was hardcoded empty, no-opping property-change automation). Tests: merge + non-empty changed_properties; updated the existing partial-fields test to the new contract.

  2. added a commit that references this issue on Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions