Commit 0d7d18f
Fix metadata history tracking by persisting registered metadata to loaders
The register() method was only storing metadata in the in-memory registry
but never persisting it to writable loaders like DatabaseLoader. This caused
history tracking tests to fail because no history records were being created.
Changes:
- Updated MetadataManager.register() to call save() on all loaders that
implement the save() method
- This ensures metadata is persisted to DatabaseLoader which triggers
history record creation via createHistoryRecord()
- Wrapped save() calls in try-catch to prevent registration failures if
persistence fails
Fixes #metadata-history-tests
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>1 parent 3c82b74 commit 0d7d18f
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
162 | 175 | | |
163 | 176 | | |
164 | 177 | | |
| |||
0 commit comments