forgejo-federation/tests
Matthew Walowski 1dd83dbb91
Filters for GetAllCommits (#24568)
The `GetAllCommits` endpoint can be pretty slow, especially in repos
with a lot of commits. The issue is that it spends a lot of time
calculating information that may not be useful/needed by the user.

The `stat` param was previously added in #21337 to address this, by
allowing the user to disable the calculating stats for each commit. But
this has two issues:
1. The name `stat` is rather misleading, because disabling `stat`
disables the Stat **and** Files. This should be separated out into two
different params, because getting a list of affected files is much less
expensive than calculating the stats
2. There's still other costly information provided that the user may not
need, such as `Verification`

This PR, adds two parameters to the endpoint, `files` and `verification`
to allow the user to explicitly disable this information when listing
commits. The default behavior is true.
2023-05-09 09:06:05 +08:00
..
e2e Rewrite queue (#24505) 2023-05-08 19:49:59 +08:00
fuzz Move fuzz tests into tests/fuzz (#22376) 2023-01-09 15:30:14 +08:00
gitea-lfs-meta Test views of LFS files (#22196) 2022-12-23 07:41:56 +08:00
gitea-repositories-meta Remove git sample files and ignore them (#24271) 2023-04-22 20:29:29 +08:00
integration Filters for GetAllCommits (#24568) 2023-05-09 09:06:05 +08:00
mssql.ini.tmpl Rewrite queue (#24505) 2023-05-08 19:49:59 +08:00
mysql.ini.tmpl Rewrite queue (#24505) 2023-05-08 19:49:59 +08:00
mysql8.ini.tmpl Rewrite queue (#24505) 2023-05-08 19:49:59 +08:00
pgsql.ini.tmpl Rewrite queue (#24505) 2023-05-08 19:49:59 +08:00
sqlite.ini.tmpl Rewrite queue (#24505) 2023-05-08 19:49:59 +08:00
test_utils.go Rewrite queue (#24505) 2023-05-08 19:49:59 +08:00