tercul-backend/internal/testutil
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
..
integration_test_utils.go feat: Implement event-driven analytics system 2025-09-07 22:54:43 +00:00
mock_base_repository.go Fix build issues and refactor for maintainability 2025-09-05 21:37:42 +00:00
mock_translation_repository.go Fix build issues and refactor for maintainability 2025-09-05 21:37:42 +00:00
mock_weaviate_wrapper.go feat: Add unit tests for models, repositories, and services 2025-09-07 11:42:30 +00:00
mock_work_repository.go Fix build issues and refactor for maintainability 2025-09-05 21:37:42 +00:00
simple_test_utils.go Fix build issues and refactor for maintainability 2025-09-05 21:37:42 +00:00
test_entity.go Refactor repository tests to be more DRY and maintainable. 2025-09-06 13:01:04 +00:00
testutil.go feat: Implement event-driven analytics system 2025-09-07 22:54:43 +00:00