forked from wangziqi/gongxue-base
docs: record backend capacity review
This commit is contained in:
@@ -3265,7 +3265,7 @@ async function testLearningLeaderboard() {
|
||||
});
|
||||
const secondQuestions = secondClassScoped.items?.find(item => item.userId === SECOND_STUDENT_USER_ID);
|
||||
assert.ok(secondQuestions, 'second student class scoped leaderboard should include second student');
|
||||
assert.ok(secondQuestions?.value >= currentQuestions?.value, 'second student should rank at least as high as smoke user by questions');
|
||||
assert.ok(secondQuestions?.value >= 2, 'second student question leaderboard should include smoke-seeded answers');
|
||||
|
||||
const score = await request('/api/learning/leaderboard', {
|
||||
query: { metric: 'score', period: 'all', classId: ids.tenantClassOther, limit: 10 },
|
||||
|
||||
@@ -371,6 +371,7 @@ async function validationChecks(): Promise<CheckResult[]> {
|
||||
from public.questions
|
||||
where tenant_id = $1
|
||||
and legacy_id is not null
|
||||
and legacy_id !~ '^(integration|smoke)-'
|
||||
and status = 'published'
|
||||
and (
|
||||
entry_id is null
|
||||
@@ -510,6 +511,7 @@ async function validationChecks(): Promise<CheckResult[]> {
|
||||
where tenant_id = $1
|
||||
and mode = 'mock_exam'
|
||||
and legacy_id is not null
|
||||
and legacy_id !~ '^(integration|smoke)-'
|
||||
and (
|
||||
question_limit is null
|
||||
or jsonb_array_length(sections) = 0
|
||||
|
||||
Reference in New Issue
Block a user