dertinfo / dertinfo/dertinfo-api

[BUG] Reset all Dances doesn't work if there have been score parts entered

Open
#52 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

When we are about to run the competition users are guided to perform some live testing on the system by entering scores and uploading score sheets.

As an admin when your checking the scores there is a widget that can help with that by taking the individual judge scores and entering them. In the system we call these DanceScoreParts.

When the event admin comes to reset all the dances after the testing period if there are any DanceScoreParts then the wipe doesn't work due to a referential integrity constraint to the dances.

This first happened in 2026 as during testing users would not typically use that part of the system so we've never tried to wipe before where this data was present.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
Wipe should succeed even if there are dance score parts and should also delete those appropriately

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. Windows, macOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.