modcomms/backend/app
michael 7f1df8c508 Fix user audit trail logging stale agency value for old and new
Expire the SQLAlchemy cached user object after flush() so the
subsequent get_by_id() reloads the agency relationship with fresh
data. Previously the identity map returned the same Python object
with the old .agency, causing audit logs to record identical old
and new values on agency changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 09:53:04 -06:00
..
agents Standardise Issue/Recommendation formatting across all agents 2026-02-19 10:17:08 -06:00
api Add sortable, filterable campaign list with "My Campaigns Only" toggle 2026-02-22 09:43:07 -06:00
dependencies Add 4-tier RBAC backend: auth dependencies, role enforcement, agency filtering 2026-02-19 08:28:23 -06:00
models Add user change history audit trail for compliance 2026-02-22 08:41:16 -06:00
repositories Fix user audit trail logging stale agency value for old and new 2026-02-22 09:53:04 -06:00
services Standardise Issue/Recommendation formatting across all agents 2026-02-19 10:17:08 -06:00
websocket Wire up Errors tab in Auditing: auto-create ErrorItem on Analysis Error 2026-02-12 13:55:16 -06:00
__init__.py permissions changes 2025-12-18 16:51:27 +00:00
config.py Add Knowledge Base management system for AI agent specs 2026-02-12 15:00:36 -06:00
main.py Add 4-tier RBAC backend: auth dependencies, role enforcement, agency filtering 2026-02-19 08:28:23 -06:00