Adding a cross-listing through Edit Course creates a duplicate course row

未关闭 适合新手
#471 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 7 天内回复

@mathew2005 已经在做这个了。

开始于 2026年11月13日。

  • #475 来自 @mathew2005 —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
66/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
javascript
领域
backend

调研方向

先从 Edit Course 的保存流程入手,该流程会创建一个交叉列出的课程行,然后将其与 #445 中为创建表单和导入功能添加的重复项检查进行比较。使用一门已在该学期中的课程和一门属于同一项目的课程,重现 issue 中的步骤。完成标准是编辑时避免产生重复行,并拒绝同一项目内的交叉列出。

由索引模型根据 Issue 内容生成。

描述

Issue

When you edit a course and add a cross-listing, a new child row is created for the other course no matter what. If that course is already in the term, you end up with two rows for it, both with no section, which is the same kind of duplicate #426 was about. #445 added a duplicate check for the create form and for import, but this path still has none.

It also lets you cross-list a course with one in the same program, which doesn't make sense.

Steps to reproduce

  1. Courses -> Term
  2. Edit parent course, add existing course in the table as a cross-listed course, save.
  3. The page now has two same course rows.

Found while testing #437. Related: #426, #445.

主要语言
JavaScript
星标
0
派生
4
平均合并
8 天 5 小时
30 天内合并 PR
6

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

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

从这里开始

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

BCStudentSoftwareDevTeam/cas 的其他 Issue

查看 BCStudentSoftwareDevTeam/cas 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

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