[midPoint-git] [Evolveum/midpoint] 2f7e6c: Don't add shadows to processed objects in mappings...

Andrej noreply at github.com
Fri Apr 3 11:44:21 CEST 2026


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: 2f7e6c6bebf8b5e3d0f82db9814235ee101ae76e
      https://github.com/Evolveum/midpoint/commit/2f7e6c6bebf8b5e3d0f82db9814235ee101ae76e
  Author: Andrej Zan <andrej.zan at evolveum.com>
  Date:   2026-04-03 (Fri, 03 Apr 2026)

  Changed paths:
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/mappings/tasks/MappingSimulationActivityRun.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/simulation/MappingSimulationData.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/simulation/ProcessedObjectsWriter.java

  Log Message:
  -----------
  Don't add shadows to processed objects in mappings simulation

**What**

Do not add shadows (or more generally the source objects) to the
processed objects in case of inbound mappings simulation.

**Why**

Adding both shadows and their owner focuses to the processed objects in
case of mappings simulation, causes confusing by counting all of them to
the number of processed items.

That number is shown on the page with simulation results in a widget,
but it does not correspond with the number of items in the table of
processed object, because the table shows only the target items (in case
of inbound mappings simulation it means focuses).

These "extra" processed items were also counted to the number of objects
without the change in the attribute (because mappings do not change
source objects of course). That was quite confusing as well.

Another quite strong argument to not add these objects is that the
simulation progress pop-up (speaking about simulation of mapping run
from the page with mappings), shows the number of processed items as the
number of "iterations" of the iterative activity. That means (in inbound
mapping simulation case), if there are 10 shadows, which the task
iterates over, it would show number 10 as the processed items count. But
on the results page, you would see 20, because for each shadow, there is
one owner focus (if there is no owner focus yet, we create a dummy one).

**Task**: 109992



To unsubscribe from these emails, change your notification settings at https://github.com/Evolveum/midpoint/settings/notifications


More information about the midPoint-svn mailing list