-
-
Notifications
You must be signed in to change notification settings - Fork 10
breaking: Remove ABC latest 20 rounds from contest table (#3000) #3012
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughRemoves the deprecated Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
Pre-merge checks✅ Passed checks (5 passed)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro Cache: Disabled due to data retention organization setting Knowledge base: Disabled due to data retention organization setting 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/test/lib/utils/contest_table_provider.test.ts (1)
2473-2478: Fix incorrect provider instantiation: ABSProvider should use ContestType.ABS, not ContestType.ABC.Line 2473 instantiates
ABSProviderwithContestType.ABC, which is incorrect. All other instances ofABSProvideruseContestType.ABS(including production code). The variable is namedabcProvider, suggesting the intent is to test ABC contest handling, butABSProvideris designed for ABS contests. Either change this toContestType.ABS(and rename the variable toabsProvider) or use an ABC-specific provider class likeABC319OnwardsProviderwithContestType.ABC.
🧹 Nitpick comments (1)
src/test/lib/utils/contest_table_provider.test.ts (1)
646-646: Minor formatting note.The comment spacing is slightly inconsistent with other similar comments in the file (e.g., "ABC042 to ABC125" at line 488 has no space before "to"). This is a very minor nit.
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge base: Disabled due to data retention organization setting
📒 Files selected for processing (5)
docs/dev-notes/2025-12-31/remove-abc-latest-20-rounds/plan.mdsrc/lib/stores/active_contest_type.svelte.tssrc/lib/utils/contest_table_provider.tssrc/test/lib/stores/active_contest_type.svelte.test.tssrc/test/lib/utils/contest_table_provider.test.ts
💤 Files with no reviewable changes (1)
- src/lib/utils/contest_table_provider.ts
🧰 Additional context used
🧬 Code graph analysis (3)
src/test/lib/stores/active_contest_type.svelte.test.ts (2)
src/lib/utils/contest_table_provider.ts (1)
ContestTableProviderGroups(1218-1218)src/lib/stores/active_contest_type.svelte.ts (2)
ActiveContestTypeStore(18-81)activeContestTypeStore(94-94)
src/lib/stores/active_contest_type.svelte.ts (1)
src/lib/utils/contest_table_provider.ts (1)
ContestTableProviderGroups(1218-1218)
src/test/lib/utils/contest_table_provider.test.ts (3)
src/lib/utils/contest_table_provider.ts (6)
ABSProvider(138-165)ContestTableProviderGroup(929-1027)TessokuBookForExamplesProvider(546-566)TessokuBookForPracticalsProvider(568-588)TessokuBookForChallengesProvider(590-610)prepareContestProviderPresets(1033-1196)src/test/lib/utils/test_cases/contest_table_provider.ts (1)
taskResultsForABS(437-449)src/lib/types/contest_table_provider.ts (1)
TESSOKU_SECTIONS(81-85)
🪛 markdownlint-cli2 (0.18.1)
docs/dev-notes/2025-12-31/remove-abc-latest-20-rounds/plan.md
7-7: Spaces inside emphasis markers
(MD037, no-space-in-emphasis)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: preview
🔇 Additional comments (15)
src/test/lib/stores/active_contest_type.svelte.test.ts (6)
43-45: LGTM!Test expectation correctly updated to match the new default value
'abs'in the store.
47-53: LGTM!Initial value check updated consistently with the store's new default.
63-77: LGTM!
isSame()test assertions correctly updated to use'abs'as the default comparison value while maintaining proper coverage for other contest types.
79-94: LGTM!Reset behavior tests correctly verify that the store resets to
'abs'as the new default.
96-122: LGTM!Edge case tests for invalid localStorage keys, null values, and multiple contest type changes are correctly updated to expect
'abs'as the default/fallback value.
137-139: LGTM!SSR test correctly expects
'abs'as the default value, consistent with the store singleton behavior.src/lib/stores/active_contest_type.svelte.ts (2)
16-31: LGTM!The default contest type is consistently updated to
'abs'across the JSDoc comments, storage initialization, and constructor default parameter. The implementation correctly handles validation and fallback to the new default.Note: Users who previously had
'abcLatest20Rounds'stored in localStorage will have their value reset to'abs'on next load sinceisValidContestType()validates againstcontestTableProviderGroupswhich no longer includes the removed key. Please verify this is the intended migration behavior.
74-80: LGTM!The
reset()method is correctly updated to use'abs'as the reset value, consistent with the new default throughout the store.src/test/lib/utils/contest_table_provider.test.ts (6)
2372-2390: LGTM!Common provider functionality tests correctly updated to use
ABSProviderandtaskResultsForABS. The expected header IDs match the ABS problem set (A-K for 11 problems).
2409-2420: LGTM!Group creation test correctly updated to use
ABSProviderwith appropriate metadata labels.
2459-2466: LGTM!Method chaining test correctly uses
ABSProviderto verify the fluent API pattern.
2534-2557: LGTM!Provider key functionality tests correctly updated to use
ABSProviderfor backward compatibility verification with simple provider keys.
2580-2590: LGTM!Preset creation test correctly verifies the
ABS()preset returns a properly configuredContestTableProviderGroupwithABSProvider.
2665-2680: LGTM!Preset verification and instance independence tests correctly use the
ABSpreset function and verify that multiple calls create independent instances.docs/dev-notes/2025-12-31/remove-abc-latest-20-rounds/plan.md (1)
1-106: Comprehensive removal plan documentation.The plan document is well-structured and provides:
- Clear rationale for the removal (redundancy with ABC 319+, low usage ~25%, ABS as alternative)
- Specific file and line references for all changes
- Impact assessment and verification steps
- Lessons learned for future removals
This documentation will be valuable for understanding the change history.
KATO-Hiro
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
close #3000
Summary by CodeRabbit
Bug Fixes / Changes
Tests
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.