[midPoint-git] [Evolveum/midpoint] b2d55f: Fix some consequences of objects' immutability

mederly noreply at github.com
Mon May 20 19:47:19 CEST 2019


  Branch: refs/heads/feature/optimizing-repo-access
  Home:   https://github.com/Evolveum/midpoint
  Commit: b2d55fbd98b08e190cb8be4af1c06f252577911c
      https://github.com/Evolveum/midpoint/commit/b2d55fbd98b08e190cb8be4af1c06f252577911c
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2019-05-20 (Mon, 20 May 2019)

  Changed paths:
    M infra/common/src/main/java/com/evolveum/midpoint/common/refinery/RefinedConnectorSchemaImpl.java
    M infra/common/src/main/java/com/evolveum/midpoint/common/refinery/RefinedResourceSchemaImpl.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/Item.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/ItemImpl.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/internals/InternalMonitor.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestModelServiceContract.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestResources.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ConnectorManager.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ResourceManager.java
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/helpers/ObjectRetriever.java

  Log Message:
  -----------
  Fix some consequences of objects' immutability

Now the repo cache returns immutable objects when asked for ones
with option=readonly. The rest of midPoint code was not quite prepared
for this. So we now have either to temporarily unfreeze such objects
or make their clones (if really needed).


  Commit: 569eb44f4ed92881cc41d1bdd4371d8a5b2499eb
      https://github.com/Evolveum/midpoint/commit/569eb44f4ed92881cc41d1bdd4371d8a5b2499eb
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2019-05-20 (Mon, 20 May 2019)

  Changed paths:
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestLoggingConfiguration.java
    M model/model-test/src/main/java/com/evolveum/midpoint/model/test/AbstractModelIntegrationTest.java
    M repo/repo-cache/src/main/java/com/evolveum/midpoint/repo/cache/RepositoryCache.java

  Log Message:
  -----------
  Adapt TestLoggingConfiguration

As we changed repositoryService in AbstractModelIntegrationTest to
point to repository cache, some tests need to be adapted.


  Commit: e2aad52227f12c73824e58cb6d61e6479cfa9966
      https://github.com/Evolveum/midpoint/commit/e2aad52227f12c73824e58cb6d61e6479cfa9966
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2019-05-20 (Mon, 20 May 2019)

  Changed paths:
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/ChangeExecutor.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensContext.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensProjectionContext.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestMultiResource.java
    M repo/repo-api/src/main/java/com/evolveum/midpoint/repo/api/ModifyObjectResult.java
    M repo/repo-cache/src/main/java/com/evolveum/midpoint/repo/cache/ChangeDescription.java
    M repo/repo-cache/src/main/java/com/evolveum/midpoint/repo/cache/RepositoryCache.java
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/SqlRepositoryServiceImpl.java
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/helpers/ObjectUpdater.java

  Log Message:
  -----------
  Rework repo cache invalidation code

The original code was too weak. Now we explicitly check whether
the object (identified by OID) was a part of the original search
result.


  Commit: 39708fa3a43bdedc148e715eb7b41d4fbc465bd9
      https://github.com/Evolveum/midpoint/commit/39708fa3a43bdedc148e715eb7b41d4fbc465bd9
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2019-05-20 (Mon, 20 May 2019)

  Changed paths:
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/query/RefFilterImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/query/builder/R_AtomicFilter.java

  Log Message:
  -----------
  Switch defaultTargetTypeAsAny to true in RefFilter

This is to make default behavior consistent with the behavior
of this filter in repository.


Compare: https://github.com/Evolveum/midpoint/compare/5613ca112d5d...39708fa3a43b


More information about the midPoint-svn mailing list