Open
Conversation
- Add optional visible_only filter to ListRaces (proto + gateway), - Repository now applies WHERE visible = 1 only when visible_only=true; default behavior unchanged. - - Regenerated protobufs correctly under proto/racing. - Modernized go directive to 1.22 (left most dependency versions conservative after failed genproto upgrade attempt) and ran mod tidy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Visibility Filtering + Go version and dependency upgrades
Add optional visible_only filter to ListRaces
Behavior:
Upgraded out of date go 1.16 -> 1.22 for needed updated language features
Example 1: Get All Races (no filtering)
Shows every race (visible + non‑visible). This matches legacy behavior.
Example 2: Only Visible Races
Narrows the list to races currently marked visible.
Example 3: Combine With Meeting IDs
Returns only visible races whose meeting_id is 1 or 2.
Sample Truncated Response
{ "races": [ { "id": 42, "meeting_id": 1, "name": "Morning Dash", "number": 3, "visible": true, "advertised_start_time": "2025-08-17T09:15:00Z" } ] }