Files
MemoryBear/api/app/controllers
Ke Sun 42b59a644d feat(memory): add protected memory config deletion with end-user safeguards
- Add force parameter to delete_config endpoint for controlled deletion of in-use configs
- Implement MemoryConfigService.delete_config with protection against deleting default configs
- Add validation to prevent deletion of configs with connected end-users unless force=True
- Reorganize controller imports to remove duplicates and improve maintainability
- Clean up unused database connection management code from memory_storage_controller
- Add detailed docstring to delete_config endpoint explaining protection mechanisms
- Update error handling with specific BizCode.RESOURCE_IN_USE for configs in active use
- Add comprehensive logging for deletion attempts, warnings, and affected users
- Refactor ConfigParamsDelete schema usage to use MemoryConfigService directly
- Improve API response structure with affected_users count and force_required flag
2026-01-29 12:05:50 +08:00
..
2026-01-29 11:52:59 +08:00
2026-01-28 16:04:38 +08:00
2026-01-28 16:05:54 +08:00
2025-12-24 20:35:04 +08:00
2026-01-07 15:51:12 +08:00
2025-12-24 20:35:04 +08:00
2025-12-24 21:00:10 +08:00