Skip to content

Implement status field, derived from adverised_start_time#3

Open
benrobey wants to merge 2 commits intostep2-orderingfrom
step3-status
Open

Implement status field, derived from adverised_start_time#3
benrobey wants to merge 2 commits intostep2-orderingfrom
step3-status

Conversation

@benrobey
Copy link
Owner

Step 3: Race Status (OPEN / CLOSED)


Feature: Each race now includes a status based on advertised_start_time relative to "now".

  • OPEN => start time is in the future
  • CLOSED => start time is now or in the past

Status field is always present.

Example: Show first few races with status

curl -s -X POST localhost:8000/v1/list-races -d '{}' \
  | jq '.races[0:5] | map({id, status, start: .advertisedStartTime})'

Example: Only future (OPEN) races

curl -s -X POST localhost:8000/v1/list-races -d '{}' \
  | jq '.races | map(select(.status=="RACE_STATUS_OPEN"))'

@benrobey benrobey force-pushed the step3-status branch 2 times, most recently from 112fcd1 to e8e97fb Compare August 17, 2025 09:27
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.

1 participant