Skip to content
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

Root Location parentId Field Only Works With Empty String and Not for NULL Values #1055

Open
qiarie opened this issue Jan 25, 2022 · 2 comments
Assignees

Comments

@qiarie
Copy link
Contributor

qiarie commented 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 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.

@qiarie qiarie self-assigned this Jan 25, 2022
@qiarie
Copy link
Contributor Author

qiarie commented Jan 25, 2022

This opensrp-web issue issue is related

@qiarie
Copy link
Contributor Author

qiarie commented Jan 25, 2022

This issue is related to opensrp-server-core issue #547

@qiarie 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant