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

Match control page shows wrong scores during match replay

Open
#803 0 comments 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**
During yesterday's qualifier, we had to rerun match Q-29. During that match, we saw the scores on the audience displays were very different than the ones on the match control page,

**To Reproduce**
I was unable to reproduce this on a new test event after the fact, but what we did was click "Replay", confirm it, and then started the match when it was time. Then went to Active Match tab.

**Expected behavior**
The old scoring data should be cleared out and no discrepancy should be shown between the Active Match tab and the field displays.

**Screenshots**
![image](https://github.com/user-attachments/assets/18ae25b9-c800-4ea1-8e23-330221f4d953)

(edit: sorry, looks like Github downsized it a bit, the original resolution: https://photos.app.goo.gl/ESgNv75QmH6adRnKA)

**Device (please complete the following information):**
- OS: Windows 10
- Browser: Chrome 131

**Additional context**
Here are the relevant log events for Q-29; it does appear the match control page was showing the old values as they match the score breakdown in the screenshot, but then the final calculated score shown is no longer this 66-69, and the large value at the top of the match control page was updating during this time, so it seems like some cached values were present:
```
14:35:44.455 [JettyServerThreadPool-875] [] DEBUG org.usfirst.ftc.server.Server - COMMITTING 29:{"autoSampleNet":0,"autoSampleLow":0,"autoSampleHigh":0,"autoSpecimenLow":0,"autoSpecimenHigh":1,"robot1Auto":0,"robot2Auto":0,"teleopSampleNet":0,"teleopSampleLow":1,"teleopSampleHigh":5,"teleopSpecimenLow":0,"teleopSpecimenHigh":1,"robot1Teleop":0,"robot2Teleop":3,"reqRefInteraction":false,"major":0,"minor":0,"adjust":0,"card1":0,"card2":0,"oldCard1":0,"oldCard2":0,"dq1":0,"dq2":0,"noshow1":0,"noshow2":0,"noshow3":0,"penaltyPoints":0,"scoredPoints":79,"autonomousPoints":10,"teleopPoints":69,"endGamePoints":0,"teleopToSubtractFromAuto":54,"teleopToSubtractFromInMatch":15}, {"autoSampleNet":0,"autoSampleLow":0,"autoSampleHigh":0,"autoSpecimenLow":0,"autoSpecimenHigh":1,"robot1Auto":0,"robot2Auto":0,"teleopSampleNet":0,"teleopSampleLow":0,"teleopSampleHigh":1,"teleopSpecimenLow":0,"teleopSpecimenHigh":3,"robot1Teleop":1,"robot2Teleop":3,"reqRefInteraction":false,"major":0,"minor":0,"adjust":0,"card1":0,"card2":0,"oldCard1":0,"oldCard2":0,"dq1":0,"dq2":0,"noshow1":0,"noshow2":0,"noshow3":0,"penaltyPoints":0,"scoredPoints":66,"autonomousPoints":10,"teleopPoints":56,"endGamePoints":0,"teleopToSubtractFromAuto":38,"teleopToSubtractFromInMatch":18}
14:35:44.470 [JettyServerThreadPool-875] [] INFO org.usfirst.ftc.server.Server - Match Q-29 has been saved to the database and set to committed. Proceeding with rankings calc.
14:35:44.487 [JettyServerThreadPool-875] [] INFO org.usfirst.ftc.server.Server - Match Q-29 rankings calc finished.
---
15:23:50.599 [JettyServerThreadPool-1046] [] DEBUG org.usfirst.ftc.server.Server - COMMITTING 29:{"autoSampleNet":0,"autoSampleLow":0,"autoSampleHigh":0,"autoSpecimenLow":0,"autoSpecimenHigh":1,"robot1Auto":1,"robot2Auto":0,"teleopSampleNet":0,"teleopSampleLow":0,"teleopSampleHigh":7,"teleopSpecimenLow":0,"teleopSpecimenHigh":1,"robot1Teleop":1,"robot2Teleop":3,"reqRefInteraction":false,"major":0,"minor":1,"adjust":0,"card1":0,"card2":0,"oldCard1":0,"oldCard2":0,"dq1":0,"dq2":0,"noshow1":0,"noshow2":0,"noshow3":0,"penaltyPoints":5,"scoredPoints":97,"autonomousPoints":13,"teleopPoints":84,"endGamePoints":0,"teleopToSubtractFromAuto":66,"teleopToSubtractFromInMatch":18}, {"autoSampleNet":0,"autoSampleLow":0,"autoSampleHigh":0,"autoSpecimenLow":0,"autoSpecimenHigh":2,"robot1Auto":0,"robot2Auto":0,"teleopSampleNet":0,"teleopSampleLow":0,"teleopSampleHigh":2,"teleopSpecimenLow":0,"teleopSpecimenHigh":1,"robot1Teleop":0,"robot2Teleop":2,"reqRefInteraction":false,"major":0,"minor":0,"adjust":0,"card1":0,"card2":0,"oldCard1":0,"oldCard2":0,"dq1":0,"dq2":0,"noshow1":0,"noshow2":0,"noshow3":0,"penaltyPoints":0,"scoredPoints":49,"autonomousPoints":20,"teleopPoints":29,"endGamePoints":0,"teleopToSubtractFromAuto":26,"teleopToSubtractFromInMatch":3}
15:23:50.612 [JettyServerThreadPool-1046] [] INFO org.usfirst.ftc.server.Server - Match Q-29 has been saved to the database and set to committed. Proceeding with rankings calc.
15:23:50.629 [JettyServerThreadPool-1046] [] INFO org.usfirst.ftc.server.Server - Match Q-29 rankings calc finished.
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.