Skip to content

Conversation

@biplavbarua
Copy link

This PR implements pagination for the ListActivities API using page_size and page_token.

Changes

  • Store: Added Limit and Offset to FindActivity struct.
  • Drivers: Updated SQLite, MySQL, and PostgreSQL drivers to support pagination queries.
  • Service: Updated ListActivities in activity_service.go to handle pagination parameters and generate next_page_token.
  • Tests: Added activity_service_test.go to verify pagination logic.

Verification

  • Added new unit test TestListActivities covering creation and pagination flows.
  • Verified locally with go test.

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.

1 participant