Skip to content

feat: support cross-stage data elements in metadata response #21479

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

luciano-fiandesio
Copy link
Contributor

@luciano-fiandesio luciano-fiandesio commented Jul 22, 2025

Summary

Related Jira Issue: DHIS2-19750

Description

This PR modifies the metadata and headers part of the response for enrollments and events aggregate requests.
When the request contains a dimension like: dimension=A03MvHHogjR.a3kGcGDCuk6 or stage=A03MvHHogjR the metadata and headers now contains the same stage + item reference.

{
  "headers": [
    {
      "name": "pTo4uMt3xur.oZg33kd9taw",
      "column": "Gender",
      "valueType": "TEXT",
      "type": "java.lang.String",
      "hidden": false,
      "meta": true,
      "optionSet": "pC3N9N77UmT"
    },
    ...
  ]
}
"metaData": {
    "pager": {
      ...
    },
    "items": {
      ...
      "pTo4uMt3xur.oZg33kd9taw": {
        "name": "Gender"
      },
    }
}

@luciano-fiandesio luciano-fiandesio added the run-api-analytics-tests Enables analytics e2e tests label Jul 22, 2025
@luciano-fiandesio luciano-fiandesio force-pushed the DHIS2-19750_CROSS-STAGE-DE-SUPPORT branch from ffbf42e to 055a4ca Compare July 22, 2025 10:44
@luciano-fiandesio luciano-fiandesio marked this pull request as ready for review July 22, 2025 14:12
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-api-analytics-tests Enables analytics e2e tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants