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
Calling GET /api/tree/folders/{domain}/{id}/ancestors may return child items in a model in a non-specific order, thereby making it appear that the children could be swapped round.
As an example, look at this UI representation of a ancestor trail:
In this case, ACTIVITY COUNT is a Data Element, and ACTIVITY is a Data Class. The way this should appear is that ACTIVITY should be before ACTIVITY COUNT, but they are rendered the wrong way round. This is because the JSON returned by the ancestors endpoint returns a flat, unordered list of children from the Data Model down:
Description
Calling
GET /api/tree/folders/{domain}/{id}/ancestors
may return child items in a model in a non-specific order, thereby making it appear that the children could be swapped round.As an example, look at this UI representation of a ancestor trail:
In this case,
ACTIVITY COUNT
is a Data Element, andACTIVITY
is a Data Class. The way this should appear is thatACTIVITY
should be beforeACTIVITY COUNT
, but they are rendered the wrong way round. This is because the JSON returned by the ancestors endpoint returns a flat, unordered list of children from the Data Model down:Expected behavior
For consistency, either:
children
array should contain one item at most, so that there is only one level at each part of the ancestor trail. Or,The text was updated successfully, but these errors were encountered: