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

オープン 初心者向け
#471 コメント 0 件 リアクション 0 件 担当者 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
フォーク
3
平均マージ
8日 5時間
マージ済み PR(30日)
6

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

BCStudentSoftwareDevTeam/cas のほかの issue

BCStudentSoftwareDevTeam/cas の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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