mirror of
https://github.com/SamyRai/tercul-backend.git
synced 2025-12-27 04:01:34 +00:00
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. |
||
|---|---|---|
| .. | ||
| analytics | ||
| auth | ||
| author | ||
| authz | ||
| book | ||
| bookmark | ||
| category | ||
| collection | ||
| comment | ||
| copyright | ||
| like | ||
| localization | ||
| monetization | ||
| search | ||
| tag | ||
| translation | ||
| user | ||
| work | ||
| .keep | ||
| app.go | ||