-
-
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
Add DISABLE_ORGANIZATIONS_PAGE
and DISABLE_CODE_PAGE
settings for explore pages and fix an issue related to user search
#32288
Add DISABLE_ORGANIZATIONS_PAGE
and DISABLE_CODE_PAGE
settings for explore pages and fix an issue related to user search
#32288
Conversation
PR for docs: https://gitea.com/gitea/docs/pulls/82 |
Why not use database based config system but adding more app.ini items? |
I followed the implementation of |
I don't think it's a good idea to add those options to the databased config.
Those options are not related to user experience, like I believe that currently, most Gitea users are not familiar with databased config. Such important options are not suitable to be placed in databased config and operated through the UI. Users might accidentally modify the options on the UI and then panic when they find that the originally hidden explore for anonymous users has suddenly become public. In a rush, they may try to modify the configuration file only to find that it does not take effect (because it is overridden by databased config). Moreover, the importance of those options implies that restarting Gitea after modifying it is not something users cannot understand. I do not oppose moving more configurations into databased config in the future, but I believe a better approach is to do it gradually. After users become more familiar with databased config and it has more options, then more important options, even those related to permission control, can be moved in. |
The "database system config" is from Add system setting table with cache and also add cache supports for user setting #18058 , 2 years ago. Since then, no one really uses it. Then, why it was introduced before?
Otherwise, I do not see any reason to keep 2 config systems but only use file config. |
Actually, I do not mean "no" to file config either ..... I just found that it is a chance to "gradually use the database config" by these new options. If there are other concerns, feel free to use the old mechanism. Thank you. |
I also wonder what is the difference.... But maybe this is off topic. |
DISABLE_ORGANIZATIONS_PAGE
and DISABLE_CODE_PAGE
settings for explore pagesDISABLE_ORGANIZATIONS_PAGE
and DISABLE_CODE_PAGE
settings for explore pages and fix the incorrect usage of DISABLE_USERS_PAGE
DISABLE_ORGANIZATIONS_PAGE
and DISABLE_CODE_PAGE
settings for explore pages and fix the incorrect usage of DISABLE_USERS_PAGE
DISABLE_ORGANIZATIONS_PAGE
and DISABLE_CODE_PAGE
settings for explore pages and fix an issue related to user search
…returned users for `/user/search` (#32310) Partially backport #32288 --------- Co-authored-by: wxiaoguang <[email protected]>
* giteaofficial/main: Fix broken image when editing comment with non-image attachments (go-gitea#32319) Fix disable 2fa bug (go-gitea#32320) Upgrade rollup to 4.24.0 (go-gitea#32312) Upgrade vue to 3.5.12 (go-gitea#32311) Make admins adhere to branch protection rules (go-gitea#32248) Prevent from submitting issue/comment on uploading (go-gitea#32263) Add warn log when deleting inactive users (go-gitea#32318) Add `DISABLE_ORGANIZATIONS_PAGE` and `DISABLE_CODE_PAGE` settings for explore pages and fix an issue related to user search (go-gitea#32288) chore: fix some function names in comment (go-gitea#32300)
* origin/main: (21 commits) Fix toAbsoluteLocaleDate and add more tests (go-gitea#32387) Respect UI.ExploreDefaultSort setting again (go-gitea#32357) Fix absolute-date (go-gitea#32375) Fix undefined errors on Activity page (go-gitea#32378) Add new [lfs_client].BATCH_SIZE and [server].LFS_MAX_BATCH_SIZE config settings. (go-gitea#32307) remove unused call to $.HeadRepo in view_title template (go-gitea#32317) Fix clean tmp dir (go-gitea#32360) Optimize branch protection rule loading (go-gitea#32280) Suggestions for issues (go-gitea#32327) Migrate vue components to setup (go-gitea#32329) Fix db engine (go-gitea#32351) Refactor the DB migration system slightly (go-gitea#32344) Fix broken image when editing comment with non-image attachments (go-gitea#32319) Fix disable 2fa bug (go-gitea#32320) Upgrade rollup to 4.24.0 (go-gitea#32312) Upgrade vue to 3.5.12 (go-gitea#32311) Make admins adhere to branch protection rules (go-gitea#32248) Prevent from submitting issue/comment on uploading (go-gitea#32263) Add warn log when deleting inactive users (go-gitea#32318) Add `DISABLE_ORGANIZATIONS_PAGE` and `DISABLE_CODE_PAGE` settings for explore pages and fix an issue related to user search (go-gitea#32288) ...
These settings can allow users to only display the repositories explore page
This PR also fixes an issue related to user search: #32288 (comment)
Thanks to @yp05327 and @wxiaoguang !