Fix duplicate and incomplete results in All Subjects Mode OFF

オープン
#258 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Rithish-2914 がすでに取り組んでいます。

2026年10月29日 から。

  • #330 @Rithish-2914 による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
backend

調査の方向性

Start in src/lib/utils.ts and read generateTT()'s All Subjects Mode OFF branch, tracing how conflicting faculty options add partial combinations and how results represent skipped courses. Check the existing tests for timetable generation, then add cases for multiple conflicting faculty options and no valid full timetable. Done means each skip is considered once, duplicate partial combinations are removed, and skipped courses are clear in the result.

索引モデルが issue の本文から書いたものです。

説明

bug

The timetable generator currently adds the same partial combination each time a course option clashes when All Subjects Mode is OFF.

This happens in generateTT(): for a conflicting option, we push [...partial] into the next set of combinations. If several faculty options clash, the same partial timetable gets added multiple times. It's also not clear which courses were skipped.

What needs to be done

  • Treat skipping a course as one explicit choice, not one choice per conflicting faculty.
  • Deduplicate partial combinations and avoid duplicates introduced by the skip path.
  • Keep track of which courses couldn't be included so the result isn't misleading.
  • Add cases with multiple conflicting faculty options and with no valid full timetable.

File: src/lib/utils.ts.

This is about correcting OFF-mode behavior; the broader generator performance work can be handled separately.

主要言語
TypeScript
スター
7
フォーク
39
平均マージ
4時間 24分
マージ済み PR(30日)
53

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CodeChefVIT/ffcs のほかの issue

CodeChefVIT/ffcs の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。