fix: AtCoder Daily Training をクロール・分類して表示する#1535
Merged
Merged
Conversation
AtCoder Daily Training (アーカイブ category=60, コンテストID `adt_*`) は Weekday Contest と同様にフィルタなしのアーカイブ一覧から除外されているため、 クローラが取得できず一覧に表示されていなかった。 - backend: カテゴリ別アーカイブ巡回を Weekday Contest 専用ループから カテゴリ配列ベースに変更し、Daily Training (category=60) も巡回する - frontend: `adt_` を "Daily Training" カテゴリに分類し、独立タブで表示する Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
レビュー指摘 (Nit): ステップ3のコメントが Weekday Contest 専用のままだったため、 Daily Training を含むカテゴリ別アーカイブ巡回に合わせて修正。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
表示はDaily TrainingよりもADTの方がいいと思われます |
PR レビューコメント対応: 表示名は "Daily Training" よりも "ADT" の方が 適切との指摘を受け、フロントエンドのカテゴリ名を ADT に変更。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Owner
Author
|
ご指摘ありがとうございます。表示名を |
|
テーブル形式にした方がいいと思われます |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
問題
Issue #1533: 「AtCoder Daily Training が表示されない」
原因
AtCoder は AtCoder Daily Training(アーカイブ
category=60、コンテストIDadt_*)を、Weekday Contest と同様にフィルタなしのアーカイブ一覧 (/contests/archive) から除外している。クローラはフィルタなしアーカイブと Weekday Contest (category=20) しか巡回していなかったため、Daily Training のコンテストが DB に保存されず、一覧に一切表示されなかった。修正
crawler_utils.rs): カテゴリ別アーカイブ巡回を Weekday Contest 専用ループから「カテゴリ配列を回すループ」にリファクタし、Daily Training (category=60) も巡回対象に追加。既存テストを両カテゴリ (20/60) を検証するよう更新。ContestClassifier.ts):adt_で始まるコンテストを新カテゴリ"Daily Training"に分類し、独立したタブで表示(Issue コメントの「別タブにした方がいい」に対応)。分類テストを追加。AWC(Weekday Contest)の対応と同型のアプローチ。
確認
cargo test --test test_crawler_utils test_crawl_contests_fetches_filtered_archive_categories✅cargo clippy/cargo fmt --check✅ContestClassifier.test.ts✅ /eslint/prettier --check✅60) とコンテストID命名 (adt_all_*,adt_easy_*) を確認済みCloses #1533
🤖 Generated with Claude Code