Skip to content

Conversation

pan93412
Copy link
Member

No description provided.

@pan93412 pan93412 self-assigned this Sep 19, 2025
@pan93412 pan93412 requested a review from Copilot September 19, 2025 16:17
Copy link
Contributor

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

Implements a new SubmissionStatistics feature that provides comprehensive statistics about user submissions including total questions, attempted questions, solved questions, and breakdown by difficulty level.

  • Adds GraphQL schema for submission statistics with nested difficulty breakdown
  • Implements resolver logic with database queries for counting questions and submissions
  • Provides comprehensive test coverage for various user submission scenarios

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
graph/question.graphqls Adds GraphQL schema for SubmissionStatistics and SolvedQuestionByDifficulty types
graph/model/models_gen.go Generates Go types for the new GraphQL schema definitions
graph/question.resolvers.go Implements the SubmissionStatistics resolver with database queries
graph/ent.resolvers.go Refactors resolver type definitions to use type group syntax
graph/submission_statistics_test.go Comprehensive test suite covering various submission scenarios
go.mod Adds samber/lo dependency for functional programming utilities

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@pan93412 pan93412 requested a review from Copilot September 19, 2025 16:23
Copy link
Contributor

@Copilot 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 6 out of 7 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@pan93412 pan93412 merged commit f2c4f37 into main Sep 19, 2025
1 check passed
@pan93412 pan93412 deleted the pan93412/implement-statistics branch September 19, 2025 16:35
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.

1 participant