Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Score Breakdown not supported for 2024 trusted API calls #5758

Open
AADad578 opened this issue Feb 24, 2024 · 0 comments
Open

Score Breakdown not supported for 2024 trusted API calls #5758

AADad578 opened this issue Feb 24, 2024 · 0 comments

Comments

@AADad578
Copy link
Contributor

Expected Behavior

The trusted API should be able to update matches to include both scores and the detailed score breakdown.

Current Behavior

When I attempt to send data to TBA using the trusted API, it will not work and gives me an error:
"Error": "Invalid score breakdown fields for 2024: ['autoAmpNoteCount', 'autoLeavePoints', 'autoLineRobot1', 'autoLineRobot2', 'autoLineRobot3', 'autoPoints', 'autoSpeakerNoteCount', 'autoTotalNotePoints', 'coopertitionCriteriaMet', 'endGameHarmonyPoints', 'endGameNoteInTrapPoints', 'endGameRobot1', 'endGameRobot2', 'endGameRobot3', 'ensembleBonusAchieved', 'melodyBonusAchieved', 'micCenterStage', 'micStageLeft', 'micStageRight', 'rp', 'teleopAmpNoteCount', 'teleopPoints', 'teleopSpeakerNoteAmplifiedCount', 'teleopSpeakerNoteAmplifiedPoints', 'teleopSpeakerNoteCount', 'teleopSpeakerNotePoints', 'teleopTotalNotePoints', 'totalPoints', 'trapCenterStage', 'trapStageLeft', 'trapStageRight']. Valid keys are: []"

Possible Solution

I think it is because this page has not been updated for 2024: https://github.com/the-blue-alliance/the-blue-alliance/blob/4c0fb248aed3fbed5d70420617f5c6bd313df051/src/backend/common/helpers/score_breakdown_keys.py

Steps to Reproduce (for bugs)

  1. See the code I am using at this link: https://ankurrag.oyosite.com/tbawriter/example-code.js
  2. You can also reproduce this error by attempting to send any data that includes score breakdowns using the trusted API demos on the API site: https://www.thebluealliance.com/apidocs/trusted/v1

Context

I am trying to upload match data to TBA from a preseason event I am running where we don't have FMS, but will have match scores and score breakdowns.

Your Environment

  • Version used:
  • Environment name and version (e.g. Chrome 39, node.js 5.4): Chrome Version 121.0.6167.140
  • Operating System and version (desktop or mobile): Windows Desktop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant