-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config panel broken because of removed bind #483
Comments
While talking about config, I would set
Otherwise my understanding is that anonymous people could join visio or audio meeting, opening a door for a misusage. |
Hello,
Firstly, CLI to me is when we use the yunohost CLI So now about b435f31, here are the state before b435f31:
After b435f31:
Well, from what I know in yunohost there was never a system to give the possibility to update the config with the upstream change and in same time to keep the custom change. But well, maybe I pass around something and I would be happy to see some doc or code about this. 😉
To me the previous comportment have too many issue so to me no. But you still can argue about this if you still think that there are a good reason to rollback this change.
Please for a different question create a different issue, it's more simple to follow the discussion. 😉 It's already the case: synapse_ynh/scripts/_common.sh Line 189 in 1262627
But note at some time maybe it was different. And you still can change the value from the config panel. |
In theory, the options in the config panel are saved in the file and in the settings too when you use the bind notation... That's the case for all other config panel. If you discover that the change disappears, it's a big bug and it would have been interesting to understand why these changes disappear and are not reapplied. I see that in recent version, a templating approach is used to fill the homeserver conf after applying a config panel, this approach have the default that it erase all manual change (even if this change are made with a post_app_upgrade hook). However i understand that we would like in this app manipulates some complex structure in yaml, things that are not managed by default in config panel. So i understand that using jinja seems quite nice to do that. For me, any of the classic approach and the templating approach are perfect. I guess synapse_ynh could be a good use case to discuss in order to improve globally config panel mechanism. |
Can you share the part of code which explain this ?
Can you explain more how works exactly the Note the other issue with the binding feature is that in synapse we don't just bind one settings with one simple value in the homeserver.yaml, it's quite more complex. So to me using jinja bring a lot more simplicity to manage this than before. I could understand that it's great to be able to edit the config file, but if the cost is a lot of code (with a risk of bug) I'm not sure of the interest. I just prefer to add some more settings in the config panel if needed (and adding something like |
From what I remember also the reason to rebuild the config for the config panel is also for simplification reason. So we have only one place were we manage the input value and build the new config file. To we can eventually rollback for the simple value which can be easily mapped, if the new value are correctly saved in the app settings. For the other one I'm not sure it's a good idea as it bring a lot of complexity. |
Yes I agree that we discus to improve it. |
what was the purpose of removing all
bind
in config_panel.toml with commit b435f31With this, modifications made in homeserver.yaml in CLI are not taken into account in the config panel. And the config that you read in the config panel if the file was modified in CLI does not correspond to the actual synapse config.
So if I'm not wrong, either you make modifications in CLI or in the config panel.
And there are probably other drawbacks, such as crushing the previous config with the default one at upgrade. Keeping custom config at upgrade and at the same time taking into account upstream changes to the config file is one major benefit of the config panel from my point of view.
Could we put back the
bind
?The text was updated successfully, but these errors were encountered: