Skip disabled actions via entity mapping change

Created on 10 July 2024, 7 months ago
Updated 24 July 2024, 7 months ago

Problem/Motivation

We currently skip exports for disabled actions within the export entity manager after the entity mapping was processed i.e. just not triggering the export but without changing the action in the entity mapping. This causes issues with terminate subscribers that use the entity mapping action in their logic e.g. the entity mapping says that this was a `create` operation action but the operation is actually skipped and there is no remote entity in the results.

Proposed resolution

If an action is disabled in the synchronization configuration, we change the entity mapping to skip it in an entity mapping event subscriber. This is also a cleaner solution from the perspective of not having another hidden layer of skipping operations magically; the only ways to skip an operation should be by pre-initiate cancellations and entity mapping skipping.

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇵🇪Peru krystalcode

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024