Skip to content

add dhis2 paging examples#797

Merged
josephjclark merged 2 commits into
mainfrom
dhis2-paging-examples
Jul 9, 2026
Merged

add dhis2 paging examples#797
josephjclark merged 2 commits into
mainfrom
dhis2-paging-examples

Conversation

@mtuchi

@mtuchi mtuchi commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Short Description

This pr add job code examples for dhis2 tracker pagination.
See loom video
https://www.loom.com/share/7823dafab2ee4a989f2dec00adc4f5db

AI Usage

Please disclose how you've used AI in this work (it's cool, we just want to
know!):

  • I have used Claude Code
  • I have used another model
  • I have not used AI

You can read more details in our
Responsible AI Policy

@mtuchi mtuchi requested a review from josephjclark June 5, 2026 13:06
Comment thread adaptors/library/jobs/fetch-all-events-with-pagination.js
@@ -0,0 +1,22 @@
// Fetching all events with pagination

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So why are there 2 export statements here?

One seems to pull all data in pages of 1000, the other then iterates over each page and pulls it again?

I'm not sure what the story is here but I think it needs explaining in comments

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added a comment for both tracker.export

@mtuchi

mtuchi commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

Note to self:

@mtuchi mtuchi requested a review from josephjclark July 8, 2026 08:50

@josephjclark josephjclark left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic - new comments are super helpful, thank you

@josephjclark josephjclark merged commit 7e55e3b into main Jul 9, 2026
1 check passed
@josephjclark josephjclark deleted the dhis2-paging-examples branch July 9, 2026 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants