FIRST-Tech-Challenge / FIRST-Tech-Challenge/scorekeeper

MC Selection fails without teams or matches

Open
#639 1 comment 0 reactions 0 assignees View on GitHub
bug Local
Dominant language
No language data
Stars
110
Forks
26
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
The MC Alliance Selection script will fail with a printed error if Alliance Selection is attempted to be started before teams are added to the event or any matches are played.

**To Reproduce**
Steps to reproduce the behavior:
1. Create a new event
2. Before adding any teams or matches, start Alliance Selection
3. Attempt to load the MC Alliance Selection script.
4. View the following error (or a similar error when starting with teams, but no matches):
```
TypeError: Cannot read properties of null (reading 'number')
```
**Expected behavior**
Either the attempt to start Alliance Selection or the MC script should fail with a more graceful error message.

**Device (please complete the following information):**
- macOS Venture
- Chrome 117 and Safari 16.6

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure by creating an event with no teams or matches, then starting Alliance Selection and loading the MC Alliance Selection script. Trace the null-value error from the MC script or Alliance Selection startup flow. Done means both empty-event cases fail gracefully with a clear error rather than a TypeError.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.