-
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
Splitting config.sample.php into two files for core and app #32387
Conversation
e9a7274
to
900f2ee
Compare
Codecov Report
@@ Coverage Diff @@
## master #32387 +/- ##
============================================
- Coverage 64.06% 64.05% -0.02%
Complexity 18634 18634
============================================
Files 1176 1177 +1
Lines 70152 70164 +12
Branches 1270 1270
============================================
Hits 44944 44944
- Misses 24838 24850 +12
Partials 370 370
Continue to review full report at Codecov.
|
to me a first look as an admin I would guess that I need two config files: config.php and config.apps.php instead of a single one. does that work in practice ? as far as I remember the detection pattern was "xx.config.php" |
We have to decide what we want. The intention was to have two If there is the possibility of having multiple active I have already added on top of
|
do you have a reference for this ? From what I see in the doc https://doc.owncloud.org/server/10.0/admin_manual/configuration/server/config_sample_php_parameters.html#config-php-parameters if you have several config files it would read from them but never write there. And those files take precedence over config.php. Now I wonder how this behaves if values are specified in separate files that do get rewritten by OC in config.php... This also means that if we recommend people to have a separate apps.config.php file, the values there will never be writable by OC itself. This is only acceptable in scenarios where the admin explicitly agreed to have read-only config files in general. My worry is that with this seemingly small change we're opening a can of worms. What speaks against just re-sorting the keys inside config.sample.php and have a clear separator between "these are values for core" and "these are values for apps", maybe even sorted by app names ? |
Reference for this request: @DeepDiver1975 He very much wanted it, at least I understsood this in that way. There were also other discusions in the past where I at least remember that splitting was a point but I cant remember the issues. Again, I wanted to split the sample file. Not the config file itself even it is possible (I gave it a try and yes it works as you described). Primarily I would like to have one active config and not multiple. If you look around, the doc you referenced ist the only place this gets mentioned. The doc also explicity mentions to have as example the mail config in a seperate file, even now core writes eg mail changes to config.php... My very first attempt was to have a section to seperate content but @DeepDiver1975 insisted on splitting. Now where there are two files created, this looks imho much better and gives a better overview. As said, the description on top of the file clearly states that you should copy all relevant keys to config.php, no mentioning about multiple xxx.config.php Finally, we have the same in splitting the occ command reference, see link above. This would be harmonized with this one. |
900f2ee
to
6d044b8
Compare
6d044b8
to
8b3c180
Compare
Updated the apps file to run with the converter script for documentation repro. |
@PVince81 any (hopefully positive) statements? |
oh, I thought you guys merged this already
Would be good to have a link to the statement for this, to be sure there was no misunderstanding in writing. At this point I don't really care |
Here is the link as requested: #32268 (comment) @PVince81 could you merge, I will asap create the backport |
hmm, I'd interpret the comment more to make it about having some file inside app repositories. Fine, let's merge 👍 |
….php Splitting config.sample.php into two files for core and app
Description
This PR splits the current
config.sample.php
into two files:config.sample.php
core relatedand
config.apps.sample.php
apps relatedconfig.sample.php
contains all keys for the core system.It stays more or less the same, only one set of keys has been moved.
(The moved keys are not used when installing the system from scratch so no issue.)
config.apps.sample.php
contains now all keys for apps provided by ownCloud.I went thru all repros and added all keys I have identified and described on best effort.
Related Issue
Motivation and Context
It clearly seperates keys used by core and those by apps.
It helps app developers to add keys to the right location
How Has This Been Tested?
no test needed
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks:
@settermjd as discussed on talk, you need to update your script generating the documentation version to add the new file.
Note: we are planning the same split for occ commands in documentation.