Skip to content

Conversation

@RusticPotatoes
Copy link
Contributor

@RusticPotatoes RusticPotatoes commented Nov 11, 2025

  • Flattened bases/api_public into feature-local packages (player, feedback, reports, labels, shared) with route files (routes.py) so each domain owns its repo + schemas; removed the old bases/bot_detector/api_public/src/** tree and introduced bases/bot_detector/api_public/routes.py for top-level /v2 wiring.

  • Updated server/bootstrap & tooling to the new paths (bases/bot_detector/api_public/core/server.py, docker-compose, Dockerfile, pyproject), removed the endpoints/ package, and ensured dependencies (kafka/session) import from the flattened modules.

  • Added FastAPI/unit tests covering routing, schemas, helper utilities, server bootstrap, and endpoint error paths (404, 422, 400, 500) under test/bases/bot_detector/api_public/ to guard the public API.

from bases.bot_detector.api_public import feedback, labels, player, reports

router = APIRouter()
v2_router = APIRouter(prefix="/v2")
Copy link
Contributor

Choose a reason for hiding this comment

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

should be determined in the /

Copy link
Contributor Author

Choose a reason for hiding this comment

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

need more info on what you mean? like the folder structure should determine the route?

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.

2 participants