AI OnAI Off
I think it was an overlook (aka a bug). I will file a bug to commerce team. thanks for bringing this into our attention
@Christian, good catch. The only solution I see until the bug is resolved is create an override of DefaultOrderSearchAsyncService or replace custom implementation of IOrderSearchAsyncService and copy the existing implementation code and adjust it to your need. Or else you can try adding a code interception.
Given the following interface from optimizely:
I would expect it to be possible to search for carts in the the order repository using IOrderSearchAsyncService by doing the following:
The observed result is that all carts are returned, regardless of their CustomerId being different.
Is this the intended behaviour?