Skip to content

Conversation

@pan93412
Copy link
Member

  • feat: implement points and events
  • feat: implement events

@pan93412 pan93412 self-assigned this Sep 16, 2025
@linear
Copy link

linear bot commented Sep 16, 2025

@pan93412 pan93412 marked this pull request as ready for review September 17, 2025 16:38
@pan93412 pan93412 requested a review from Copilot September 17, 2025 16:40
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 implements a comprehensive point system with events tracking for user activities. The changes introduce event logging for user logins and impersonation, automatic point granting based on login patterns, and asynchronous event processing to avoid blocking the main request flow.

  • Implements event system to track user activities (login, impersonation)
  • Adds points granting system with daily and weekly login rewards
  • Introduces asynchronous event processing with worker synchronization

Reviewed Changes

Copilot reviewed 65 out of 66 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
internal/events/ Core event service and points granting system implementation
internal/workers/workers.go Global worker synchronization for async event processing
internal/useraccount/ Updates to integrate event service into user authentication flow
ent/schema/ New database schemas for Events and Points entities
graph/ GraphQL schema updates and resolver changes for new entities

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 17, 2025 17:04
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 65 out of 66 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 cd31c4a into main Sep 17, 2025
1 check passed
@pan93412 pan93412 deleted the pan93412/dbp-39-implement-point-system branch September 17, 2025 18:49
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