WebApi icon indicating copy to clipboard operation
WebApi copied to clipboard

$select = complexProperty/complexColProperty query option is not support

Open VikingsFan opened this issue 11 years ago • 14 comments

query like ?$select=Address/Line1,Address/Line2,Address/PostCode is not support In System.Web.OData.Formatter.Serialization.SelectExpandNode ValidatePathIsSupported function : when segmentCount == 2, only support first segment is a Type Segment, only support paths of type 'cast/structuralOrNavPropertyOrAction'

VikingsFan avatar Jan 21 '15 05:01 VikingsFan

Is there an ETA for supporting this yet? Going on two and a half years now, and it's still needed. Maybe @robward-ms can re-assign it to someone else?

Thanks!

robertmclaws avatar May 07 '17 14:05 robertmclaws

@robward-ms Any news on this feature?

bdebaere avatar May 02 '18 11:05 bdebaere

No news here; the team is focused on getting WebApi AspNetCore finished up before tackling new features.

robward-ms avatar May 03 '18 03:05 robward-ms

This issue affects Azure Search as well. We are expanding the semantics of $select in our API to handle complex types.

I investigated this issue to the point where I have a sense of the scope of the fix, and it's not small. I already have a workaround in place, so unfortunately it's not worth the effort for my team to take this on. However, I did write an E2E test that will be useful for the next person who tackles this. That was surprisingly difficult too due to some EF dependencies in the E2E tests. I'll send a PR for that shortly.

bitsforthought avatar May 31 '18 01:05 bitsforthought

@robward-ms, @xuzhg is there any news on this feature?

vsopko avatar Feb 14 '19 00:02 vsopko

@mikepizzo @xuzhg Any idea on when we can expect to get this feature?

NimaAra avatar Sep 16 '19 14:09 NimaAra

@robward-ms, @xuzhg is there any news on this feature?

suadev avatar Oct 16 '19 06:10 suadev

@suadev Thanks for querying. I am busy on this feature now. I hope I can finish it quickly and release it in the next version.

xuzhg avatar Oct 16 '19 16:10 xuzhg

@xuzhg - We're extending our Api to support Complex Properties and getting the same error during serialization. Kindly let me know if the fix that you're implementing is part of System.Web.OData v5.x and when can we expect the fix to be released

Version of System.Web.Odata being used - 5.9.0

VenuMadhavPerumalla avatar Oct 22 '19 17:10 VenuMadhavPerumalla

@VenuMadhavPerumalla Thanks for letting us know your scenarios. Unfortunately, We are focus on 7.x version and 5.x is in maintenance status.

xuzhg avatar Oct 22 '19 21:10 xuzhg

It block me to use ef core owned type, any workaround for this ? @xuzhg nice to hear that you are start doing this feature. Can give a estimate time when the next version release ? is it possible end of this year ?

keatkeat87 avatar Oct 28 '19 14:10 keatkeat87

@keatkeat87 Thanks for querying this. I just created a PR to enable it. Hope i can finish it as soon as possible if the code review works well. BTW, for any one who is interested in this feature are welcome to leave any comments to the PR at #1941.

xuzhg avatar Oct 28 '19 22:10 xuzhg

@xuzhg any news for your PR?

suadev avatar Nov 28 '19 09:11 suadev

My PR got merged. It's released in 7.2.3

xuzhg avatar Dec 11 '19 02:12 xuzhg