Commit graph

9695 commits

Author SHA1 Message Date
Alexandre Aubin
8aee337d0f regenconf/portal: fix attempt to chown before the user is created 2023-10-30 17:04:58 +01:00
Alexandre Aubin
093c707eb6
Merge pull request #1677 from YunoHost/pydantic
ConfigPanel: switch to pydantic 3/3
2023-10-30 15:19:17 +01:00
axolotle
9423168aaf configpanels: fix app is_default + dns alert style 2023-10-30 15:17:01 +01:00
Alexandre Aubin
e4182bb362 debian: require moulinette, ssowat, yunohost-portal to be >= 12.0 2023-10-30 15:12:51 +01:00
Alexandre Aubin
418df4c05f debian: move yunohost-portal to 'Recommends' ... mainly to bypass issue on the CI, but also because it sounds legit ... not 100% about this ? 2023-10-30 15:12:51 +01:00
Alexandre Aubin
7c89c2c995
Merge pull request #1721 from YunoHost/fix-dump_script_log_extract_for_debugging
Fix dump script log extract for debugging
2023-10-30 14:01:31 +01:00
Kay0u
7f954af6b6 fix an error in dump_script_log_extract_for_debugging 2023-10-30 13:59:59 +01:00
axolotle
3faa574267 configpanel: add proper schema definition 2023-10-25 15:07:31 +02:00
axolotle
c4c79c61fe configpanel: forbid extra props on BaseOption + accordingly fix tests 2023-10-25 15:06:10 +02:00
axolotle
9134515604 domain:config: make 'registrar' info a frozen input since an alert has no value 2023-10-22 17:53:50 +02:00
axolotle
3a31984e3c configpanel: allow other ConfigPanels to have no settings defined 2023-10-22 17:51:04 +02:00
axolotle
e7b43c763c configpanel: do not raise error if no settings file 2023-10-22 17:49:08 +02:00
axolotle
66cb855c0c domain: type fix 2023-10-22 17:47:43 +02:00
axolotle
3cae07970e form: remove no longer used hydrate_option_type method 2023-10-22 15:50:32 +02:00
axolotle
3a5d353c4b form: force option type to 'select' if there's 'choices' 2023-10-22 15:50:32 +02:00
axolotle
3f417bb9b3 tests: update error instance in tests to YunohostError for packaging errors 2023-10-22 15:50:32 +02:00
axolotle
ef860ee6ee form: default type to "select" if choices in option 2023-10-22 15:50:32 +02:00
axolotle
6953a8bf15 configpanel: quick fix option typing 2023-10-22 15:50:30 +02:00
axolotle
2f4c88ec55 form: parse pydantic error in logging 2023-10-22 15:49:29 +02:00
axolotle
51d302bf18 configpanel: is_action_section as attr 2023-10-22 15:49:29 +02:00
axolotle
d370cb0b24 configpanel: add value in options dict for config get --full 2023-10-22 15:49:29 +02:00
axolotle
48f882ecd3 form+configpanel: reflect Section optional value to all its Options 2023-10-22 15:49:29 +02:00
axolotle
fccb291d78 form: readd pattern to path 2023-10-22 15:49:29 +02:00
axolotle
bd9bf29a88 debian: add python3-pydantic + python3-email-validator dependencies 2023-10-22 15:49:27 +02:00
axolotle
b778aaf780 form: remove ChoosableOptions for now 2023-10-22 15:48:07 +02:00
axolotle
6bef4b1e0e app: remove call of 'domain_config_get' to avoid infinite recursion 2023-10-22 15:48:07 +02:00
axolotle
2a28e289ad form: rework 'hydrate_questions...' with a new 'parse_raw_options' that parse and validate options 2023-10-22 15:48:07 +02:00
axolotle
37b4eb956d typing: add missing type + misc typing fixes 2023-10-22 15:48:06 +02:00
axolotle
54cc23c90c config: update SettingsConfigPanel.reset 2023-10-22 15:46:57 +02:00
axolotle
b45515049d config: fix wrong diff logic on settings apply 2023-10-22 15:46:57 +02:00
axolotle
98ec5448f2 form: cli retries as variable to be patched in tests 2023-10-22 15:46:57 +02:00
axolotle
98d3b4ffc8 form: rework context/values/hooks in prompt_or_validate_form 2023-10-22 15:46:57 +02:00
axolotle
73b795be1d config: readd value has been initialized + change test removed value from settings since boolean has a native default value 2023-10-22 15:46:57 +02:00
axolotle
f087a6b967 config: normalize get option value 2023-10-22 15:46:57 +02:00
axolotle
25ccbd5f78 configpanel: quickly update list_actions 2023-10-22 15:46:57 +02:00
axolotle
15c827908f configpanel: update run_action 2023-10-22 15:46:57 +02:00
axolotle
6b3691ce53 configpanel: update set 2023-10-22 15:46:57 +02:00
axolotle
5f9ea58313 configpanel: update _apply 2023-10-22 15:46:55 +02:00
axolotle
7a60703ef5 configpanel: update _ask 2023-10-22 15:30:02 +02:00
axolotle
2c35dcbb24 configpanel: update _reload_services 2023-10-22 15:29:13 +02:00
axolotle
f1038de56d form: fix entities validators order for filter and apply the right default 2023-10-22 15:29:12 +02:00
axolotle
dbaea019fe form+config: replace _parse_pre_answered method with generic function 2023-10-22 15:28:14 +02:00
axolotle
a92e22b653 config: rework get method 2023-10-22 15:27:16 +02:00
axolotle
80dbd6dac4 form: rework entities validators to avoid multiple calls to them 2023-10-22 15:21:21 +02:00
axolotle
02948ad49c config: rework config+settings getter methods 2023-10-22 15:19:32 +02:00
axolotle
564a66de2f configpanel: add config panel models 2023-10-22 15:15:14 +02:00
axolotle
bec34b92b0 form: add reserved "id" validator 2023-10-22 15:13:13 +02:00
axolotle
774b11cbbe form: add legacy "name" attr 2023-10-22 15:13:13 +02:00
axolotle
a574855a03 form: fix forbidden readonly type 2023-10-22 15:13:13 +02:00
axolotle
582b1ed311 form: add translating method 2023-10-22 15:13:13 +02:00