feat: Refactor order indexing logic#476
Conversation
…ngedEventHandler for improved readability, maintainability and extensibility
vc-ci
left a comment
There was a problem hiding this comment.
Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 7.087
Timestamp: 09-12-2025T17:32:56
…proved performance
vc-ci
left a comment
There was a problem hiding this comment.
Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 7.535
Timestamp: 11-12-2025T11:18:14
… and address handling
src/VirtoCommerce.OrdersModule.Data/Handlers/LogChangesOrderChangedEventHandler.cs
Outdated
Show resolved
Hide resolved
vc-ci
left a comment
There was a problem hiding this comment.
Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 8.642
Timestamp: 13-12-2025T15:50:16
…y and consistency
vc-ci
left a comment
There was a problem hiding this comment.
Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 9.675
Timestamp: 13-12-2025T17:22:44
…DifferenceComparer for distinct operations
vc-ci
left a comment
There was a problem hiding this comment.
Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 7.89
Timestamp: 14-12-2025T11:15:41
…d clarity and consistency" This reverts commit 2507253.
src/VirtoCommerce.OrdersModule.Data/Handlers/LogChangesOrderChangedEventHandler.cs
Show resolved
Hide resolved
vc-ci
left a comment
There was a problem hiding this comment.
Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 7.967
Timestamp: 14-12-2025T13:31:58
src/VirtoCommerce.OrdersModule.Data/Handlers/LogChangesOrderChangedEventHandler.cs
Show resolved
Hide resolved
vc-ci
left a comment
There was a problem hiding this comment.
Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 7.97
Timestamp: 18-12-2025T16:39:11
|
vc-ci
left a comment
There was a problem hiding this comment.
Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 7.808
Timestamp: 18-12-2025T17:20:20
(cherry picked from commit d40e7bb)



Description
Note
Refactors order indexing, change logging, and change-provider for overridability and clarity, adds an address property accessor, and switches repository lookups to async EF with improved diff/equality handling.
IndexCustomerOrderChangedEventHandler:Handlevirtual; extractShouldIndexAsync,IndexOrdersAsync,GetOrderIndexEntriesand enqueue only when entries exist.LogChangesOrderChangedEventHandler:GetOperationLogs, refactor differences handling via switches;TryToLogChangesBackgroundJobreturnsTask.Type; improveDifferenceComparerand use case-insensitive property matching.CustomerOrderChangesProvider:ChangeLogObjectType.CountAsync,ToArrayAsync); includeModifiedDatefallback; rename helpers to*Async.Model/Address: addGetAllProperties()wrapper used for address stringification.Written by Cursor Bugbot for commit 8379121. This will update automatically on new commits. Configure here.
References
QA-test:
Jira-link:
Artifact URL:
https://vc3prerelease.blob.core.windows.net/packages/VirtoCommerce.Orders_3.864.0-pr-476-8379.zip