[midPoint-git] [Evolveum/midpoint] 944a9d: Update suggestFocusType microservice call
mederly
noreply at github.com
Fri Jul 18 09:01:36 CEST 2025
Branch: refs/heads/midpilot
Home: https://github.com/Evolveum/midpoint
Commit: 944a9d09d0fe464fc3566c85efe5780e23adf2be
https://github.com/Evolveum/midpoint/commit/944a9d09d0fe464fc3566c85efe5780e23adf2be
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2025-07-15 (Tue, 15 Jul 2025)
Changed paths:
M infra/schema/src/main/resources/xml/ns/public/common/common-smart-integration-3.xsd
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/smart/DummyBasicScenario.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/smart/TestSmartIntegrationService.java
R model/model-intest/src/test/resources/smart/resource-dummy-basic.xml
A model/model-intest/src/test/resources/smart/resource-dummy-for-suggest-focus-type.xml
M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/DefaultServiceClientImpl.java
Log Message:
-----------
Update suggestFocusType microservice call
The client was updated to the new interface
(SiSuggestFocusTypeRequestType). Now the data on the
wire look like this:
{
"kind" : "account",
"intent" : "default",
"schema" : {
"name" : "account",
"description" : "Contains user accounts",
"attribute" : [ {
"name" : "created",
"type" : "xsd:dateTime"
}, {
"name" : "status",
"type" : "xsd:string"
}, {
"name" : "description",
"type" : "xsd:string"
}, {
"name" : "phone",
"type" : "xsd:string"
}, {
"name" : "name",
"type" : "xsd:string"
}, {
"name" : "personalNumber",
"type" : "xsd:string"
}, {
"name" : "email",
"type" : "xsd:string"
}, {
"name" : "fullname",
"type" : "xsd:string",
"description" : "User's full name"
}, {
"name" : "lastLogin",
"type" : "xsd:dateTime"
}, {
"name" : "uid",
"type" : "xsd:string"
} ]
},
"baseContextFilter" : "attributes/name = 'main'"
}
Commit: 27ff25c7eb3ee6ad775fb3e14affdce94ac0a2d6
https://github.com/Evolveum/midpoint/commit/27ff25c7eb3ee6ad775fb3e14affdce94ac0a2d6
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2025-07-15 (Tue, 15 Jul 2025)
Changed paths:
M infra/schema/src/main/resources/xml/ns/public/common/common-smart-integration-3.xsd
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/smart/MockServiceClientImpl.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/smart/TestSmartIntegrationService.java
A model/model-intest/src/test/resources/smart/resource-dummy-for-suggest-object-types.xml
M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/DefaultServiceClientImpl.java
M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/ServiceClient.java
M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/SmartIntegrationServiceImpl.java
Log Message:
-----------
Add XSD for "suggest object types" response
Plus related Java code.
Commit: 455d23648e9736b9f62055dd16d06203d03607bb
https://github.com/Evolveum/midpoint/commit/455d23648e9736b9f62055dd16d06203d03607bb
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2025-07-15 (Tue, 15 Jul 2025)
Changed paths:
M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/DefaultServiceClientImpl.java
Log Message:
-----------
Adapt smart MS client to new URLs
To be compatible with the new Python microservice.
Commit: c0f530bb6d86ca19258eacf3a84ac7a4bf0b9944
https://github.com/Evolveum/midpoint/commit/c0f530bb6d86ca19258eacf3a84ac7a4bf0b9944
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2025-07-16 (Wed, 16 Jul 2025)
Changed paths:
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/smart/MockServiceClientImpl.java
M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/DefaultServiceClientImpl.java
M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/ServiceClient.java
M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/SmartIntegrationServiceImpl.java
Log Message:
-----------
Adapt integration service to Python microservice
Commit: b5e89b165295e810dea14fbeb33fb22c379c4270
https://github.com/Evolveum/midpoint/commit/b5e89b165295e810dea14fbeb33fb22c379c4270
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2025-07-17 (Thu, 17 Jul 2025)
Changed paths:
M infra/schema/src/main/java/com/evolveum/midpoint/schema/constants/SchemaConstants.java
A infra/schema/src/main/java/com/evolveum/midpoint/schema/util/ShadowObjectClassStatisticsTypeUtil.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/certification-impl/src/main/java/com/evolveum/midpoint/certification/impl/task/AccessCertificationStageManagementRun.java
M model/certification-impl/src/main/java/com/evolveum/midpoint/certification/impl/task/closeCurrentStage/AccessCertificationCloseCurrentStageRun.java
M model/certification-impl/src/main/java/com/evolveum/midpoint/certification/impl/task/reiterateCampaign/AccessCertificationReiterateCampaignRun.java
M model/certification-impl/src/main/java/com/evolveum/midpoint/certification/impl/task/remediation/AccessCertificationRemediationRun.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/cleanup/ShadowRefreshActivityHandler.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/integrity/objects/ObjectIntegrityCheckActivityHandler.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/integrity/shadows/ShadowIntegrityCheckActivityRun.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/tasks/async/AsyncUpdateActivityRun.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/tasks/imp/AbstractImportActivityRun.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/tasks/imp/reclassification/ReclassificationActivityRun.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/tasks/recon/PartialReconciliationActivityRun.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/tasks/recon/ResourceObjectsReconciliationActivityRun.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/tasks/sync/LiveSyncActivityRun.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/tasks/DeletionActivityHandler.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/tasks/ExplicitChangeExecutionActivityHandler.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/tasks/IterativeChangeExecutionActivityHandler.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/tasks/RecomputationActivityHandler.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/tasks/ReindexActivityHandler.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/tasks/RoleMembershipManagementActivityHandler.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/tasks/ShadowCleanupActivityHandler.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/tasks/cluster/AutoScalingActivityRun.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/tasks/scanner/FocusValidityScanPartialRun.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/tasks/scanner/ScanActivityRun.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/trigger/TriggerScanActivityRun.java
M model/model-intest/pom.xml
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/smart/TestSmartIntegrationService.java
M model/model-test/src/main/java/com/evolveum/midpoint/model/test/CommonInitialObjects.java
M model/report-impl/src/main/java/com/evolveum/midpoint/report/impl/activity/ClassicCollectionReportExportActivityRun.java
M model/report-impl/src/main/java/com/evolveum/midpoint/report/impl/activity/ClassicDashboardReportExportActivityRun.java
M model/report-impl/src/main/java/com/evolveum/midpoint/report/impl/activity/ClassicReportImportActivityRun.java
M model/report-impl/src/main/java/com/evolveum/midpoint/report/impl/activity/ReportDataAggregationActivityRun.java
M model/report-impl/src/main/java/com/evolveum/midpoint/report/impl/activity/ReportDataCreationActivityRun.java
M model/rest-impl/src/main/java/com/evolveum/midpoint/rest/impl/SmartIntegrationRestController.java
M model/smart-api/src/main/java/com/evolveum/midpoint/smart/api/SmartIntegrationService.java
M model/smart-impl/pom.xml
M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/DefaultServiceClientImpl.java
A model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/SmartIntegrationBeans.java
M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/SmartIntegrationServiceImpl.java
A model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/activities/ObjectTypesSuggestionActivityHandler.java
A model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/activities/ObjectTypesSuggestionWorkDefinition.java
A model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/activities/RemoteServiceCallActivityRun.java
A model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/activities/StatisticsComputationActivityRun.java
A model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/activities/StatisticsComputer.java
A model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/activities/Util.java
A model/smart-impl/src/test/java/com/evolveum/midpoint/smart/impl/DummyScenario.java
A model/smart-impl/src/test/java/com/evolveum/midpoint/smart/impl/MockServiceClientImpl.java
M model/smart-impl/src/test/java/com/evolveum/midpoint/smart/impl/TestSmartIntegrationServiceImpl.java
A model/smart-impl/src/test/resources/resource-dummy-for-suggest-object-types.xml
A model/smart-impl/src/test/resources/role-superuser.xml
A model/smart-impl/src/test/resources/system-configuration.xml
A model/smart-impl/src/test/resources/user-administrator.xml
M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/task/MultiPropagationActivityRun.java
M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/task/PropagationActivityRun.java
M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/Activity.java
M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/handlers/NoOpActivityHandler.java
M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/run/CommonTaskBeans.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/IterativeActivityRunSpecifics.java
M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/run/SearchBasedActivityRunSpecifics.java
M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/run/state/OtherActivityState.java
M repo/repo-common/src/test/java/com/evolveum/midpoint/repo/common/tasks/handlers/search/SearchBasedMockActivityRun.java
M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/AbstractDummyScenario.java
Log Message:
-----------
Switch suggesting object types to background
"Suggest object types" method of SmartIntegrationService can take
quite long time, especially if there are no shadow statistics
available. Hence, this commit prepares asynchronous version of
this method. It is implemented by ObjectTypesSuggestionActivityHandler.
Related changes:
- Changed IterativeActivityRunSpecifics#beforeRun method
to return a boolean indicating whether the activity should
really run. Used to skip shadow loading if there are already
statistics available.
- Added lower-level tests in TestSmartIntegrationServiceImpl.
Commit: 14c99eee88668ce5b4f83e2e25fa9934a8d6c3b1
https://github.com/Evolveum/midpoint/commit/14c99eee88668ce5b4f83e2e25fa9934a8d6c3b1
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2025-07-17 (Thu, 17 Jul 2025)
Changed paths:
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/smart/DummyBasicScenario.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/smart/MockServiceClientImpl.java
M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/DefaultServiceClientImpl.java
M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/ServiceClient.java
M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/SmartIntegrationServiceImpl.java
M model/smart-impl/src/test/java/com/evolveum/midpoint/smart/impl/DummyScenario.java
M model/smart-impl/src/test/java/com/evolveum/midpoint/smart/impl/MockServiceClientImpl.java
Log Message:
-----------
Add parsing suggestObjectTypes response
Now the response coming from the microservice is correctly
parsed. Tests were adapted.
Commit: e7accd2c96079c84c059a884528efdd807e548bd
https://github.com/Evolveum/midpoint/commit/e7accd2c96079c84c059a884528efdd807e548bd
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2025-07-17 (Thu, 17 Jul 2025)
Changed paths:
R model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/smart/MockServiceClientImpl.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/smart/TestSmartIntegrationService.java
M model/model-test/pom.xml
A model/model-test/src/main/java/com/evolveum/midpoint/model/test/smart/MockServiceClientImpl.java
R model/smart-api/src/main/java/com/evolveum/midpoint/smart/api/FocusTypeSuggestions.java
A model/smart-api/src/main/java/com/evolveum/midpoint/smart/api/ServiceClient.java
M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/DefaultServiceClientImpl.java
A model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/ServiceAdapter.java
R model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/ServiceClient.java
M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/SmartIntegrationServiceImpl.java
A model/smart-impl/src/test/java/com/evolveum/midpoint/smart/impl/AbstractSmartIntegrationTest.java
R model/smart-impl/src/test/java/com/evolveum/midpoint/smart/impl/MockServiceClientImpl.java
M model/smart-impl/src/test/java/com/evolveum/midpoint/smart/impl/TestSmartIntegrationServiceImpl.java
A model/smart-impl/src/test/resources/common/role-superuser.xml
A model/smart-impl/src/test/resources/common/system-configuration.xml
A model/smart-impl/src/test/resources/common/user-administrator.xml
R model/smart-impl/src/test/resources/resource-dummy-for-suggest-object-types.xml
R model/smart-impl/src/test/resources/role-superuser.xml
A model/smart-impl/src/test/resources/smart/resource-dummy-for-suggest-object-types.xml
R model/smart-impl/src/test/resources/system-configuration.xml
R model/smart-impl/src/test/resources/user-administrator.xml
Log Message:
-----------
Change smart integration service invocations
Up to now, ServiceClient was responsible for both HTTP communication
with the Python microservice and for conversion of requests and
responses between midPoint structures and the microservice API.
This is now changed: the conversion is done by ServiceAdapter,
and the ServiceClient takes care of HTTP communication only.
This allows e.g. better unit testing of the conversion code.
Commit: 4d8381ada363f6e608c6c32fbbc1aeea81436e53
https://github.com/Evolveum/midpoint/commit/4d8381ada363f6e608c6c32fbbc1aeea81436e53
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2025-07-17 (Thu, 17 Jul 2025)
Changed paths:
M infra/schema/src/main/resources/xml/ns/public/common/common-smart-integration-3.xsd
M model/model-test/src/main/java/com/evolveum/midpoint/model/test/smart/MockServiceClientImpl.java
M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/ServiceAdapter.java
M model/smart-impl/src/test/java/com/evolveum/midpoint/smart/impl/TestSmartIntegrationServiceImpl.java
A model/smart-impl/src/test/resources/smart/test-100-statistics.xml
A model/smart-impl/src/test/resources/smart/test-110-expected-object-types.xml
A model/smart-impl/src/test/resources/smart/test-110-expected-request.json
A model/smart-impl/src/test/resources/smart/test-110-statistics.xml
M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/AbstractIntegrationTest.java
Log Message:
-----------
Improve smart integration unit tests
This commit also changes SiAttributeDefinitionType.name
from xsd:string to xsd:QName.
Commit: 1290c8a87d9768eefab25f1e38ebda14b810d3d9
https://github.com/Evolveum/midpoint/commit/1290c8a87d9768eefab25f1e38ebda14b810d3d9
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2025-07-17 (Thu, 17 Jul 2025)
Changed paths:
M model/smart-impl/src/test/java/com/evolveum/midpoint/smart/impl/TestSmartIntegrationServiceImpl.java
Log Message:
-----------
Prepare shadow statistics computation tests
Commit: 610e970e23e3be3d77ac135780000f7f4a7337d7
https://github.com/Evolveum/midpoint/commit/610e970e23e3be3d77ac135780000f7f4a7337d7
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2025-07-18 (Fri, 18 Jul 2025)
Changed paths:
M infra/schema/src/main/resources/xml/ns/public/common/common-smart-integration-3.xsd
M model/smart-api/src/main/java/com/evolveum/midpoint/smart/api/SmartIntegrationService.java
M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/SmartIntegrationServiceImpl.java
M model/smart-impl/src/test/java/com/evolveum/midpoint/smart/impl/TestSmartIntegrationServiceImpl.java
A model/smart-impl/src/test/resources/smart/resource-dummy-for-counting-no-paging.xml
A model/smart-impl/src/test/resources/smart/resource-dummy-for-counting-with-paging.xml
Log Message:
-----------
Add estimateObjectClassSize method (smart-impl)
Compare: https://github.com/Evolveum/midpoint/compare/41a475aabb18...610e970e23e3
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