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

External sources of (league) score data #22

Merged
merged 3 commits into from
Feb 17, 2023
Merged

Conversation

PeterJCLaw
Copy link
Owner

@PeterJCLaw PeterJCLaw commented Feb 5, 2023

This creates a mechanism for additional league points (and league-section game points) to be assigned to teams at the competition. The source of these points is deliberately out of scope, allowing complete freedom for judges to merge in other sources of data.

Specifically: a new top level directory external may now exist, if it does then it should contain *.yaml files with content like:

scores:
  - team: ABC
    league_points: 42
  - team: DEF
    game_points: 3
    league_points: 9

No restriction is made on the number of times the data for a team may appear in a given file, nor between files.

Fixes srobo/tasks#973

This doesn't directly address #17, however may provide a way to achieve a similar outcome.

See also PeterJCLaw/dummy-comp#1 for example data.

This is potentially useful when importing league data from another
round of leagues which we don't want to represent within a compstate,
or when awarding league points for activities which are not actually
league matches.
This is potentially useful when importing league data from another
round of leagues which we don't want to represent within a compstate,
or when awarding league points for activities which are not actually
league matches.
Copy link
Collaborator

@prophile prophile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you noted this doesn't solve the "override scores for a match" problem, but this does solve the challenges situation—let's ship it


team: str
game_points: NotRequired[int]
league_points: int
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could start thinking about something like pydantic for validating these data as we read them in based on the types, though that's out of scope here.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I've been wondering about having some schema stuff.

@PeterJCLaw PeterJCLaw merged commit 6294dda into main Feb 17, 2023
@PeterJCLaw PeterJCLaw deleted the external-score-sources branch February 17, 2023 23:21
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

Successfully merging this pull request may close these issues.

Create a way to represent the SR2023 Challenges in SRComp
2 participants