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

Passing extra parameters in ActiveStorage::Blob#url to S3 Client #42504

Merged

Conversation

josegomezr
Copy link
Contributor

@josegomezr josegomezr commented Jun 16, 2021

Summary

This allows calls of ActiveStorage::Blob#url to have more interaction with the S3 Presigner, enabling, amongst other options,
custom S3 domain URL Generation.

Closes #42488

@ghiculescu
Copy link
Member

Nice one, thanks for the PR. Can you please add a changelog entry?

@josegomezr josegomezr force-pushed the activestorage_s3_pass_client_opts branch from 713da93 to f847558 Compare June 17, 2021 09:47
@josegomezr
Copy link
Contributor Author

My pleasure, entry added & resolved conflicts with main.

@josegomezr josegomezr force-pushed the activestorage_s3_pass_client_opts branch from f847558 to cc3f2c5 Compare June 17, 2021 09:56
@zzak
Copy link
Member

zzak commented Jun 17, 2021

@josegomezr Could you squash your commits too please? 🙇

This allows calls of `ActiveStorage::Blob#url` to have more
interaction with the S3 Presigner, enabling, amongst other options,
custom S3 domain URL Generation.

Closes rails#42488
@josegomezr josegomezr force-pushed the activestorage_s3_pass_client_opts branch from cc3f2c5 to 302f708 Compare June 17, 2021 11:35
@josegomezr
Copy link
Contributor Author

@zzak Squashed 🦾 !

@rafaelfranca rafaelfranca merged commit b307450 into rails:main Jun 17, 2021
@josegomezr
Copy link
Contributor Author

If I understood correctly the contribution guide: after the contribution is merged to main, in order to make it into the next release cycle I'll need to patch the 6-1-stable with this changes and create a new PR?

@rafaelfranca
Copy link
Member

No new features are added to stable branches. Those changes will only be released in Rails 7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ActiveStorage S3 doesn't generate custom domain URLs
4 participants