Skip to content

Conversation

@pan93412
Copy link
Member

@pan93412 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

Copilot AI review requested due to automatic review settings January 4, 2026 15:26
@pan93412 pan93412 self-assigned this Jan 4, 2026
Copy link
Contributor

Copilot AI left a 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.

Copy link
Contributor

Copilot AI left a 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.

@pan93412 pan93412 merged commit 792df22 into main Jan 5, 2026
11 checks passed
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