417e7c34bc
Fix submission list API performance: N+1 queries, missing indexes, and in-memory pagination
...
- Add select_related("user") in update_score() to eliminate N+1 on rating.user.role
- Return QuerySet directly from list_submissions so @paginate works at DB level
- Defer html/css/js fields in list queries to reduce data transfer
- Add db_index on flag field for filtered queries
- Add select_related("task", "user") to get_submission endpoint
- Replace manual list() serialization with resolve_* methods on SubmissionOut
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-09 18:26:32 +08:00
d4727b1538
Add flag API endpoint and filter logic
...
Adds PUT /{submission_id}/flag endpoint (admin/super only) and
flag filter support in list_submissions.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-09 17:23:17 +08:00
c7834530fe
Add flag to API schemas and submission filter
...
Adds flag field to SubmissionOut, SubmissionFilter, and new FlagIn schema.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-09 17:23:10 +08:00
aa344b92e5
Add flag field to Submission model with FlagChoices enum
...
Adds red/blue/green/yellow flag options for marking submissions.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-09 17:23:05 +08:00
9e8c3d7ebb
update
2026-03-09 09:55:43 +08:00
7d8966caea
fix
2026-03-09 09:53:03 +08:00
7990b886c8
fix
2026-03-09 09:47:40 +08:00
6998d694bb
add chat
2026-03-04 20:05:33 +08:00
fdbe06a077
update
2026-03-04 00:04:39 +08:00
04721a035b
update
2026-01-26 14:38:26 +08:00
8e91884d75
fix list submissions
2025-12-22 18:29:18 +08:00
d1b5b67725
update
2025-12-20 22:42:05 +08:00
f43b1c62f6
update
2025-09-04 18:13:12 +08:00
36c795e6ec
update
2025-09-04 17:31:08 +08:00
ebfe08a97c
update
2025-09-04 17:20:55 +08:00
bb41f05bbe
update
2025-07-16 01:15:15 +08:00
eb09245467
fix
2025-07-16 01:10:27 +08:00
108a125810
add ws
2025-07-16 01:02:12 +08:00
01e5c9097c
update
2025-07-15 17:20:20 +08:00
403d3db941
update
2025-07-15 17:16:48 +08:00
34b9822a3d
update
2025-06-15 23:11:52 +08:00
313e326316
fix
2025-06-15 23:07:48 +08:00
30becb56bc
update
2025-06-15 23:02:47 +08:00
ac3c7c4dec
fix
2025-06-15 22:58:00 +08:00
452b4039fe
test
2025-06-15 22:32:59 +08:00
3502ac0c42
test
2025-06-15 22:31:55 +08:00
2dc1c3b005
test
2025-06-15 22:28:48 +08:00
641d4a84b4
test
2025-06-15 22:23:03 +08:00
7edeea299e
test
2025-06-15 22:13:35 +08:00
e5e9115c50
test
2025-06-15 22:11:44 +08:00
93768b3a3b
fix
2025-06-15 22:01:08 +08:00
74f29cd1f3
update
2025-06-15 22:00:28 +08:00
f30dfac02b
添加上传图片
2025-06-15 21:52:26 +08:00
5aaf86b3ee
test
2025-06-15 20:01:29 +08:00
94720ee8e5
test
2025-06-15 19:58:58 +08:00
eb2b411a3a
update
2025-06-15 19:53:50 +08:00
8fa52bbd3a
test
2025-06-15 19:49:54 +08:00
f62a34b49e
升级依赖
2025-06-15 19:15:28 +08:00
654e4ce4a4
批量创建用户
2025-06-15 19:11:53 +08:00
yuetsh
a2026f95ed
update
2025-05-10 09:09:28 +08:00
c4ff051509
remove dbpool
2025-05-10 08:40:22 +08:00
8cdf1f8d2c
添加提交的序号
2025-04-28 09:34:34 +08:00
2aabfb1cca
update
2025-04-27 20:48:49 +08:00
3151bf50c2
fix
2025-04-27 19:06:51 +08:00
cdf83f4d07
update
2025-03-20 18:58:38 +08:00
b3f7112117
fix
2025-03-19 13:00:24 +08:00
c81b5b1a55
添加 rating
2025-03-19 09:15:14 +08:00
241aacbd3c
update
2025-03-18 20:29:56 +08:00
4e3d86c3c6
fix
2025-03-18 20:19:54 +08:00
d857da26f6
fix
2025-03-18 19:36:26 +08:00