-
-
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
do not use deprecatedSettingFatal for cosmetic reasons #26007
Conversation
I think this is the original code in recent 4 or 5 versions. We have enough time to prompt administrator about the deprecated configurations. If it doesn't break the instance, users will never check the message and never remove the deprecated configurations. |
Quote #23911 (comment)
I am neutral for this change. Either can be done:
|
ded421b
to
a5beae0
Compare
a5beae0
to
2f3f2f3
Compare
It breaks existing instances that would otherwise work perfectly fine. Failing to start an instance should only happen when there is a compelling reason to do so, for instance if the `app.ini` could not be modified in a way that is backward compatible. If the only motivation is to remove the setting for cosmetic reason, it must not be fatal. Refs: https://codeberg.org/forgejo/forgejo/issues/1081
2f3f2f3
to
67f9219
Compare
Well… I am somewhat against removing this warning. I've started a survey among maintainers how we should handle config changes in the future. |
Maybe we can have another idea to prompt admin like have a top bar or others but not a fatal log. Or #25994 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocking per the ongoing maintainer discussion
@techknowlogick is there still disagreement about reverting it? For 1.20.1 , quote: #26015 (comment)
|
@wxiaoguang Im wasn't sure what the conclusion of the chat was, so I figured waiting a moment before consensus was reached was ok. |
yup, this "breaking" has been present for 1-2 years. It was fatal on windows when the [lfs] section was preferred but since it was mentioned in the release notes I didn't bother reporting it. Carrying dead code is just technical debt and as long as it is clearly states what needs to be corrected there shouldn't be any problem as it is the duty of a site admin to review the changes and update accordingly. Likewise it is the duty of the gitea maintainers to ensure the release notes state this #18358 This was 1st added (and broke on windows) in 1.17.0 July 31, 2022. 1 year ago, 3 releases ago |
Again: @techknowlogick is there still disagreement about reverting it? What's the final conclusion? |
@wxiaoguang I've had limited internet over the past days, but I think there is some decision by the maintainers that'll be acted upon. |
… file (#26094) 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"> --------- Co-authored-by: wxiaoguang <[email protected]>
… 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">
It breaks existing instances that would otherwise work perfectly fine. Failing to start an instance should only happen when there is a compelling reason to do so, for instance if the
app.ini
could not be modified in a way that is backward compatible. If the only motivation is to remove the setting for cosmetic reason, it must not be fatal.