tercul-backend/internal/domain
google-labs-jules[bot] 04878c7bec feat: Implement event-driven analytics system
This commit introduces a new event-driven analytics system to track user interactions with works and translations. The system is designed to be scalable and production-ready.

Key changes:
- An asynchronous event-driven architecture using `asynq` for handling analytics.
- A new background worker process (`cmd/worker`) to process analytics events from a Redis-backed queue.
- GraphQL resolvers now publish `AnalyticsEvent`s to the queue instead of directly calling the analytics service.
- New `popularTranslations` GraphQL query to leverage the new analytics data.
- Integration tests now use `miniredis` to mock Redis, making them self-contained.
- The `TODO.md` file has been updated to reflect the completed work.
2025-09-07 22:54:43 +00:00
..
work This commit addresses the "Stabilize non-linguistics tests and interfaces" task from TODO.md. 2025-09-06 06:25:11 +00:00
.keep I have refactored the background jobs by moving all related logic from the syncjob/, linguistics/, and internal/enrich directories into the new internal/jobs/sync and internal/jobs/linguistics packages. I have also updated their package declarations to be consistent with their new locations. 2025-09-02 15:02:04 +00:00
analytics.go feat: Implement event-driven analytics system 2025-09-07 22:54:43 +00:00
entities.go feat(analytics): Enhance analytics capabilities 2025-09-07 19:26:51 +00:00
interfaces.go feat: Refactor GORM relations and implement mutations 2025-09-06 12:45:44 +00:00