You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The server-web endpoint /rest/location/findByProperties?is_jurisdiction=true&geometry=false&properties_filter=status:Active,parentId:null is meant to return the root locations in the DB. Any location whose parentId is not set is expected as the output to this call.
However, the endpoint returns an empty JSON array when the parentId is NULL, but returns the expected list when the parentId value is an empty string.
The text was updated successfully, but these errors were encountered:
This issue is related to opensrp-server-core issue #547
qiarie
changed the title
Root Location parentId Field Only Works With Empty String and Not NULL
Root Location parentId Field Only Works With Empty String and Not for NULL Values
Jan 25, 2022
The server-web endpoint
/rest/location/findByProperties?is_jurisdiction=true&geometry=false&properties_filter=status:Active,parentId:null
is meant to return the root locations in the DB. Any location whoseparentId
is not set is expected as the output to this call.However, the endpoint returns an empty JSON array when the
parentId
isNULL
, but returns the expected list when theparentId
value is an empty string.The text was updated successfully, but these errors were encountered: