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

merge list_objects_v2() into list_objects() method #953

Conversation

balamurugana
Copy link
Member

No description provided.

@balamurugana balamurugana force-pushed the merge-list_objects_v2-into-list_objects-method branch 3 times, most recently from 6afee6c to a955a53 Compare August 6, 2020 16:49
vadmeste
vadmeste previously approved these changes Aug 10, 2020
Copy link
Member

@vadmeste vadmeste left a comment

Choose a reason for hiding this comment

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

LGTM, although this looks like a breaking change, maybe we need to increase major version number now

@harshavardhana
Copy link
Member

LGTM, although this looks like a breaking change, maybe we need to increase major version number now

Yes, unfortunately, we will have to do that @vadmeste

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# MinIO Python Library for Amazon S3 Compatible Cloud Storage,
# (C) 2015, 2016 MinIO, Inc.
# (C) 2015 MinIO, Inc.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# (C) 2015 MinIO, Inc.
# (C) 2015-2020 MinIO, Inc.

@balamurugana balamurugana force-pushed the merge-list_objects_v2-into-list_objects-method branch 2 times, most recently from 5be8a19 to c7e4734 Compare August 12, 2020 15:27
@balamurugana balamurugana force-pushed the merge-list_objects_v2-into-list_objects-method branch from c7e4734 to c43362b Compare August 24, 2020 03:24
@balamurugana
Copy link
Member Author

Depends on #966

@balamurugana balamurugana force-pushed the merge-list_objects_v2-into-list_objects-method branch from c43362b to 3a9b22d Compare August 26, 2020 17:28
Copy link
Member

@vadmeste vadmeste left a comment

Choose a reason for hiding this comment

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

One comment, LGTM otherwise

@@ -32,8 +32,8 @@

# List all object paths in bucket that begin with my-prefixname using
# V2 listing API.
objects = client.list_objects_v2('my-bucketname', prefix='my-prefixname',
recursive=True)
objects = client.list_objects('my-bucketname', prefix='my-prefixname',
Copy link
Member

Choose a reason for hiding this comment

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

This example has duplicated code after your change, I guess you need to use api v1 in the first line and update some wording

Copy link
Member Author

Choose a reason for hiding this comment

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

done

Copy link
Member

@vadmeste vadmeste left a comment

Choose a reason for hiding this comment

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

LGTM & tested

@harshavardhana harshavardhana merged commit 70f148e into minio:master Sep 1, 2020
@balamurugana balamurugana deleted the merge-list_objects_v2-into-list_objects-method branch September 1, 2020 18:13
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