core icon indicating copy to clipboard operation
core copied to clipboard

config_sample missing two item

Open carlaschroder opened this issue 12 years ago • 9 comments

These are missing from config_sample_php:

instanceid version

carlaschroder avatar Oct 06 '14 04:10 carlaschroder

There parameters are generated and only for internal use, they should not be set by users. Not sure whether we should mention that in config_sample.php still ?

PVince81 avatar Oct 06 '14 09:10 PVince81

Not sure whether we should mention that in config_sample.php still ?

I'd vote for no

DeepDiver1975 avatar Oct 06 '14 12:10 DeepDiver1975

No please. Otherwise people will set manually and run into strange problems.

karlitschek avatar Oct 06 '14 12:10 karlitschek

They are visible in config.php, so they definitely need to be included and explained in config_sample_php.

carlaschroder avatar Oct 06 '14 16:10 carlaschroder

Middle ground would be to write something like this into config_sample.php:

/* Do NOT set this value manually. It is internal and should never be changed manually. */
'instanceid' => '',

Niduroki avatar Oct 13 '14 13:10 Niduroki

Middle ground would be to write something like this into config_sample.php:

doesn't work out - reading comments is generally an ability which people don't have

DeepDiver1975 avatar Oct 13 '14 13:10 DeepDiver1975

They are visible in config.php, so they definitely need to be included and explained in config_sample_php.

That argument doesn't really count - any app at any point in time can write new configuration keys to the config. We cannot document the whole world.

I still vote for NO

DeepDiver1975 avatar Oct 13 '14 13:10 DeepDiver1975

We should close this then – I have to agree with you, that some people probably won't read the comment.

Niduroki avatar Oct 13 '14 14:10 Niduroki

yes. There is no point in documenting something which are only internal values and should never be changed.

karlitschek avatar Oct 13 '14 14:10 karlitschek