Fix duplicate and incomplete results in All Subjects Mode OFF

Đang mở
#258 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Rithish-2914 đang làm issue này rồi.

Từ ngày 29/10/2026.

  • #330 của @Rithish-2914 — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
7
Fork
39
Merge trung bình
4 giờ 24 phút
Pull request đã merge (30 ngày)
53

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của CodeChefVIT/ffcs

Tất cả issue của CodeChefVIT/ffcs

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.