Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(storage): multi bucket list api #5576

Open
wants to merge 17 commits into
base: multi-bucket
Choose a base branch
from

Conversation

ekjotmultani
Copy link

@ekjotmultani ekjotmultani commented Oct 18, 2024

Issue #, if available:

Description of changes:

added storage bucket option to the options type for the list api
added integration tests

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ekjotmultani ekjotmultani marked this pull request as ready for review October 21, 2024 19:02
@ekjotmultani ekjotmultani requested a review from a team as a code owner October 21, 2024 19:02
@ekjotmultani ekjotmultani changed the title Feat/multi bucket list api feat(storage): multi bucket list api Oct 21, 2024
@@ -27,8 +28,11 @@ class StorageListOptions
/// {@macro amplify_core.storage.list_plugin_options}
final StorageListPluginOptions? pluginOptions;

/// an optional bucket to specify which bucket to return the list for
Copy link
Member

Choose a reason for hiding this comment

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

nit: make this consistent with the getProperties api doc

setUpAll(() async {
await configure(amplifyEnvironments['main']!);

for (final path in uploadedPaths) {
for (var i = 0; i < 4; i++) {
Copy link
Member

Choose a reason for hiding this comment

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

Q: Why did this change? Regardless, the upper bound for all these for loops should not be magic numbers. Please move these to descriptive variable names.

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.

4 participants