Commit Graph

4 Commits

Author SHA1 Message Date
Guewen Baconnier 70d6966ce0
Fix a few small issues in mixin 2018-11-05 17:35:30 +01:00
Guewen Baconnier f7e207a1a1
Allow to edit default values for env-computed fields
When they don't have any key in the environment configuration files.
In the UI, when a field is set in a configuration file, the field is
readonly, if not the field is editable. Which means you can selectively
choose which fields depend on the environment and which can use a
"default" value stored in database.
2018-11-05 17:35:29 +01:00
Guewen Baconnier d917407672
Read default values from database when no config is provided
Automatically add <field_name>_env_default for every field transformed
to a "computed from env" field, so a default value can be set. It will
be used when the configuration is not set in a configuration file
(when the key is absent, not empty).
2018-11-05 17:35:29 +01:00
Guewen Baconnier fbc4f8f928
Add a server environment mixin
To automatically convert fields into fields reading values from the
environment. Until now, every module reimplements the same computed
field.
2018-11-05 17:35:29 +01:00