-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Show deprecated config settings in UI #25994
Comments
I think it needs a "self-check" page (ref :#24392 (comment) )
And a lot of errors/warnings can be shown there (including "Add logs to tell users they should move some of their legacy custom public files" in #25974) For the "config options", I think we also need our own INI package to see whether a config option is really read(used). If any config key is not used, it should also remind the users that "you have misconfiguration in your app.ini", it could avoid a lot of low-level mistakes. |
Not only a self-check page, maybe it should also a self-fix page? |
Only a few can be fixed by Gitea itself. But Gitea can fix none of "database version", "incorrect config", "proxy rewriting", "system time", "free disk" and even more. |
We can also have a topbar warning like ROOT_URL which only displayed on admin panel or admin's UI. |
Don't show the user things that are only intended for admins. |
Of course it should not. |
Ah, so only show it for admins? |
Yes, and when click, it will display a page which will list all the deprecated configurations. I remember you have created a PR which do a similar thing? |
… file (#26094) (#26154) backport #26094 Temporily resolve #25915 Related #25994 This PR includes #26007 's changes but have a UI to prompt administrator about the deprecated settings as well as the log or console warning. Then users will have enough time to notice the problem and don't have surprise like before. <img width="1293" alt="图片" src="https://github.com/go-gitea/gitea/assets/81045/c33355f0-1ea7-4fb3-ad43-cd23cd15391d">
Now they are shown on the "Self Check" page. Feel free to reopen if I missed anything. |
Feature Description
https://github.com/go-gitea/gitea/blob/main/modules/setting/config_provider.go could be expanded to also collect deprecated settings and show them on the UI (perhaps in the Admin interface?).
I'm not sure whether a banner message or notification would serve better in this regard.
This may be easier than grepping logs for deprecated settings.
Screenshots
No response
The text was updated successfully, but these errors were encountered: