-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
API: Move AllowedReactions endpoint into GetGenneralUI endpoint + creat new swagger section settings #11854
API: Move AllowedReactions endpoint into GetGenneralUI endpoint + creat new swagger section settings #11854
Conversation
@mrsdizzie ping WIP because if there are more usefull settings to expose in the UI scope: -> change GetAllowedReactions to a getGeneralUISettings ... |
@6543 that change is fine but I mean that you shouldn't have an endpoint for one single setting like /settings/allowed_reactions -- it should be /settings/ui that can return
That way you can eventually add other settings without having to create new endpoints for each one, just like how the check for mirrors uses /settings/repository. I only pick 'ui' because that is the section in config.ini just as repository is for the other example |
@mrsdizzie done |
Test fail changes seem good otherwise |
@mrsdizzie passed - fail seems unrelated |
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.
🚀
🚀 |
…at new swagger section settings (go-gitea#11854) * move Setting function into its own package * swagger add&use new section "settings" * move api AllowedReactions into general UI-Settings endpoint * prepare TEST * lint
as title
come up in #11758 (comment)