[midPoint-git] [Evolveum/midpoint] 441196: Remove remaining legacy tasks

mederly noreply at github.com
Tue Nov 16 19:18:13 CET 2021


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: 4411963aaa76625f7b523137840fd29467adfad9
      https://github.com/Evolveum/midpoint/commit/4411963aaa76625f7b523137840fd29467adfad9
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2021-11-16 (Tue, 16 Nov 2021)

  Changed paths:
    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/page/admin/ProgressAwareChangesExecutorImpl.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/resource/component/ResourceDetailsTabPanel.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/data/column/ColumnUtils.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/progress/ProgressPanel.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/configuration/PageAbout.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/configuration/PageAdminConfiguration.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/configuration/PageDebugList.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/resources/ResourceContentPanel.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/resources/ResourceDetailsTabPanel.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/server/TaskTablePanel.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/self/PageAssignmentsList.java
    M infra/common/src/test/java/com/evolveum/midpoint/common/TestCryptoUtil.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/DeltaConvertor.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/constants/SchemaConstants.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/task/work/LegacyWorkDefinitionSource.java
    A infra/schema/src/main/java/com/evolveum/midpoint/schema/util/task/work/SpecificWorkDefinitionUtil.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/task/work/WorkDefinitionUtil.java
    M infra/schema/src/main/resources/xml/ns/public/common/common-tasks-3.xsd
    M model/model-api/src/main/java/com/evolveum/midpoint/model/api/ModelExecuteOptions.java
    M model/model-api/src/main/java/com/evolveum/midpoint/model/api/ScriptingService.java
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/expression/functions/BasicExpressionFunctions.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/ModelBeans.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/ModelConstants.java
    R model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/ExecuteDeltasTaskHandler.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/ModelController.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/expr/MidpointFunctionsImpl.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/scriptExecutor/AbstractSingleRunTaskCreator.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/scriptExecutor/IterativeScriptingTaskCreator.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/scriptExecutor/ScriptingTaskCreator.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/ScriptingExpressionEvaluator.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/tasks/async/AsyncUpdateActivityHandler.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/tasks/imp/ImportActivityHandler.java
    A model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/tasks/imp/ImportFromResourceLauncher.java
    R model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/tasks/imp/ImportFromResourceTaskHandler.java
    A model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/tasks/recon/ReconciliationLauncher.java
    R model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/tasks/recon/ReconciliationTaskHandler.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/tasks/sync/LiveSyncActivityHandler.java
    R model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/tasks/ChangeExecutionActivityHandler.java
    A model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/tasks/IterativeChangeExecutionActivityHandler.java
    A model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/tasks/NonIterativeChangeExecutionActivityHandler.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/util/ModelImplUtils.java
    M model/model-impl/src/test/java/com/evolveum/midpoint/model/impl/lens/TestReconScript.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/AbstractInitializedModelIntegrationTest.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestIteration.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestMemberRecompute.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/run/AbstractActivityRun.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/run/LocalActivityRun.java
    M testing/conntest/src/test/java/com/evolveum/midpoint/testing/conntest/AbstractLdapConnTest.java
    M testing/conntest/src/test/java/com/evolveum/midpoint/testing/conntest/AbstractLdapTest.java
    M testing/longtest/src/test/java/com/evolveum/midpoint/testing/longtest/TestLdap.java
    M testing/longtest/src/test/java/com/evolveum/midpoint/testing/longtest/TestLdapComplex.java
    M testing/longtest/src/test/java/com/evolveum/midpoint/testing/longtest/TestLdapUniversity.java

  Log Message:
  -----------
  Remove remaining legacy tasks

This commit fixes remaining places where legacy tasks were created:
- asynchronous execution of scripting policy rules,
- import and recon tasks created by their launchers
(ImportFromResourceLauncher, ReconciliationLauncher),
- MidpointFunctionsImpl#executeChangesAsynchronously,
- PageAdminConfiguration#deleteObjectsAsync,
- task for multi-user requests on PageAssignmentsList,
- task for background saving of changes in GUI,
- deletion of closed tasks in GUI,
- evaluation of bulk actions in background.

Now we create the "new", activity-based tasks at those places.

Other related changes:
- Migrated ExecuteDeltasTaskHandler to activity-based
NonIterativeChangeExecutionActivityHandler.
- Renamed <changeExecution> activity to <iterativeChangeExecution>.
- Removed ModelController#evaluateIterativeExpressionInBackground
(unused).

Plus a couple of more-or-less cosmetic changes.


  Commit: 74579271413ca2d4a619ea63e3806ad5063978da
      https://github.com/Evolveum/midpoint/commit/74579271413ca2d4a619ea63e3806ad5063978da
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2021-11-16 (Tue, 16 Nov 2021)

  Changed paths:
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/tasks/NonIterativeChangeExecutionActivityHandler.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/run/AbstractActivityRun.java

  Log Message:
  -----------
  Add progress to non-iterative change exec activity

The progress is always either 0 or 1, because there is only a single
batch of changes to be executed.


  Commit: 6b4740de74ca1b83650b717a987946c0ada9445f
      https://github.com/Evolveum/midpoint/commit/6b4740de74ca1b83650b717a987946c0ada9445f
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2021-11-16 (Tue, 16 Nov 2021)

  Changed paths:
    M CONTRIBUTING.md
    M config/sql/native-new/postgres-new.sql
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/dialog/ChooseFocusTypeAndRelationDialogPanel.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/certification/DefinitionBasicPanel.html
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/certification/DefinitionStagePanel.html
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/resources/PageResourceVisualization.html
    M infra/schema/src/main/resources/xml/ns/public/common/common-3.xsd
    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-tasks-3.xsd
    M infra/schema/src/test/resources/common/resource-opendj-no-xmlns.xml
    M infra/schema/src/test/resources/common/xml/no-ns/resource-opendj.xml
    M infra/schema/src/test/resources/common/xml/ns/resource-opendj.xml
    M model/certification-impl/src/main/java/com/evolveum/midpoint/certification/impl/AccCertResponseComputationHelper.java
    M model/certification-impl/src/test/java/com/evolveum/midpoint/certification/test/complex/TestPolicyDrivenRoleLifecycle.java
    M model/model-api/src/main/java/com/evolveum/midpoint/model/api/context/EvaluatedAssignmentTarget.java
    M model/model-api/src/main/java/com/evolveum/midpoint/model/api/context/EvaluatedResourceObjectConstruction.java
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/expression/evaluator/ConstExpressionEvaluator.java
    M model/model-impl/src/test/resources/sync/action/account/group-change.xml
    M model/model-impl/src/test/resources/sync/action/user/existing-user-change.xml
    M model/model-impl/src/test/resources/sync/change-correct.xml
    M model/model-impl/src/test/resources/sync/change-without-object.xml
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestLinkedObjects.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestMemberRecompute.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/gensync/TestEditSchema.java
    M pom.xml
    M repo/audit-api/src/main/java/com/evolveum/midpoint/audit/api/AuditServiceFactory.java
    M repo/repo-sqale/src/test/java/com/evolveum/midpoint/repo/sqale/func/SqaleRepoLookupTableTest.java
    M repo/repo-sql-impl-test/src/test/resources/modify/resource-csv.xml
    M repo/repo-sql-impl-test/src/test/resources/modify/resource-opendj.xml
    M repo/system-init/src/main/java/com/evolveum/midpoint/init/ApplicationHomeSetup.java
    M repo/task-api/src/main/java/com/evolveum/midpoint/task/api/LightweightIdentifier.java
    M repo/task-api/src/main/java/com/evolveum/midpoint/task/api/LightweightTaskHandler.java
    M repo/task-api/src/main/java/com/evolveum/midpoint/task/api/TaskListener.java
    M testing/longtest/src/test/resources/common/resource-opendj-university.xml
    M testing/rest/src/test/resources/repo/resource-opendj.xml
    M testing/story/src/test/java/com/evolveum/midpoint/testing/story/TestReconNullValue.java

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


Compare: https://github.com/Evolveum/midpoint/compare/4f54243b775d...6b4740de74ca


More information about the midPoint-svn mailing list