Skip to content

[Draft] "update_linked" actions cannot be reverted when removed #14358

@Lhorus6

Description

@Lhorus6

Description

In Drafts, entity creation and modification actions can be removed/reverted correctly. These actions can be selected in the Draft overview and deleted using the trash icon, which effectively reverts the changes applied to the platform.

However, any action categorized as "update_linked" cannot be reverted this way.

Environment

OCTI 6.9.13

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. Create a Draft and open it
  2. Create a Report
  3. Modify a Report
  4. In the Draft overview, select both Report (the update and the create) and click on the trash icon to remove them
    -> This will revert the modification, i.e. delete the newly created report and revert the update on the existing one
Image
  1. Now change the Author on a Report
  2. In the Draft overview, select the Report (the "update_linked") and click on the trash icon to revert the modification
    -> Nothing will happen, i.e. the Author will not be reverted to the previous one
Image

Expected Output

Removing the action from the draft should revert the "linked_update" and restore the previous value (e.g., the original author).

Actual Output

Nothing happens when deleting the "update_linked" action from the draft. The "linked_update" remains in the draft and the modified value (e.g., author) stays changed on the entity.

The only way to revert the change is to manually edit the entity and restore the previous value.

Metadata

Metadata

Assignees

Labels

buguse for describing something not working as expecteddraft workspaceLinked to workspace for validating data

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions