forgejo/tests
Gusted c63c00b39b
[MODERATION] Refactor excluding watchers mechanism (squash)
This solves two bugs. One bug is that due to the JOIN with the
`forgejo_blocked_users` table, duplicated users were generated if a user
had more than one user blocked, this lead to receiving more than one
entry in the actions table. The other bug is that if a user blocked more
than one user, it would still receive a action entry by a
blocked user, because the SQL query would not exclude the other
duplicated users that was generated by the JOIN.

The new solution is somewhat non-optimal in my eyes, but it's better
than rewriting the query to become a potential perfomance blocker (usage
of WHERE IN, which cannot be rewritten to a JOIN). It simply removes the
watchers after it was retrieved by the SQL query.
2024-01-22 20:00:13 +01:00
..
e2e Require MySQL 8.0, PostgreSQL 12, MSSQL 2012 (#27337) 2023-10-03 13:27:57 -04:00
fuzz Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
gitea-lfs-meta Test views of LFS files (#22196) 2022-12-23 07:41:56 +08:00
gitea-repositories-meta tests: missing refs/ in bare repositories (#28844) 2024-01-19 15:12:21 +08:00
integration [MODERATION] Refactor excluding watchers mechanism (squash) 2024-01-22 20:00:13 +01:00
testdata/data/attachments/a/0 Allow get release download files and lfs files with oauth2 token format (#26430) 2023-10-01 10:41:52 +00:00
mssql.ini.tmpl [CI] set PASSWORD_HASH_ALGO = argon2 for integration tests 2024-01-22 12:18:31 +00:00
mysql.ini.tmpl [CI] disable meilisearch/elasticsearch test, no server yet in CI 2024-01-22 12:18:31 +00:00
pgsql.ini.tmpl [CI] set PASSWORD_HASH_ALGO = argon2 for integration tests 2024-01-22 12:18:31 +00:00
sqlite.ini.tmpl [TESTS] increase test-sqlite log level to Trace 2024-01-22 13:41:20 +00:00
test_utils.go [TESTS] tests.AddFixtures helper loads additional per-test fixtures 2024-01-22 13:41:21 +00:00