afw-org / afw

Adaptive Framework
https://afw.tools
MIT License
4 stars 1 forks source link

Fix issue with query criteria when searching on embedded properties #86

Open JeremyGrieshop opened 6 months ago

JeremyGrieshop commented 6 months ago

Currently, afw_query_criteria.c processes query criteria and one of its features is to allow for "dotted" property names to be referenced to indicate "embedded" properties within the object. (Note this is different from a property containing . characters and eventually tests will need to created to demonstrate both scenarios work).

However, the way property type information is retrieved does not account for embedded properties, and so the allowQuery cannot be read properly. The fix is to create an afw_object_property_type_get_extended() that operates parallel to afw_object_get_property_extended() to automatically resolve the embedded hierarchy for the caller.