Fix duplicate and incomplete results in All Subjects Mode OFF
Maintainer thường phản hồi trong vòng 1 ngày
Đá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ả
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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CodeChefVIT/ffcs
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
CodeChefVIT/ffcs#295 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 48/100
CodeChefVIT/ffcs#292 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Edit a course from Your Courses with a pencil buttonCó thể làm lại được @Aiden-Trindade đã nhận 30 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 43/100
CodeChefVIT/ffcs#291 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Put the selection box and Your Courses side by side and restyle themCó thể đã có người làm @Aiden-Trindade đã nhận 30 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
CodeChefVIT/ffcs#290 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 43/100
CodeChefVIT/ffcs#289 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của CodeChefVIT/ffcs
Issue tương tự
-
enhancement UX
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
online-go/online-go.com#4000 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
SnosMe/awakened-poe-trade#1976 ·
-
[BUG]Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
jonp-h/TillerQuest#319 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
terrazzoapp/terrazzo#902 ·