* fix(unified): populate key_path during bulkimport
Rows in resource_history were being created with empty key_path values
during bulkimport (migration of dashboards/folders). This broke
functionality that depends on key_path for indexing/searching.
The fix adds a buildKeyPath helper function that constructs the key_path
in the same format as normal write operations, and updates processBulkWithTx
to set the KeyPath field when inserting into resource_history.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* test(unified): add verification for key_path population after bulkimport
Adds verifyKeyPathPopulated function to migration integration tests
that verifies no rows in resource_history have empty key_path values
after bulkimport completes.
Also changes actionStr fallback from "unknown" to the numeric action
value for better debugging.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>