Skip to content

[list] use pagination to list s3 objects#513

Merged
aaperis merged 5 commits intomainfrom
feature/pagination-of-list-files
Mar 10, 2025
Merged

[list] use pagination to list s3 objects#513
aaperis merged 5 commits intomainfrom
feature/pagination-of-list-files

Conversation

@aaperis
Copy link
Copy Markdown
Contributor

@aaperis aaperis commented Feb 28, 2025

Related issue(s) and PR(s)
This PR closes #502 .

Description

  • Overall functionality remains unchanged but now the ListFiles function checks to see if there are more than the returned results and makes subsequent calls until it retrieves all the object info.
  • Added unit tests for ListFiles function (which were missing) along with tests for list pagination

How to test
Easy way: run go test ./helpers
Other way: Upload 1001 files in a bucket and try to list with sda-cli

@aaperis aaperis force-pushed the feature/pagination-of-list-files branch from a143d84 to 48af8cc Compare March 4, 2025 12:02
@aaperis aaperis marked this pull request as ready for review March 5, 2025 12:35
@aaperis aaperis requested a review from a team March 5, 2025 12:35
@aaperis aaperis self-assigned this Mar 5, 2025
Copy link
Copy Markdown
Member

@MalinAhlberg MalinAhlberg left a comment

Choose a reason for hiding this comment

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

Looks all good to me :)

Comment thread helpers/helpers.go Outdated
@aaperis aaperis force-pushed the feature/pagination-of-list-files branch from 884d5a0 to ace1d21 Compare March 6, 2025 15:17
Copy link
Copy Markdown
Contributor

@nanjiangshu nanjiangshu left a comment

Choose a reason for hiding this comment

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

Works well when I tested! Great job!

@aaperis aaperis added this pull request to the merge queue Mar 10, 2025
Merged via the queue into main with commit 329b6bd Mar 10, 2025
6 checks passed
@aaperis aaperis deleted the feature/pagination-of-list-files branch March 10, 2025 07:53
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.

[list] Be able to list more than 1000 files

3 participants