You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/tests
Lunny Xiao fbe6d9dc6b
Use batch database operations instead of one by one to optimze api pulls (#32680)
Resolve #31492

The response time for the Pull Requests API has improved significantly,
dropping from over `2000ms` to about `350ms` on my local machine. It's
about `6` times faster.

A key area for further optimization lies in batch-fetching data for
`apiPullRequest.ChangedFiles, apiPullRequest.Additions, and
apiPullRequest.Deletions`.

Tests `TestAPIViewPulls` does exist and new tests added.

- This PR also fixes some bugs in `GetDiff` functions.
- This PR also fixes data inconsistent in test data. For a pull request,
the head branch's reference should be equal to the reference in
`pull/xxx/head`.
4 months ago
..
e2e disable gravatar in test (#32529) 4 months ago
fuzz Refactor markup render system (#32645) 4 months ago
gitea-lfs-meta Test views of LFS files (#22196) 2 years ago
gitea-repositories-meta Use batch database operations instead of one by one to optimze api pulls (#32680) 4 months ago
integration Use batch database operations instead of one by one to optimze api pulls (#32680) 4 months ago
testdata/data Add artifacts test fixture (#30300) 5 months ago
mssql.ini.tmpl Azure blob storage support (#30995) 10 months ago
mysql.ini.tmpl Disable query token param in integration tests (#28592) 1 year ago
pgsql.ini.tmpl add {{TEST_MINIO_ENDPOINT}} for local testing "with/without" docker + fix pgsql testing doc (#32105) 6 months ago
sqlite.ini.tmpl Disable query token param in integration tests (#28592) 1 year ago
test_utils.go Improve testing and try to fix MySQL hanging (#32515) 4 months ago