-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$filter in $expand can't work if the $expand applied on function results #1162
Comments
I took a quick look the source codes, basically, “delta” is an edm function which returns a collection of entity. But, it doesn’t set the corresponding target navigation source binding. The returned navigation source is necessary (at least from the source code) to process the nested $filter, $orderby, $search, $compute. But, it’s not necessary to process the nested $select and $expand. That’s why the following scenarios can work: But, the following scenarios can’t work: I tested it, if I added the an entity set path (see highlight below) for the delta function, the above failing scenarios can work. <Function Name=""delta"" IsBound =""true"" EntitySetPath=""bindingParameter/driveItems""> I think we should take time to investigate why it needs the path in order to resolve the URL. |
@biaol-odata @xuzhg hey any progress or workaround on this? currently we cant use $expand singleExtendedProperties with delta query for messages. thanks!! |
I did further digging.
This cascades to the
|
Why not set an |
@iriszhou320 Add
|
We are seeing an Internal Server Error AGS-side when trying this URL:
https://graph.microsoft.com/v1.0/me/activities/recent?$expand=historyItems($filter=lastModifiedDateTime%20gt%202018-01-22T21:45:00.347Z%20and%20lastModifiedDateTime%20lt%202018-01-22T22:00:00.347Z)
Here’s the error I see in the logs:
This looks like a bug. The following all work:
https://graph.microsoft.com/v1.0/me/drive/root/delta?$expand=microsoft.graph.driveItem/children
https://graph.microsoft.com/v1.0/me/drive/root/delta?$expand=microsoft.graph.driveItem/children($expand=children)
https://graph.microsoft.com/v1.0/me/drive/root/delta?$expand=microsoft.graph.driveItem/children($select=id)
but these do not:
https://graph.microsoft.com/v1.0/me/drive/root/delta?$expand=microsoft.graph.driveItem/children($filter=id eq ‘x’)
https://graph.microsoft.com/v1.0/me/drive/root/delta?$expand=microsoft.graph.driveItem/children($orderby=id)
Assemblies affected
Additional detail
Optional, details of the root cause if known. Delete this section if you have no additional details to add.
The text was updated successfully, but these errors were encountered: