[midPoint-git] [Evolveum/midpoint] fabcae: Set old object on initial focus load operation

mederly noreply at github.com
Mon May 16 19:09:15 CEST 2022


  Branch: refs/heads/tmp/mid-7916
  Home:   https://github.com/Evolveum/midpoint
  Commit: fabcae3c5c6d96882a15d4da77a8e3f94f1c0588
      https://github.com/Evolveum/midpoint/commit/fabcae3c5c6d96882a15d4da77a8e3f94f1c0588
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2022-05-16 (Mon, 16 May 2022)

  Changed paths:
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/mapping/MappingParser.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/ClockworkClick.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/ElementState.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensElementContext.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensFocusContext.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensProjectionContext.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/loader/FocusLoadOperation.java
    M model/model-impl/src/test/java/com/evolveum/midpoint/model/impl/AbstractModelImplementationIntegrationTest.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/mapping/TestMappingInbound.java
    A model/model-intest/src/test/resources/mapping/resource-target-photos.xml
    A model/model-intest/src/test/resources/mapping/task-import-target-photos.xml
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/util/RUtil.java
    M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/asserter/DummyAccountAsserter.java
    M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/asserter/DummyObjectAsserter.java

  Log Message:
  -----------
  Set old object on initial focus load operation

When starting a clockwork, initial focus load operation is executed.
Previously, we have updated only current & new state of the focus,
leaving old state as it came from the external caller. However, the
focus is often incomplete (e.g. without jpegPhoto) at that time.

Now we overwrite also the old state - but only on the first loading.

Related change:

- A safety check was added: If a mapping is to be executed on an
incomplete item, an exception is thrown. It is better to see the issue
immediately than to incur data quality problems detected potentially
much later.

Unrelated change:

- When serializing operation result (for task) we employ less strict
mode, allowing unserializable values to be stored as strings, and also
escaping invalid XML characters. This can be useful e.g. when tracing
is enabled, and is consistent with the new (native) repo behavior.




More information about the midPoint-svn mailing list