You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.
It will be quite handy that during setup:apply-database-settings at xquery/setup.xqy, instead of doing nothing whenever a value it's not set, it would default to some other value.
Like this, we would make sure that the database configuration and the configuration are perfectly aligned after a bootstrap.
Example:
let $value := setup:get-setting-from-database-config-as-string($database-config, "directory-creation")
let $admin-config :=
if ($value) thenadmin:database-set-directory-creation($admin-config, $database, $value)
elseadmin:database-set-directory-creation($admin-config, $database, "manual")
After a bootstrap it won't matter if somebody changed the setting manually or somebody removed the line from the config file. The setting will default to Manual and automatic directory creation will be disabled.
Thanks!
Again: I could send a pull request if you think it's interesting for everybody else.
The text was updated successfully, but these errors were encountered:
It is done the current way to make Roxy benefit from built-in defaults, or only make it touch important values.
If you want dir creation to be manual, it obviously is important to you. I would suggest making sure it is always added to ml-config, possibly with a comment DON'T REMOVE.. ;-)
Old ticket, but still thinking the same. The current implementation was by design, and it would touch a lot of code to change this. Moreover, it would hard-code particular defaults where you most often don't want to. Think about cache settings for instance.
It will be quite handy that during setup:apply-database-settings at xquery/setup.xqy, instead of doing nothing whenever a value it's not set, it would default to some other value.
Like this, we would make sure that the database configuration and the configuration are perfectly aligned after a bootstrap.
Example:
After a bootstrap it won't matter if somebody changed the setting manually or somebody removed the line from the config file. The setting will default to Manual and automatic directory creation will be disabled.
Thanks!
Again: I could send a pull request if you think it's interesting for everybody else.
The text was updated successfully, but these errors were encountered: