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

ADX-1068 Updated DHIS2 api call for pivot table fetching. #112

Merged
merged 2 commits into from
Dec 3, 2023

Conversation

tomeksabala
Copy link
Member

Description

In Cameroon DHIS2 instance is returning 500 error due to the system having >8000 pivot tables.

A workaround would be to minimize the number of pivot tables returned by the query.
I have tried to order the result by lastUpdated date and return last ~200 entries but I couldn’t find a way to order by dates with DHIS2 api.

The only other thing I could came up with was to query pivot tables for either UNAIDS or ONUSIDA (fr). From my experience all countries tag their pivot table with it so I hope the solution will stand.

Checklist

Put an x in the boxes that apply to this pull request (you can also fill these out after opening the pull request).
You may not need to check all boxes.

  • The Jira ticket for this issue has been updated to "Ready to Review" or equivalent.
  • I have developed these changes in discussion with the appropriate project manager.
  • My code follows the general Fjelltopp documentation (see Confluence).
  • I have made corresponding changes to the Fjelltopp documentation (see Confluence).
  • I have rebased this branch with master.
  • New dependency changes have been committed.
  • I have added automated tests that prove my fix is effective or that my feature works.
  • New and existing tests pass locally with my changes.
  • My changes generate no new warnings.
  • I have performed a self-review of my own code.
  • I have assigned at least one reviewer.

@tomeksabala tomeksabala merged commit a8b7f29 into development Dec 3, 2023
3 checks passed
@tomeksabala tomeksabala deleted the adx-1068-pivot-table-metadata branch December 3, 2023 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant