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

[Location Hierarchy] Update the hierarchy creation process to retrieve child locations using lineage location tags. #113

Open
1 of 3 tasks
dubdabasoduba opened this issue Jan 21, 2025 · 2 comments · May be fixed by #114

Comments

@dubdabasoduba
Copy link
Member

dubdabasoduba commented Jan 21, 2025

Contexta

  • OpenSRP currently builds a location hierarchy by recursively traversing the Location.partOf property in the Location resources.
  • This ticket aims to enhance the functionality by enabling the retrieval of child locations using the Location.meta.tags present in the Location resources.
  • These location tags are generated as described in [Location Hierarchy] Enable storing ancestor tags on all locations. #110.

Implementation

  • Update the process for fetching child locations during location hierarchy creation to use lineage location tags instead of recursively traversing the hierarchy via the Location.partOf property.
  • Backward compatibility

Acceptance Criteria

  • Child locations in the hierarchy are retrieved using lineage location tags.
@pld
Copy link
Member

pld commented Jan 22, 2025

Let's use a feature flag to control this, so we can support older versions of the data that don't have hierarchies in them

@pld
Copy link
Member

pld commented Jan 22, 2025

We can remove this after we get the new version in production and it's working good, and all the data is migrated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants