Files
cleveragents-core/features
HAL9000 2e3b186877 fix(data-integrity): remove session.rollback() calls from ProjectRepository
Extends the data integrity fix to all repository methods that receive sessions
from a shared UnitOfWork (via constructor injection or session factory).

Calling session.rollback() on an externally-owned session rolls back ALL pending
writes in the shared transaction, causing silent data loss when multiple
repositories participate in the same UnitOfWork.

Changes:
- ProjectRepository.create(): replaced # type: ignore with cast(int, ...)
- ActionRepository.create/update/delete(): removed session.rollback() calls
- LifecyclePlanRepository.create/update/delete(): removed session.rollback() calls
- ResourceRepository.create/update/delete/link_child/unlink_child/auto_discover_children():
  removed session.rollback() calls
- Added TDD tests (features/tdd_data_integrity_session_rollback_7489.feature)
  verifying repositories do NOT call rollback on shared sessions
- Updated CHANGELOG.md and CONTRIBUTORS.md

ISSUES CLOSED: #7489
2026-05-05 04:53:48 +00:00
..