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

Filter out invalid items in IdWcaSearch #10733

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gregorbg
Copy link
Member

Prevent any React pages from crashing that use IdWcaSearch with values that cannot be found (because either they really don't exist like competitions with ID FoobarOpenLOL1979Really or because we pretend like they don't exist, for example unannounced competitions)

An alternative solution would be to add an extra "Competition Admin" model to the search, which maps to an endpoint that always reveals data even for unannounced competitions, We would have to be careful about using that one, though

@gregorbg gregorbg force-pushed the fixup/id-search-invalid-items branch from 22cc89c to 34d61ea Compare January 28, 2025 15:05
@gregorbg
Copy link
Member Author

See #10730 for context, and to find out what "inspired" me to this PR

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