mirror of
1
Fork 0
forgejo/modules/setting
wxiaoguang d15f20b2d2
Add ONLY_SHOW_RELEVANT_REPOS back, fix explore page bug, make code more strict () ()
Follow 

After I eat my own dogfood, I would say that
ONLY_SHOW_RELEVANT_REPOS=false is necessary for many private/enterprise
instances, because many private repositories do not have
"description/topic", users just want to search by their names.

This PR also adds `PageIsExploreRepositories` check, to make code more
strict, because the `search` template is shared for different purpose.

And during the test, I found a bug that the "Search" button didn't
respect the "relevant" parameter, so this PR fixes the bug by the way
together.
2023-03-30 09:09:22 -05:00
..
actions.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
admin.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
api.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
attachment.go Add `.patch` to `attachment.ALLOWED_TYPES` () () 2023-03-19 16:48:44 -04:00
cache.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
camo.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
config_provider.go handle deprecated settings () 2023-02-20 16:18:26 -06:00
cors.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
cron.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
cron_test.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
database.go Refactor `setting.Database.UseXXX` to methods () () 2023-03-07 20:11:44 +08:00
database_sqlite.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
database_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
federation.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
git.go Support reflogs () () 2023-03-13 12:20:10 +00:00
highlight.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
i18n.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
incoming_email.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
indexer.go handle deprecated settings () 2023-02-20 16:18:26 -06:00
indexer_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
lfs.go handle deprecated settings () 2023-02-20 16:18:26 -06:00
log.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
mailer.go handle deprecated settings () 2023-02-20 16:18:26 -06:00
mailer_test.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
markup.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
metrics.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
migrations.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
mime_type_map.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
mirror.go handle deprecated settings () 2023-02-20 16:18:26 -06:00
oauth2.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
other.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
packages.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
packages_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
picture.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
project.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
proxy.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
queue.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
repository.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
security.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
server.go handle deprecated settings () 2023-02-20 16:18:26 -06:00
service.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
session.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
setting.go Make CI use a dummy password hasher for all tests () 2023-02-20 13:20:30 +08:00
setting_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
ssh.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
storage.go Make minio package support legacy MD5 checksum () () 2023-03-29 00:02:13 +08:00
storage_test.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
task.go handle deprecated settings () 2023-02-20 16:18:26 -06:00
time.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
ui.go Add ONLY_SHOW_RELEVANT_REPOS back, fix explore page bug, make code more strict () () 2023-03-30 09:09:22 -05:00
webhook.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00