Repository navigation
Conversation
…k title index notes Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… Regional Transcribes the maintainer's spreadsheet for 66 contests and derives each letter from its spreadsheet position, skipping problems absent from AOJ. All 625 titles match; 8 contests / 45 rows differ from the basic rule. Injected errors (absent letter dropped, order swap, wrong title, short absent list, wrong truncated prefix) are all reported. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… Regional Extend the PR1 problem letters to the JAG training camps (Summer / Winter / Spring, 50 contests / 467 tasks) and JAG Regional (16 contests / 158 tasks): - Seed: add JAG Regional from production, set letters for all 625 tasks, and drop the legacy "<problem id>. " prefix from the training camp titles. - Migration: apply the basic rule, overwrite the 8 contests whose letters shift because problems are missing from AOJ (45 rows, from the maintainer's problem list), and strip the title prefixes. Each step checks its row count (0 / camps only / camps + Regional) and raises otherwise, which rolls back the whole migration. - Import: assign letters for every JAG round, not only Prelim. Verified on the local DB: a SELECT preview matched the cross-check script for all 625 rows; after applying, 625/625 rows match the preview and other AOJ types are untouched. Mutants (JAG letters only for Prelim, only for ICPC, a corrected letter reverted, A/B swapped, title prefix restored, Regional letter left as id) are each caught. Refs #4030 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Address the Codex cross-review: - Migration step (1) ranked only rows still holding the problem id, so a contest mixing letter rows and id rows would restart at A. Rank every row of the contest and restrict only the UPDATE to id rows. A read-only simulation (2967 already "A") now yields B, C, D for 2968-2970 instead of A, B, C. The local DB was restored to its pre-migration snapshot, and the fixed migration re-applied: 625/625 rows match the preview. - The seed test only checked that no title starts with "<problem id>. ", so an emptied or swapped title passed. Check that every AOJ ICPC / JAG title equals the problem name instead; both cases now fail. Refs #4030 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It produced the letters written into prisma/tasks.ts and the migration's overrides. Recover it with `git show c605d3b:docs/dev-notes/2026-09-09/task-title-index-change-impact/generate_aoj_jag_problem_letters.ts` if the letters need to be checked again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
問題記号の割り当てと検証 src/lib/clients/aizu_online_judge/clients.ts, src/lib/clients/aizu_online_judge/clients.test.ts, src/lib/clients/aizu_online_judge/seed_problem_letters.test.ts, .agents/skills/add-tasks/instructions.md |
問題記号の対象を AOJ ICPC・JAG の全コンテストに拡張しました。指定コンテストの補正値、問題タイトルと名前の一致をテストで確認します。タスク追加手順も更新しました。 |
既存データの移行 prisma/migrations/20261025000719_update_aoj_jag_task_table_index/migration.sql, docs/dev-notes/2026-09-09/task-title-index-change-impact/* |
JAG の既存タスクに記号を設定し、指定タスクの記号を補正します。更新件数が想定外の場合は例外を発生させます。対象タイトルから問題 ID の接頭辞を除去します。関連する計画、検証記録、環境別の調査結果を更新しました。 |
Priority:
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Feature
Merge Risk: 
Minimal · up to 7c68c
-
The problem-letter and title changes appear ready to merge after normal checks; the inspected seed and migration values agree.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passed-
Full details: Linked Issues check
-
Explanation
#4030の要求は、AOJ JAG、模擬地区、合宿のproblem_indexを A, B, C... 形式にすることです。migration.sqlはAOJ_JAGの Regional、Summer、Winter、Spring を対象にし、コンテスト内のtask_id順で全行を順位付けします。AOJ から欠落した問題には公式の文字を上書きします。clients.tsは全 JAG round で文字割り当てを有効にします。seed_problem_letters.test.tsは 145 コンテスト、1,257 タスクの文字割り当てと title の一致を検証します。要求を満たす実装と自動テストを確認できます。
-
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 3 files. (7 skipped: 7 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches: 💡 1
-
📝 Generate docstrings: 💡
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
close #4030
Summary by CodeRabbit