mirror of
https://github.com/nspcc-dev/ansible-neofs-ir.git
synced 2026-03-01 04:28:25 +00:00
Produce config with any available field filled (even if defaults are acceptable) #17
Labels
No labels
P1
P2
bug
documentation
enhancement
yaczrokh
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/ansible-neofs-ir#17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @carpawell on GitHub (Jul 6, 2023).
Why do I think so?
config_key: config_val, I do know what is happening if I do not see it, I try to recall every config value I have in my code and see what default it has and how it (its missing I mean) can affect the code)).@AnnaShaleva, @roman-khimov, @smallhive, @cthulhu-rider (devs who gonna see configs).
P.S. are default values so bad that they deserve an additional removal commit (time, attention, etc)?
@carpawell commented on GitHub (Jul 6, 2023):
If only I could add "question" and "discussion" labels in that repo...
@cthulhu-rider commented on GitHub (Jul 6, 2023):
thinking about maintainability and convenience, i'd keep the config minimal in volume while saving the information transmitted from the admin to the application
thinking about dev research and reproduction, i'd have an auxiliary utility that takes a config as input and outputs the total values used by the application (with set defaults which were ommited). This utility could share the code with the application, and would give the developer confidence about the input which actually reached the program execution
imo this would be a good tradeoff between minimalism and visibility. In general, talking about configuration, i think admin UX >> dev's comfort. Developer can get docs with defaults and restore the final config by himself
but im very interested in other opinions, both devs and admins
@smallhive commented on GitHub (Jul 7, 2023):
I don't mind and even like it when the config has not only default values but all possible values inside the config. Maybe even with comments. This config is a good starting point for configuration.
As an example, I want to show default PHP config. It has 2363 rows, including comments, default values, examples, etc.
From this example, you understand what you can adjust and how. How parameters affect the system. Default parameters always exist, but under comments, and you may use/change them easily.
Of course, in real life/production, such a big config isn't convenient and everyone uses a short version for 50-150 rows. These short versions describe very specific configurations for each installation.
Having fulfilled config really helps to make a shorter version.
In case we want to provide beginner config, we always may have some tutorial/separate config for each scenario. I mean next:
The main idea, I wanted to bring to the text is - config with defaults doesn't hide values and you know that some knobs exist