Major Domo v2 - Discord bot for Strat-o-Matic Baseball Association
Root cause: Draft list API has NO individual CRUD endpoints. Only endpoints available: - GET (retrieve list) - POST (bulk replacement - deletes all, inserts new list) All modification operations (add, remove, clear, reorder, move) were incorrectly using BaseService CRUD methods (create, delete, patch) which don't exist for this endpoint. Fixes: - add_to_list(): Use bulk replacement with rank insertion logic - remove_player_from_list(): Rebuild list without player - clear_list(): POST empty list - reorder_list(): POST list with new rank order - move_entry_up(): Swap ranks and POST - move_entry_down(): Swap ranks and POST - remove_from_list(): Deprecated (no DELETE endpoint) All operations now: 1. GET current list 2. Build updated list with modifications 3. POST entire updated list (bulk replacement) This resolves all draft list modification failures including: - "Add Failed" when adding players - Remove operations failing silently - Reorder/move operations failing 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .gitlab | ||
| .vscode | ||
| api | ||
| commands | ||
| models | ||
| services | ||
| tasks | ||
| tests | ||
| utils | ||
| views | ||
| .dockerignore | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| .mcp.json | ||
| bot.py | ||
| BUILD_AND_PUSH.md | ||
| build-and-push.sh | ||
| CLAUDE.md | ||
| COMMAND_LIST.md | ||
| config.py | ||
| docker-compose.dev.yml | ||
| docker-compose.yml | ||
| DOCKER.md | ||
| Dockerfile | ||
| Dockerfile.versioned | ||
| exceptions.py | ||
| PRE_LAUNCH_ROADMAP.md | ||
| pyrightconfig.json | ||
| requirements.txt | ||
| test_real_data.py | ||