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

Open Beginner friendly
#471 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 7 days

@mathew2005 is already working on this.

Since Nov 13, 2026.

  • #475 by @mathew2005 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
66/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript
Domain
backend

Research direction

Start with the Edit Course save path that creates a cross-listed course row, then compare it with the duplicate checks added for the create form and import in #445. Reproduce the steps in the issue with a course already in the term and one in the same program. Done means editing avoids a duplicate row and rejects a cross-list within the same program.

Written by the indexing model from the issue text.

Description

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.

Dominant language
JavaScript
Stars
0
Forks
3
Avg merge
8d 5h
Merged PRs (30d)
6

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from BCStudentSoftwareDevTeam/cas

All issues in BCStudentSoftwareDevTeam/cas

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.