[midPoint-git] [Evolveum/midpoint] a3e9b1: Replace searchShadowOwner with equivalent search

mederly noreply at github.com
Thu Dec 8 06:44:48 CET 2022


  Branch: refs/heads/feature/simulations
  Home:   https://github.com/Evolveum/midpoint
  Commit: a3e9b105d286a87f08d8daa8a40336e673982467
      https://github.com/Evolveum/midpoint/commit/a3e9b105d286a87f08d8daa8a40336e673982467
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2022-12-08 (Thu, 08 Dec 2022)

  Changed paths:
    M model/model-impl/src/test/java/com/evolveum/midpoint/model/impl/util/mock/MockFactory.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/security/TestSecurityAdvanced.java
    A model/model-intest/src/test/resources/security/role-many-shadow-owner-autz.xml
    M repo/repo-api/src/main/java/com/evolveum/midpoint/repo/api/RepositoryService.java
    M repo/repo-cache/src/main/java/com/evolveum/midpoint/repo/cache/RepositoryCache.java
    M repo/repo-cache/src/test/java/com/evolveum/midpoint/repo/cache/TestRepositoryCache.java
    M repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/SqaleRepositoryService.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/ObjectRetriever.java

  Log Message:
  -----------
  Replace searchShadowOwner with equivalent search

The original searchShadowOwner execution was not cacheable
in global nor in local repository caches, resulting in excessive
number of search operations e.g. when authorizations were present.

Now the method is replaced by equivalent searchObjects call
at the level of RepositoryService, so that caching should be employed.
(Note that the translation to regular search operation was there
internally in SqaleRepositoryService implementation perhaps from the
day one.)


  Commit: cd1147714803770072612900b0afbd7261e73a20
      https://github.com/Evolveum/midpoint/commit/cd1147714803770072612900b0afbd7261e73a20
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2022-12-08 (Thu, 08 Dec 2022)

  Changed paths:
    M model/model-impl/src/test/java/com/evolveum/midpoint/model/impl/util/mock/MockFactory.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/security/TestSecurityAdvanced.java
    A model/model-intest/src/test/resources/security/role-many-shadow-owner-autz.xml
    M repo/repo-api/src/main/java/com/evolveum/midpoint/repo/api/RepositoryService.java
    M repo/repo-cache/src/main/java/com/evolveum/midpoint/repo/cache/RepositoryCache.java
    M repo/repo-cache/src/test/java/com/evolveum/midpoint/repo/cache/TestRepositoryCache.java
    M repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/SqaleRepositoryService.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/ObjectRetriever.java

  Log Message:
  -----------
  Merge branch 'master' into feature/simulations


Compare: https://github.com/Evolveum/midpoint/compare/faa23b9aa340...cd1147714803


More information about the midPoint-svn mailing list