Add sync log endpoint for desync log uploads#45
Draft
11EJDE11 wants to merge 2 commits intoCnCNet:mainfrom
Draft
Add sync log endpoint for desync log uploads#4511EJDE11 wants to merge 2 commits intoCnCNet:mainfrom
11EJDE11 wants to merge 2 commits intoCnCNet:mainfrom
Conversation
- SyncLog model with migrations (game_hash, player_name, slot index, map/game metadata, file, IP, 500 MB storage cap with LRU eviction) - POST /sync-logs/ - unauthenticated upload endpoint - GET /sync-logs/session/<hash>/ — lists logs for a session (IP omitted) - GET /sync-logs/compare/<hash>/view/ - HTML page for client-side side-by-side diff of any two logs using jsdiff + diff2html - Django admin with game slug column and per-game filtering - Enable Django admin login (ModelBackend, has_perm, get_by_natural_key) - nginx client_max_body_size raised to 15m to accommodate large logs - Add .vs/ to .gitignore
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.
/sync-logs/endpoint so xna-cncnet-client can uploadSYNC*.TXTdesync logs automatically after a desync occursgame_hash(derived client-side from map SHA1, random seed, and game slug), making it easy to group and compare logs across machines/sync-logs/compare/<hash>/view/- no server-side file comparison required, diffs entirely in JS using jsdiff + diff2htmlEndpoints
POST/sync-logs/SYNC*.TXTfileGET/sync-logs/session/<hash>/GET/sync-logs/compare/<hash>/view/