feat(v2.4): 切换根数据领域主写

This commit is contained in:
2026-07-08 12:07:35 +08:00
parent d82e8729af
commit 142800f75b
21 changed files with 977 additions and 73 deletions

View File

@@ -74,15 +74,15 @@
- Produces: `/api/v1/products`, `/api/v1/products/:productId/projects`, `/api/v1/products/:productId/versions`, and `/api/v1/products/:productId/projects/:projectId/versions`.
- Consumes: existing product/project/version tree shape from `products-overview`.
- [ ] Add failing backend tests for project create/list/update/delete by `productId`.
- [ ] Add failing backend tests for version create/list/update/delete by `productId` and optional `projectId`.
- [ ] Add failing tests proving deleting a version releases linked requirements and deletes version-scoped plans/tasks/test cases/bugs.
- [ ] Add failing frontend tests proving `useProductStore` saves root mutations through domain APIs and falls back to `products-overview` when APIs are unavailable.
- [ ] Implement Project and Version modules with conservative DTO validation.
- [ ] Keep Product CRUD as the top-level root and add child include helpers only where needed.
- [ ] Switch Product store mutations to domain APIs while retaining AppData compatibility read.
- [ ] Run targeted backend and frontend tests.
- [ ] Run full gates and commit: `feat(v2.4): 切换根数据领域主写`.
- [x] Add failing backend tests for project create/list/update/delete by `productId`.
- [x] Add failing backend tests for version create/list/update/delete by `productId` and optional `projectId`.
- [x] Add failing tests proving deleting a version releases linked requirements and deletes version-scoped plans/tasks/test cases/bugs.
- [x] Add failing frontend tests proving `useProductStore` saves root mutations through domain APIs and falls back to `products-overview` when APIs are unavailable.
- [x] Implement Project and Version modules with conservative DTO validation.
- [x] Keep Product CRUD as the top-level root and add child include helpers only where needed.
- [x] Switch Product store mutations to domain APIs while retaining AppData compatibility read.
- [x] Run targeted backend and frontend tests.
- [x] Run full gates and commit: `feat(v2.4): 切换根数据领域主写`.
### Task 3: V2.4.2 Requirement Main Writes And Server Pagination