Add traversal_path and dual writes
What does this MR do and why?
Summary
A new field called traversal_path is being added to the AI usage events table in the database. This new field stores a more complete path that includes the organization level (e.g., 1/9/42/), replacing the older namespace_path field which only stored a legacy format without the organization scope. The old field is kept for backwards compatibility but is now considered deprecated. Both new events being written and historical data being backfilled will now include this updated path format. The database is set up so that even older records without the new field can still resolve it automatically at read time using a lookup dictionary.
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #608216