Skip to content

Conversation

@bitsofsteve
Copy link
Member

@bitsofsteve bitsofsteve commented Nov 13, 2025

  • Add pagination loop with nextPageToken to get_file_metadatas_from_folder()
  • Fixes bug where folders with >100 files only returned first page
  • All 3 callers automatically work with unlimited files
    • get_events_messages_for_datasite_watcher()
    • get_all_events_messages_do()
    • get_next_proposed_filechange_message()
  • Backward compatible (same signature, no caller changes needed)
  • Add unit tests verifying pagination works correctly

TODO/DOING:

  • Add Sorting

    • orderBy='name' (Gdrive)
    • Consider client-side sorting to avoid lexicographic sorting issue since filename contains floating timestamps
  • Add filtering on file returns

  • Add Integration tests

- Add pagination loop with nextPageToken to get_file_metadatas_from_folder()
- Fixes bug where folders with >100 files only returned first page
- All 3 callers now automatically work with unlimited files
- Backward compatible (same signature, no caller changes needed)
- Add unit tests verifying pagination works correctly
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.

2 participants