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

Bug list size overload #37

Merged
merged 28 commits into from
Jun 12, 2024
Merged

Bug list size overload #37

merged 28 commits into from
Jun 12, 2024

Conversation

Akopti8
Copy link
Collaborator

@Akopti8 Akopti8 commented Jan 29, 2024

@Akopti8 Akopti8 marked this pull request as ready for review January 30, 2024 21:55
@Akopti8 Akopti8 marked this pull request as draft January 31, 2024 14:55
@Akopti8 Akopti8 removed the request for review from ShaneMPutnam January 31, 2024 14:56
@Akopti8 Akopti8 marked this pull request as ready for review January 31, 2024 15:50
@Akopti8 Akopti8 requested review from ShaneMPutnam and slawler and removed request for slawler January 31, 2024 15:50
@Akopti8 Akopti8 marked this pull request as draft May 15, 2024 18:49
@Akopti8 Akopti8 marked this pull request as ready for review May 16, 2024 14:46
Copy link
Member

@ShaneMPutnam ShaneMPutnam left a comment

Choose a reason for hiding this comment

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

Looks of nice updates in here! See inline comments and some general comments here:

  • There are a few places where you use errors.New instead of fmt.Errorf. See line 145 of move.go for example. Try to be consistent
  • Sometimes your errors/return messages start with lower case letter and other times they start with a capital letter.
  • Most of the time you use a colon followed by the error message, though sometimes you use a comma.

Note that I skimmed the test scripts, but did not test them since I am not sure how to do that. Also I do not totally understand the logic behind how the test names are numbered, at times they seem to be inconsistent, but I could just not get it.

blobstore/blobhandler.go Outdated Show resolved Hide resolved
e2e-test/e2eCollection.json Show resolved Hide resolved
blobstore/move.go Outdated Show resolved Hide resolved
blobstore/move.go Show resolved Hide resolved
blobstore/move.go Show resolved Hide resolved
blobstore/list.go Outdated Show resolved Hide resolved
blobstore/list.go Outdated Show resolved Hide resolved
blobstore/list.go Outdated Show resolved Hide resolved
blobstore/presigned_url.go Outdated Show resolved Hide resolved
blobstore/presigned_url.go Outdated Show resolved Hide resolved
Copy link
Member

@ShaneMPutnam ShaneMPutnam left a comment

Choose a reason for hiding this comment

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

Thanks for those updates! I made a few small changes: 0c976c9 and one inline comment to consider as a part of your next PR. I also added or modified the following two issues for future updates:

@@ -27,6 +27,31 @@ type ListResult struct {
ModifiedBy string `json:"modified_by"`
}

// CheckAndAdjustPrefix checks if the prefix is an object and adjusts the prefix accordingly.
// Returns the adjusted prefix, an error message (if any), and the HTTP status code.
func CheckAndAdjustPrefix(s3Ctrl *S3Controller, bucket, prefix string) (string, string, int) {
Copy link
Member

Choose a reason for hiding this comment

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

I think it would be more standard to return an error, instead of a errorMessage? Like (string, int, error)

@ShaneMPutnam ShaneMPutnam merged commit 47ab4ad into main Jun 12, 2024
1 check passed
@ShaneMPutnam ShaneMPutnam deleted the bug-list-size-overload branch June 12, 2024 19: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
2 participants