[midPoint-git] [Evolveum/midpoint] 6ded55: Add per-simulation metrics filtering

mederly noreply at github.com
Thu Feb 2 12:39:06 CET 2023


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: 6ded5542d23c2f2e445aa9b396d376ce4da84063
      https://github.com/Evolveum/midpoint/commit/6ded5542d23c2f2e445aa9b396d376ce4da84063
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2023-02-02 (Thu, 02 Feb 2023)

  Changed paths:
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/MarkTypeUtil.java
    M infra/schema/src/main/resources/xml/ns/public/common/common-core-3.xsd
    M infra/schema/src/main/resources/xml/ns/public/common/common-simulations-3.xsd
    R model/model-api/src/main/java/com/evolveum/midpoint/model/api/simulation/SimulationResultContext.java
    M model/model-api/src/main/java/com/evolveum/midpoint/model/api/simulation/SimulationResultManager.java
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/MarkManager.java
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/ModelCommonBeans.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/Clockwork.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/PolicyRuleProcessor.java
    A model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/simulation/ClosedResultsChecker.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/simulation/ObjectMetricsComputation.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/simulation/OpenResultTransactionsHolder.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/simulation/ProcessedObjectImpl.java
    A model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/simulation/ProcessedObjectsWriter.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/simulation/SimulationMetricReference.java
    R model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/simulation/SimulationResultContextImpl.java
    A model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/simulation/SimulationResultImpl.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/simulation/SimulationResultManagerImpl.java
    A model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/simulation/SimulationTransactionImpl.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/tasks/AdvancedActivityRunSupportImpl.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/simulation/AbstractBasicSimulationExecutionTest.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/simulation/AbstractSimulationsTest.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/simulation/TestPreviewChangesCoD.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/simulation/TestProductionSimulations.java
    A model/model-intest/src/test/resources/simulation/mark-nonsense-mark.xml
    M model/model-intest/src/test/resources/simulation/mark-user-add.xml
    M model/model-intest/src/test/resources/simulation/mark-user-delete.xml
    M model/model-intest/src/test/resources/simulation/system-configuration.xml
    M model/model-test/src/main/java/com/evolveum/midpoint/model/test/AbstractModelIntegrationTest.java
    R model/model-test/src/main/java/com/evolveum/midpoint/model/test/SimulationResult.java
    A model/model-test/src/main/java/com/evolveum/midpoint/model/test/TestSimulationResult.java
    M model/model-test/src/main/java/com/evolveum/midpoint/model/test/util/SynchronizationRequest.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/run/AdvancedActivityRunSupport.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/run/IterativeActivityRun.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/run/LocalActivityRun.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/run/NoOpAdvancedActivityRunSupport.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/run/SimulationSupport.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/run/processing/ItemProcessingGatekeeper.java
    M repo/task-api/src/main/java/com/evolveum/midpoint/task/api/ExecutionSupport.java
    A repo/task-api/src/main/java/com/evolveum/midpoint/task/api/SimulationResult.java
    A repo/task-api/src/main/java/com/evolveum/midpoint/task/api/SimulationTransaction.java
    M repo/task-api/src/main/java/com/evolveum/midpoint/task/api/Task.java
    M repo/task-api/src/main/java/com/evolveum/midpoint/task/api/test/NullTaskImpl.java
    M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/TaskQuartzImpl.java
    M testing/story/src/test/java/com/evolveum/midpoint/testing/story/TestFirstSteps.java
    M testing/story/src/test/java/com/evolveum/midpoint/testing/story/TestOrgSync.java

  Log Message:
  -----------
  Add per-simulation metrics filtering

Marks and custom metrics can now be enabled/disabled for individual
simulation as well as "by default" for all simulations. Moreover,
marks' lifecycle status is now taken into account.

Technical changes:

1. SimulationResultContext was renamed to SimulationResult, and
its companion, SimulationTransaction, was introduced. Both are now in
task-api module. The Task interface was cleaned up, and now it keeps
only the (optional) reference to SimulationTransaction instance.

2. SimulationResult now contains the simulation configuration,
and can answer questions about whether given metric is enabled or not.
This information is also available via Task's ExecutionSupport
interface, to be (in the future) available also during regular
(non-simulated) runs. We need it in the projector - during policy
rules collection.

3. Creation of ProcessedObjectImpl/SimulationResultProcessedObjectType
instances from LensContext was factored out into ProcessedObjectsWriter.

4. Some "tag" words were renamed to "marks" in MarkManager.


  Commit: 0e19fe247f15ba1b055f0bc9c4723617db97c6c1
      https://github.com/Evolveum/midpoint/commit/0e19fe247f15ba1b055f0bc9c4723617db97c6c1
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2023-02-02 (Thu, 02 Feb 2023)

  Changed paths:
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/run/SimulationSupport.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/run/state/ActivityTreePurger.java

  Log Message:
  -----------
  Fix simulations for perpetual state activities

Activities that have perpetual state (e.g. LiveSync) will now create
a new simulation result on each individual realization (~ run). This is
to avoid writing to already closed simulation results. It may be
reconsidered later; the official statement is that simulations are
supported for LS tasks, but only for a single execution.


  Commit: c511525505fd456e7d0d223e1ba3a6ceb8fea1d9
      https://github.com/Evolveum/midpoint/commit/c511525505fd456e7d0d223e1ba3a6ceb8fea1d9
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2023-02-02 (Thu, 02 Feb 2023)

  Changed paths:
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/GuiStyleConstants.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/util/WebComponentUtil.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/component/data/column/PrismContainerWrapperColumnPanel.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/component/data/provider/SelectableBeanContainerDataProvider.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/component/data/provider/SelectableBeanObjectDataProvider.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/component/data/provider/SelectableBeanReferenceDataProvider.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/component/menu/LeftMenuPanel.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/component/menu/PageTypes.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/component/search/SearchConfigurationWrapperFactory.java
    A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/mark/PageMark.java
    A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/mark/PageMarks.html
    A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/mark/PageMarks.java
    A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/simulation/AvailableMarkItemWrapperFactory.java
    A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/simulation/AvailableMarkSearchItemWrapper.java
    R gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/simulation/AvailableTagItemWrapperFactory.java
    R gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/simulation/AvailableTagSearchItemWrapper.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/simulation/PageSimulationResult.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/simulation/PageSimulationResultObject.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/simulation/PageSimulationResultObjects.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/simulation/PageSimulationResults.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/simulation/ProcessedObjectsPanel.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/simulation/ProcessedObjectsProvider.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/simulation/SimulationPage.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/simulation/SimulationResultsPanel.java
    R gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/tag/PageTag.java
    R gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/tag/PageTags.html
    R gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/tag/PageTags.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/user/component/AllAccessListPanel.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/assignment/AssignmentsUtil.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/reports/PageCreatedReports.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/ContainerableResultHandler.java
    M model/model-impl/src/test/java/com/evolveum/midpoint/model/impl/util/mock/MockFactory.java
    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/main/java/com/evolveum/midpoint/repo/cache/handlers/SearchOpHandler.java
    M repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/SqaleRepositoryService.java
    M repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/SqaleUtils.java
    M repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/audit/AuditInsertion.java
    M repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/audit/SqaleAuditService.java
    M repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/audit/qmodel/QAuditEventRecordMapping.java
    M repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/filtering/RefItemFilterProcessor.java
    M repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/mapping/ReferenceNameResolver.java
    M repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/mapping/SqaleTableMapping.java
    M repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/qmodel/accesscert/QAccessCertificationCampaignMapping.java
    M repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/qmodel/focus/QFocusMapping.java
    M repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/qmodel/object/QObjectMapping.java
    M repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/qmodel/object/QOperationExecutionMapping.java
    M repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/qmodel/ref/QObjectReferenceMapping.java
    M repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/qmodel/simulation/QProcessedObjectMapping.java
    M repo/repo-sqale/src/test/java/com/evolveum/midpoint/repo/sqale/SqaleRepoBaseTest.java
    M repo/repo-sqale/src/test/java/com/evolveum/midpoint/repo/sqale/func/SimulationsBaselineTest.java
    M repo/repo-sqale/src/test/java/com/evolveum/midpoint/repo/sqale/func/SimulationsPartitionedTest.java
    M repo/repo-sqale/src/test/java/com/evolveum/midpoint/repo/sqale/func/SqaleRepoModifyObjectTest.java
    A repo/repo-sqale/src/test/java/com/evolveum/midpoint/repo/sqale/func/SqaleRepoSearchReferencesIterativeTest.java
    M repo/repo-sqale/testng-unit.xml
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/SqlRepositoryServiceImpl.java
    M repo/security-api/src/main/java/com/evolveum/midpoint/security/api/AuthorizationConstants.java

  Log Message:
  -----------
  Merge remote-tracking branch 'origin/master'


Compare: https://github.com/Evolveum/midpoint/compare/c46928c85078...c511525505fd


More information about the midPoint-svn mailing list