[midPoint-git] [Evolveum/midpoint] 62cdb0: Fix previewChanges with associations inbounds

mederly noreply at github.com
Tue Aug 6 16:19:16 CEST 2024


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: 62cdb0b306d1f89c803e3e88ab4a2431d856f894
      https://github.com/Evolveum/midpoint/commit/62cdb0b306d1f89c803e3e88ab4a2431d856f894
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2024-08-06 (Tue, 06 Aug 2024)

  Changed paths:
    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/projector/Projector.java
    M testing/story/src/test/java/com/evolveum/midpoint/testing/story/associations/TestAssociationsFirstStepsActiveDirectory.java
    M testing/story/src/test/resources/associations-first-steps-ad/archetype-group.xml
    M testing/story/src/test/resources/associations-first-steps-ad/resource-ad-100.xml
    M testing/story/src/test/resources/associations-first-steps-ad/resource-ad-120.xml
    M testing/story/src/test/resources/associations-first-steps-ad/resource-ad-130.xml
    M testing/story/src/test/resources/associations-first-steps-ad/resource-ad-140.xml
    M testing/story/src/test/resources/associations-first-steps-ad/resource-ad-150.xml
    M testing/story/src/test/resources/associations-first-steps-ad/resource-ad-300.xml

  Log Message:
  -----------
  Fix previewChanges with associations inbounds

Preview changes should provide results analogous to the real execution.
This would involve simulating the execution of deltas computed
in individual projection waves. Historically, this was not done so;
only the simulations feature (which is something like advanced preview
changes) does this in a limited way.

We don't dare to add something like this to previewChanges, to avoid
breaking existing functionality.

But, for the associations to work, we need to have at least generated
IDs in assignments. This commit does exactly so.

It is a kind of ugly hack, but the whole previewChanges feature is
now like that. We should probably replace it with simulations in
the future.

This commit also adapts TestAssociationsFirstStepsActiveDirectory
to be closer to the real scenarios used in the training.



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