-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[stable10] Allow configuring thumbnails path #35131
Conversation
One reason I want a separate thumbnails folder is because I consider this like a cache and don't want this in backups. Also having it separate makes it easier to clean up. |
Tested on my own server by patching on top of 10.2.0 RC1, works fine. My thumbnails are stored in "/var/cache/thumbnails/$user" now. |
|
f240bc1
to
2dadf07
Compare
Codecov Report
@@ Coverage Diff @@
## stable10 #35131 +/- ##
===============================================
- Coverage 64.47% 44.97% -19.51%
===============================================
Files 1288 116 -1172
Lines 76936 11565 -65371
Branches 1307 1307
===============================================
- Hits 49606 5201 -44405
+ Misses 26949 5983 -20966
Partials 381 381
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## stable10 #35131 +/- ##
==============================================
+ Coverage 64.48% 64.49% +<.01%
- Complexity 20074 20078 +4
==============================================
Files 1288 1289 +1
Lines 76955 76966 +11
Branches 1307 1307
==============================================
+ Hits 49626 49637 +11
Misses 26948 26948
Partials 381 381
Continue to review full report at Codecov.
|
@mmattel I've adjusted the doc, please check. I've now written unit tests for both the previews mount provider and cache mount provider. @DeepDiver1975 please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one minor phpdoc issue - 👍
private $config; | ||
|
||
/** | ||
* ObjectStoreHomeMountProvider constructor. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ObjectStore ❓
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed now in both cache and preview providers
2dadf07
to
223e83c
Compare
config/config.sample.php
Outdated
* and `$user` will be substituted with the user id automatically. | ||
* | ||
* For example if "previews_path" is "/var/cache/owncloud/thumbnails" then for a logged in | ||
* user "user1" the thumbnail path will be "/var/cache/owncloud/thumbnails/user1". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you pls use back-ticks instead quotes
As you correctly do in the block above...
The text is fine, thanks for adding it 👍
223e83c
to
c57b8b7
Compare
all adjusted, including CI issues |
master: #35196 |
Similar to "cache_path" but for thumbnails.
This was quickly copied from the CacheMountProvider
Why ? Because I tried to set this up on my server with symlinks and it says "following symlinks not allowed".