You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation loads all objects. It fetches 1000 per page but does not stop at one page. This might not always be the best as it makes ListObjects slower and produces higher traffic.
It would be better to add an overload that takes a "Cursor"-value and a max entries parameter.
The text was updated successfully, but these errors were encountered:
Fixes#36
Add pagination support to ListObjects() method.
* Add a new overload for `ListObjectsAsync` in `IObjectService` interface to take a 'Cursor'-value and a max entries parameter.
* Update `ListObjectsOptions` class to include a `MaxEntries` property and update the `ToSWIG` method to include this property.
* Implement the new overload for `ListObjectsAsync` in `ObjectService` class to handle the 'Cursor'-value and max entries parameter.
* Update `BucketContentViewModel` class to use the new overload of `ListObjectsAsync` with 'Cursor'-value and max entries parameter.
* Add a new test method in `ObjectServiceTest` to verify the new overload of `ListObjectsAsync` with 'Cursor'-value and max entries parameter.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/TopperDEL/uplink.net/issues/36?shareId=XXXX-XXXX-XXXX-XXXX).
The current implementation loads all objects. It fetches 1000 per page but does not stop at one page. This might not always be the best as it makes ListObjects slower and produces higher traffic.
It would be better to add an overload that takes a "Cursor"-value and a max entries parameter.
The text was updated successfully, but these errors were encountered: