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

feat: support multiple coordinates and fallback coordinates in event layers (2nd iteration) #3468

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

BRaimbault
Copy link
Collaborator

@BRaimbault BRaimbault commented Feb 17, 2025

Implements:

Requires:


Description

Test datasets:

Alternative coordinates:
  • Event coordinate
  • Enrollment coordinate *
  • Tracked entity coordinate *
  • Program stage data elements of type coordinates
  • Program tracked entity attributes of type coordinate *

* Only for programs with enrollment

Fallback mechanism:
  • None
  • Single coordinate
  • Cascade: Enrollment > event > tracked entity > org unit coordinate

References:

Frontend:
Backend:

We are supporting these parameters:

coordinateField. We are supporting all previous type plus pigeometry, psigeometry, teigeometry and ougeometry. Do not forget that teigeometry is valid only for registration program,

fallbackCoordinateField: it is hard fallback. We are supporting “pigeometry“, “psigeometry“, “teigeometry“ and “ougeometry“ as well as data elements and tracked attributes. Do not forget that teigeometry is valid only for registration program,

defaultCoordinateFallback (true/false).

When fallbackCoordinateField is null and defaultCoordinateFallback is true (default), a cascade fallback is applied (pigeometry -> psigeometry -> teigeometry -> ougeometry)

TODO

  • Dashboard tested
  • Tests added (Cypress and/or Jest)
  • Docs added
  • Update dependencies to not point to d2-ci
  • todo

Known issues

  • issue

Screenshots

supporting images

@dhis2-bot
Copy link
Contributor

dhis2-bot commented Feb 17, 2025

🚀 Deployed on https://pr-3468.maps.netlify.dhis2.org

@dhis2-bot dhis2-bot temporarily deployed to netlify February 17, 2025 15:45 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify February 21, 2025 08:30 Inactive
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

Successfully merging this pull request may close these issues.

2 participants