tercul-backend/internal/app
google-labs-jules[bot] 8ddc4a7986 This commit refactors the GraphQL layer to improve code quality and adhere to the project's target architecture.
Key changes include:
- Moved authorization logic for collection mutations from the GraphQL resolvers to the application service layer, ensuring that ownership checks are handled consistently within the business logic.
- Updated the `collection` command handlers and input structs to accept a user ID for authorization.
- Removed orphaned code, including unused resolver definitions (`workResolver`, `translationResolver`) and misplaced helper functions from `schema.resolvers.go`.
- Re-implemented the `Stats` resolvers for the `Work` and `Translation` types, ensuring they correctly call the `analytics` application service.
- Fixed several build errors related to type mismatches and redeclared functions by regenerating the GraphQL code and correcting helper function signatures.
- Updated integration tests to provide authenticated user context for collection mutations, ensuring that the new authorization checks pass.
2025-10-03 02:13:12 +00:00
..
analytics feat: Implement blog schema and example content 2025-09-07 23:22:36 +00:00
auth Refactor: Introduce service layer for application logic 2025-09-09 02:28:25 +00:00
author refactor: Align codebase with DDD architecture to fix build 2025-10-03 01:17:53 +00:00
bookmark Refactor: Introduce service layer for application logic 2025-09-09 02:28:25 +00:00
category Refactor: Introduce service layer for application logic 2025-09-09 02:28:25 +00:00
collection This commit refactors the GraphQL layer to improve code quality and adhere to the project's target architecture. 2025-10-03 02:13:12 +00:00
comment Refactor: Introduce service layer for application logic 2025-09-09 02:28:25 +00:00
copyright feat: Add unit tests for models, repositories, and services 2025-09-07 11:42:30 +00:00
like Refactor: Introduce service layer for application logic 2025-09-09 02:28:25 +00:00
localization feat: Finalize DDD refactoring and fix tests 2025-10-03 01:44:47 +00:00
monetization feat: Add unit tests for models, repositories, and services 2025-09-07 11:42:30 +00:00
search feat: Finalize DDD refactoring and fix tests 2025-10-03 01:44:47 +00:00
tag Refactor: Introduce service layer for application logic 2025-09-09 02:28:25 +00:00
translation refactor: Align codebase with DDD architecture to fix build 2025-10-03 01:17:53 +00:00
user Refactor: Introduce service layer for application logic 2025-09-09 02:28:25 +00:00
work refactor: Align codebase with DDD architecture to fix build 2025-10-03 01:17:53 +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
app.go feat: Finalize DDD refactoring and fix tests 2025-10-03 01:44:47 +00:00