From 38305da2202ec5b8921aaae270820805a138eceb Mon Sep 17 00:00:00 2001 From: Prekzursil Date: Wed, 18 Nov 2026 16:06:52 +0200 Subject: [PATCH 1/3] style: biome-format src/services/ApiService.ts (quality gate red on main) The recognition-feature merge (8a74ea80) landed the file unformatted; quality's biome format --check fails on main (run 44283118925). owner-directed automation; --admin documented --- src/services/ApiService.ts | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/services/ApiService.ts b/src/services/ApiService.ts index f420b9d1..2f515f0b 100644 --- a/src/services/ApiService.ts +++ b/src/services/ApiService.ts @@ -756,9 +756,7 @@ export const CommunityService = { // ---- Wave F items 66-69: reputation, awards, AMAs, requests ---- getMyReputation: () => apiFetch('/community/reputation/me/'), getReputationTiers: () => - apiFetch<{ tiers: { name: string; min_honor: number }[] }>( - '/community/reputation/tiers/', - ), + apiFetch<{ tiers: { name: string; min_honor: number }[] }>('/community/reputation/tiers/'), getAwards: (username?: string) => { const qs = username ? `?username=${encodeURIComponent(username)}` : ''; return apiFetch>(`/community/awards/${qs}`); @@ -771,10 +769,10 @@ export const CommunityService = { body: JSON.stringify({ question }), }), answerAmaQuestion: (questionId: number, answer: string) => - apiFetch<{ id: number; answer: string }>( - `/community/amas/questions/${questionId}/answer/`, - { method: 'POST', body: JSON.stringify({ answer }) }, - ), + apiFetch<{ id: number; answer: string }>(`/community/amas/questions/${questionId}/answer/`, { + method: 'POST', + body: JSON.stringify({ answer }), + }), upvoteAmaQuestion: (questionId: number) => apiFetch<{ upvotes: number; voted: boolean }>( `/community/amas/questions/${questionId}/upvote/`, @@ -788,10 +786,9 @@ export const CommunityService = { body: JSON.stringify(data), }), voteProblemRequest: (requestId: number) => - apiFetch<{ votes: number; voted: boolean }>( - `/community/problem-requests/${requestId}/vote/`, - { method: 'POST' }, - ), + apiFetch<{ votes: number; voted: boolean }>(`/community/problem-requests/${requestId}/vote/`, { + method: 'POST', + }), createWaHelpRequest: (submissionId: number, question: string) => apiFetch('/community/wa-help/', { From 118caff7101524482b2e7207e54b4854e73858de Mon Sep 17 00:00:00 2001 From: Prekzursil Date: Wed, 18 Nov 2026 16:13:50 +0200 Subject: [PATCH 2/3] fix(test): effort-board fixture window vs pinned clock times Django CI + Verify failed on main (runs 44283118447/44283118565): the grinder test pins submissions to 10:00 two-days-ago (up to ~72h old) while the assignment window starts exactly now-2d, so the pinned submissions fall outside the window depending on the hour the suite runs (CI 10:12 -> active_days 3; locally 14:05 -> attempts 1). Window start widened to now-3d; the 30-day out-of-window test is unaffected. owner-directed automation; --admin documented --- backend/classroom/test_wave_e_reports.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/backend/classroom/test_wave_e_reports.py b/backend/classroom/test_wave_e_reports.py index fdece21a..ca59ef97 100644 --- a/backend/classroom/test_wave_e_reports.py +++ b/backend/classroom/test_wave_e_reports.py @@ -44,7 +44,14 @@ def setUp(self): self.assignment = Assignment.objects.create( classroom=self.classroom, title_i18n={"en": "HW1", "ro": "T1"}, - available_from=timezone.now() - timedelta(days=2), + # 3 days, not 2: the grinder test pins submissions to fixed + # clock times up to ~72h old (10:00 two days ago), so a 2-day + # window set 'now-to-the-second' excludes them depending on the + # run time of day (CI 10:12 -> active_days 3; local 14:05 -> + # attempts 1). Widening the window start keeps every fixture + # submission inside at any hour; the out-of-window test still + # pins 30 days, far outside either way. + available_from=timezone.now() - timedelta(days=3), due_at=timezone.now() + timedelta(days=2), ) self.ap = AssignmentProblem.objects.create( From ff0ad5e35060dd0b432aa21ee414ec0854229d2e Mon Sep 17 00:00:00 2001 From: Prekzursil Date: Wed, 18 Nov 2026 16:37:26 +0200 Subject: [PATCH 3/3] style: ruff-format _patch_api5.py (roadmap follow-up) owner-directed automation; --admin documented --- _patch_api5.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/_patch_api5.py b/_patch_api5.py index 4569b15e..028a0fee 100644 --- a/_patch_api5.py +++ b/_patch_api5.py @@ -1,15 +1,15 @@ import pathlib -p = pathlib.Path('src/services/ApiService.ts') -s = p.read_text(encoding='utf-8') +p = pathlib.Path("src/services/ApiService.ts") +s = p.read_text(encoding="utf-8") anchor = " getWaHelpQueue: () =>" if anchor not in s: # PR5 worktree predates PR4 — anchor on the weekly board instead anchor = " getWeeklyBoard: () =>" idx = s.index(anchor) -end = s.index('\n },', idx) -addition = ''' +end = s.index("\n },", idx) +addition = """ // ---- Wave F items 66-69: reputation, awards, AMAs, requests ---- getMyReputation: () => apiFetch('/community/reputation/me/'), @@ -59,14 +59,14 @@ apiFetch<{ votes: number; voted: boolean }>( `/community/problem-requests/${requestId}/vote/`, { method: 'POST' }, - ),''' + ),""" s = s[:end] + addition + s[end:] # imports old = " WaHelpRow,\n WikiListRow," if old in s: new = " AmaDetailRow,\n AmaListRow,\n AwardRow,\n ProblemRequestRow,\n ReputationProfile,\n WaHelpRow,\n WikiListRow," - # placeholder — replaced below +# placeholder — replaced below else: new = None @@ -76,5 +76,5 @@ new = " AmaDetailRow,\n AmaListRow,\n AwardRow,\n CalibrationProfile,\n ProblemRequestRow,\n ReputationProfile,\n TeamStandingsResponse," assert old in s, f"import anchor missing: {old!r}" s = s.replace(old, new, 1) -p.write_text(s, encoding='utf-8', newline='\n') -print('api ok') +p.write_text(s, encoding="utf-8", newline="\n") +print("api ok")