tercul-backend/internal
google-labs-jules[bot] a1c8088987 feat: Implement MergeWork command and consolidate tasks
This commit introduces the `MergeWork` command, a new feature to merge two `Work` entities, their associations, and their statistics. The entire operation is performed atomically within a database transaction to ensure data integrity.

Key changes include:
- A new `MergeWork` method in `internal/app/work/commands.go`.
- An `Add` method on the `WorkStats` entity for combining statistics.
- A new `GetWithAssociationsInTx` method on the `WorkRepository` to fetch entities within a transaction.
- A comprehensive integration test using an in-memory SQLite database to validate the merge logic.

This commit also consolidates all scattered TODOs and build issues from `TODO.md` and `BUILD_ISSUES.md` into a single, actionable `TASKS.md` file. The legacy documentation files have been removed to create a single source of truth for pending work.
2025-10-05 00:24:23 +00:00
..
adapters feat: Implement MergeWork command and consolidate tasks 2025-10-05 00:24:23 +00:00
app feat: Implement MergeWork command and consolidate tasks 2025-10-05 00:24:23 +00:00
data feat: Implement MergeWork command and consolidate tasks 2025-10-05 00:24:23 +00:00
domain feat: Implement MergeWork command and consolidate tasks 2025-10-05 00:24:23 +00:00
jobs refactor(domain): Isolate Work aggregate 2025-10-03 16:15:09 +00:00
observability feat: Implement observability stack 2025-10-03 16:43:01 +00:00
platform Fix: Correct authorization logic in integration tests 2025-10-04 23:48:44 +00:00
testutil Fix: Correct authorization logic in integration tests 2025-10-04 23:48:44 +00:00