Fix duplicate and incomplete results in All Subjects Mode OFF

未关闭
#258 0 条评论 0 个 reaction 已指派 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 分钟
30 天内合并 PR
53

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CodeChefVIT/ffcs 的其他 Issue

查看 CodeChefVIT/ffcs 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。