Repository navigation
Mount options GUI for external storage - #14925
Conversation
|
Nice! |
|
nice 👍 |
|
@PVince81 yes, for now the look is ok. We can polish the popovers for 8.2 then. |
|
Needs rebasing |
|
in progress |
4fcfe87 to
9b4daf0
Compare
|
Rebased onto master. @icewind1991 do we already have an option name for disabling the scanner ? |
|
Same as the global config one |
|
Cool, thanks. I'll add it.
|
|
I have added the option, but there seems to be a problem when reading it. When debugging the code here https://github.com/owncloud/core/blob/master/lib/private/files/storage/common.php#L336 the value was not set / empty array.
Also:
|
|
Ok, turns out the option is available, but the booleans are converted to strings somehow.
|
|
I fixed all the issues. I also noticed that the default watcher policy (1) doesn't even seem to work ? Raised as #15081 |
|
Here we go Mr Jenkins #15082 |
|
Rebase needed :( |
|
Looks nice so far :) |
Added option to disable autoscan of external storages Mount option file system scan is now an int Move priority field to avoid undefined field in storage options All input elements inside the storage options block get parsed into storage options. Moving the priority field outside prevents it to appear in the storage config, as expected. It is still parsed by special code.
554a827 to
ca6b715
Compare
|
Rebased. Note: while you can change the watcher setting, the watched might not work properly, which will be addressed in #15081 |
|
Jenkins PR second edition: #15213 |
|
@PVince81 Is this ready to review or still WIP? (see label) ;) |
|
To review. Thanks. |
|
still 👍 from my side |
|
👍 |
I'm on it. |
str_replace for $user substitution was converting the data type of mountOptions to string. This fix prevents this to happen by making sure only strings are processed by substitution. Also added a int conversion when reading the watcher policy
|
Fixed reading the mount options, which now actually make the watcher work properly. To test:
|
|
Jenkins PR: #15236 |
|
Code looks good 👍 |
|
The inspection completed: 4066 Issues, 127 Patches |
|
👍 |
Mount options GUI for external storage
|
Wouldn't it be cool to have an option that lets you mount external storage directly as a users home directory? Supposing I've owncloud installed on $5 DigitalOcean VPS. I only have about 10GB on that box. But I can buy cheaper storage from Amazon S3 and hook it up to my owncloud. But it shouldn't appear as "external storage folder". Instead, I should have the option of having an S3 bucket as the primary storage. Thanks |
|
@oquidave yes it would be cool. Please raise it as a separate ticket to make sure this doesn't get lost. |
Requires #11884 to be merged first.
@icewind1991 @DeepDiver1975 @Xenopathic FYI
@jancborchardt I hope the look of this dropdown is ok for now (there will be more checkboxes soon)