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

Add visibility argument to flysystem resolver #777

Merged
merged 1 commit into from
Sep 2, 2016

Conversation

cedricziel
Copy link
Collaborator

Before this, there was no way to modify the visibility in a central place,
which was fine for local resolvers, or with predefined acls.

This changeset introduces a new visibility argument on the FlysystemResolver
that will be taken into account everytime a cache object is written to a flysystem
filesystem.

The default is public, so that cached objects are accessible from the outside,
which should be sensible.

Before this, there was no way to modify the visibility in a central place,
which was fine for local resolvers, or with predefined acls.

This changeset introduces a new `visibility` argument on the FlysystemResolver
that will be taken into account everytime a cache object is written to a flysystem
filesystem.

The default is public, so that cached objects are accessible from the outside,
which should be sensible.
@cedricziel cedricziel force-pushed the flysystemVisibility branch from 25d29e2 to b1335f8 Compare August 29, 2016 12:33
@alexwilson
Copy link
Collaborator

👍

Are there any other config options which can be exposed this way? (Took a look and couldn't see anything obvious!)

@cedricziel
Copy link
Collaborator Author

Most options are really adapter specific and those are configured on the underlying adapter instances. So far I think only visibility is really a shared option.

I thought about a mechanism for custom arguments, but that is something for another PR. We are already using the pull-request branch in production and visibility was really the only thing I had an urgent need for.

Thank you for reviewing, I consider it done, unless you you want me to correct something :)

@lsmith77 lsmith77 added the State: Reviewing This item is being reviewed to determine if it should be accepted. label Sep 2, 2016
@lsmith77 lsmith77 merged commit 9da07e3 into liip:master Sep 2, 2016
@lsmith77 lsmith77 removed the State: Reviewing This item is being reviewed to determine if it should be accepted. label Sep 2, 2016
@cedricziel cedricziel deleted the flysystemVisibility branch September 4, 2016 15:16
robfrawley added a commit to src-run/liip-imagine-bundle-sandbox that referenced this pull request Sep 9, 2016
lsmith77 added a commit that referenced this pull request Sep 15, 2016
robfrawley added a commit to src-run/liip-imagine-bundle-sandbox that referenced this pull request Sep 15, 2016
robfrawley added a commit to src-run/liip-imagine-bundle-sandbox that referenced this pull request Sep 15, 2016
jehaby pushed a commit to src-run/liip-imagine-bundle-sandbox that referenced this pull request Sep 27, 2016
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.

3 participants