Skip to content

Conversation

@ronilan
Copy link
Contributor

@ronilan ronilan commented May 5, 2022

Overview

This pull request fixes #607 and additional issues. It also refactors S3 Setup detect functionality and increases test coverage of existing features.

The fix to #607 can be considered a patch for #576 (by @pive). Solution is based on #608 (by @jared-duo). The latter could be merged prior to merging this pull request (for well deserved contributor karma 👍).

Change

  • Modified s3_setup detect function signature. Instead of augmenting an object (side effect) the function now gets an options object and returns a configuration object.
  • Cleaned up and commented the code used to automatically extract bucket and region from s3 url.
  • Modified versioning to add bucket name to hosted_path when s3ForcePathStyle is true.
  • Modified s3_setup to remove bucket name from prefix when s3ForcePathStyle is true.
  • Fixed console logs in publish, unpublish and info to be stylistically similar and report paths actually used.
  • Increased test coverage.

Tests

  • All tests pass.
  • Manual testing of s3ForcePathStyle options performed against play.min.io. All as expected.

@cclauss
Copy link
Collaborator

cclauss commented Jun 29, 2024

Please rebase.

ronilan added 3 commits June 28, 2024 18:22
- Modified function signature. Instead of augmenting an object (side effect) the function now gets an options object and returns a configuration object.
- Cleaned up of code auto used to extract bucket and region from s3 url.
- Added comments.
- Increased test coverage.
- All tests pass.
- Modified versioning to add bucket name to hosted_path when s3ForcePathStyle is true.
- Modified s3_setup to remove bucket name from prefix when s3ForcePathStyle is true.
- Added test coverage for s3ForcePathStyle cases.
@ronilan ronilan force-pushed the Fix-Use-s3ForcePathStyle-Appropriately-607 branch from 554be5f to 2555ef7 Compare June 29, 2024 01:22
@ronilan
Copy link
Contributor Author

ronilan commented Jun 29, 2024

Please rebase.

Yes sir 😄

Copy link
Collaborator

@cclauss cclauss left a comment

Choose a reason for hiding this comment

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

AWESOME WORK! Thanks for righting the ship.

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.

s3ForcePathStyle works for publishing but not installation

2 participants