Skip to content

Nodes created by an invariant play action get no mentions edges until their content is next edited #4358

Done

Description

@mstomar125

Found reviewing #4352. A reaction action creates its node through create_node, which calls sync_created_mentions at creation. An invariant action inserts inside its own transaction through insert_node_in_tx_no_invariant_dispatch (packages/core/src/playbook/actions.rs, execute_create_node_in_tx, about lines 2429-2490), which never calls sync_created_mentions, so a nodespace:// link in its content has no mention edge until the node is edited.

Decide: link mentions on the invariant path (inside the same transaction), or record the omission as intended. Done when a test covers the chosen behaviour.

Activity

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