• Stefy Lanza (nextime / spora )'s avatar
    Fix: Add requires_full_sync flag for empty database recovery · ce5a588c
    Stefy Lanza (nextime / spora ) authored
    - Add requires_full_sync flag to /api/reports/sync response when no records exist for client across ALL report tables (bets, extraction_stats, match_reports)
    - Add requires_full_sync flag to /api/reports/last-sync response when no records exist for client
    - Update REPORTS_SYNC_PROTOCOL_DOCUMENTATION.md with full sync required scenario
    - Update REPORTS_SYNC_API_SPECIFICATION.txt with requires_full_sync field documentation
    - Create REPORTS_SYNC_EMPTY_DATABASE_FIX.md with comprehensive fix documentation
    
    This fix addresses the critical gap where the server couldn't signal when it required a full sync after database reset, ensuring automatic recovery without manual intervention.
    ce5a588c
Name
Last commit
Last update
.kilocode Loading commit data...
app Loading commit data...
database Loading commit data...
hooks Loading commit data...
.env.example Loading commit data...
.gitignore Loading commit data...
BUILD.md Loading commit data...
CHANGELOG.md Loading commit data...
CLIENT_SYNC_IMPLEMENTATION_GUIDE.md Loading commit data...
CLIENT_SYNC_MINIMAL_PROMPT.md Loading commit data...
GLIBC_COMPATIBILITY.md Loading commit data...
README.md Loading commit data...
REPORTS_FEATURE_README.md Loading commit data...
REPORTS_FINAL_IMPLEMENTATION.md Loading commit data...
REPORTS_IMPLEMENTATION_GUIDE.md Loading commit data...
REPORTS_SYNC_API_SPECIFICATION.txt Loading commit data...
REPORTS_SYNC_EMPTY_DATABASE_FIX.md Loading commit data...
REPORTS_SYNC_PROTOCOL_DOCUMENTATION.md Loading commit data...
REPORTS_UPDATE_IMPLEMENTATION.md Loading commit data...
RESET_REPORTS_SYNC.sql Loading commit data...
backfill_fixture_times.py Loading commit data...
build.py Loading commit data...
config.py Loading commit data...
fixture-manager.spec Loading commit data...
fixture_daemon.py Loading commit data...
install.sh Loading commit data...
main.py Loading commit data...
requirements-build.txt Loading commit data...
requirements.txt Loading commit data...
run_migration.py Loading commit data...
test_accumulated_shortfall.py Loading commit data...
test_clients_implementation.py Loading commit data...
test_reports_sync.py Loading commit data...
test_upload.py Loading commit data...