-
Notifications
You must be signed in to change notification settings - Fork 0
Allow recording cheat records #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
pan93412
commented
Jan 4, 2026
- feat(ent): add cheat record schema
- chore(ent): update schema
- feat(graph): implement CheatRecords
- feat(graph): check if a user has unresolved cheat records
- feat(graph): implement cheatRecord mutation
- test(graph): implement test for CheatRecord mutations
- test(graph): implement test for Cheating method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request adds comprehensive cheat record tracking functionality to allow recording and resolving cheat incidents for users. The implementation includes a new database entity, GraphQL API endpoints with proper authorization, and thorough test coverage.
Key changes:
- Added CheatRecord entity with fields for reason, resolution details, and timestamps
- Implemented GraphQL mutations for creating and resolving cheat records with scope-based authorization
- Added a "cheating" field to User type that indicates if unresolved cheat records exist
- Comprehensive test suite covering multiple scenarios including authorization, edge cases, and user isolation
Reviewed changes
Copilot reviewed 37 out of 37 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
ent/schema/cheat_record.go |
Defines new CheatRecord entity schema with required fields and user relationship |
graph/user.graphqls |
Adds cheating field to User type and cheat record mutations with documentation |
graph/ent.graphqls |
Defines CheatRecord GraphQL type, connection types, and query with scope directive |
graph/user.resolvers.go |
Implements mutations for creating/resolving cheat records and cheating status resolver |
graph/ent.resolvers.go |
Implements CheatRecords query resolver with pagination support |
graph/user.resolvers_test.go |
Comprehensive test suite for cheating field and cheat record mutations |
ent/**/* |
Generated ent ORM code for CheatRecord entity and User relationship updates |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 37 out of 37 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.