Fix missing get_hacker_info import causing new routers to fail#327
Merged
Big-Lolo merged 2 commits intointegrationfrom Oct 21, 2025
Merged
Fix missing get_hacker_info import causing new routers to fail#327Big-Lolo merged 2 commits intointegrationfrom
Big-Lolo merged 2 commits intointegrationfrom
Conversation
Co-authored-by: Big-Lolo <95545807+Big-Lolo@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix routers not showing after last PR
Fix missing get_hacker_info import causing new routers to fail
Oct 21, 2025
Big-Lolo
approved these changes
Oct 21, 2025
Member
|
@copilot in https://domain/docs#/ is not showing services added |
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.
Problem
Two newly added router endpoints were failing at runtime with
NameError:GET /{event_id}/pendinggruped(get_pending_hackers_gruped)GET /{event_id}/hackers_participants_gruped_list(get_hackers_participants_gruped_list)While the routers were properly defined in
router_v1.pyand registered with FastAPI, they would crash when called because the underlying service methods referencedget_hacker_info()which was not imported.Root Cause
The service methods in
src/impl/Event/service.pyuse the helper functionget_hacker_info()fromsrc/utils/service_utils.py:get_hackers_participants_list()- line 582get_hackers_participants_gruped_list()- lines 624, 634However, the import statement at line 27 was missing this function:
Solution
Added
get_hacker_infoto the import list:Testing
Verified that:
get_hacker_infois now available in the service namespaceThe routers will now work correctly when called via the API.
Fixes #311
Original prompt
Fixes #326
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.