Conversation
…ctor/462-fe-policy-misu
[462] 정책 활성화 변경 알람 부하 성능 최적화
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (8)
📝 WalkthroughWalkthroughThis pull request modifies the notification system to use transaction-aware asynchronous notification delivery, removes DIRECT target handling from AlarmHistoryServiceImpl, adds a database index on the family_line table, and updates related tests and configuration files. Changes
Sequence DiagramsequenceDiagram
participant PolicyService as AdminPolicyService
participant TransactionMgr as TransactionSynchronizationManager
participant AlarmService as AlarmHistoryService
participant Database
PolicyService->>TransactionMgr: Check if in active transaction
alt Within Transaction
TransactionMgr->>TransactionMgr: Register after-commit callback
TransactionMgr-->>PolicyService: Callback registered
PolicyService->>Database: Commit transaction
Note over Database: After commit
TransactionMgr->>AlarmService: sendNotificationAsync()
AlarmService->>Database: Persist notifications
else No Active Transaction
PolicyService->>AlarmService: sendNotificationAsync()
AlarmService->>Database: Persist notifications
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
개요
관련 BackLog
Resolves: (Backlog Number, ...)
PR 유형
PR Checklist
Summary by CodeRabbit
New Features
Performance
Chores