1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00
gitea/routers/web/repo
Lunny Xiao d6dd6d641b
Fix all possible setting error related storages and added some tests (#23911)
Follow up #22405

Fix #20703 

This PR rewrites storage configuration read sequences with some breaks
and tests. It becomes more strict than before and also fixed some
inherit problems.

- Move storage's MinioConfig struct into setting, so after the
configuration loading, the values will be stored into the struct but not
still on some section.
- All storages configurations should be stored on one section,
configuration items cannot be overrided by multiple sections. The
prioioty of configuration is `[attachment]` > `[storage.attachments]` |
`[storage.customized]` > `[storage]` > `default`
- For extra override configuration items, currently are `SERVE_DIRECT`,
`MINIO_BASE_PATH`, `MINIO_BUCKET`, which could be configured in another
section. The prioioty of the override configuration is `[attachment]` >
`[storage.attachments]` > `default`.
- Add more tests for storages configurations.
- Update the storage documentations.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2023-06-14 11:42:38 +08:00
..
actions Support changing labels of Actions runner without re-registration (#24806) 2023-06-13 22:28:31 +08:00
setting Add user level action runners (#24995) 2023-05-31 09:39:54 +08:00
activity.go
attachment.go Fix all possible setting error related storages and added some tests (#23911) 2023-06-14 11:42:38 +08:00
blame.go
branch.go Use the type RefName for all the needed places and fix pull mirror sync bugs (#24634) 2023-05-26 01:04:48 +00:00
cherry_pick.go
commit.go
compare.go
download.go Fix all possible setting error related storages and added some tests (#23911) 2023-06-14 11:42:38 +08:00
editor_test.go
editor.go API endpoint for changing/creating/deleting multiple files (#24887) 2023-05-29 17:41:35 +08:00
find.go
helper_test.go
helper.go
http_test.go
http.go Redesign Scoped Access Tokens (#24767) 2023-06-04 20:57:16 +02:00
issue_content_history.go
issue_dependency.go
issue_label_test.go
issue_label.go
issue_lock.go
issue_pin.go Followup to pinned Issues (#24945) 2023-05-30 15:26:51 +00:00
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
issue.go Fix MilestoneIDs when querying issues (#25125) 2023-06-08 08:08:35 +00:00
lfs.go
main_test.go
middlewares.go
migrate.go Make repo migration cancelable and fix various bugs (#24605) 2023-05-11 08:25:46 +00:00
milestone.go
packages.go
patch.go
projects_test.go
projects.go Merge new project templates into one (#24985) 2023-05-31 08:50:18 +02:00
pull_review.go
pull.go Add IsErrRepoFilesAlreadyExist check when fork repo (#24678) 2023-05-22 18:21:46 +08:00
release_test.go fix: release page for empty or non-existing target (#24470) 2023-05-10 11:43:55 +08:00
release.go fix: release page for empty or non-existing target (#24470) 2023-05-10 11:43:55 +08:00
render.go
repo.go Fix all possible setting error related storages and added some tests (#23911) 2023-06-14 11:42:38 +08:00
search.go
setting_protected_branch.go Support for status check pattern (#24633) 2023-05-17 16:11:13 +08:00
setting.go Hide 'Mirror Settings' when unneeded, improve hints (#24433) 2023-05-29 11:32:52 +00:00
settings_test.go
tag.go
topic.go
treelist.go
view_test.go
view.go Fix profile render when the README.md size is larger than 1024 bytes (#25131) 2023-06-13 09:02:25 +00:00
webhook.go New webhook trigger for receiving Pull Request review requests (#24481) 2023-05-24 22:06:27 -04:00
wiki_test.go
wiki.go Decouple the different contexts from each other (#24786) 2023-05-21 09:50:53 +08:00