[PM-36838] Render DeviceType display name in event integration templates#8011
[PM-36838] Render DeviceType display name in event integration templates#8011lastbestdev wants to merge 1 commit into
Conversation
The #DeviceType# integration template token resolved to the DeviceType enum member identifier (e.g. "ChromeExtension") because ReplaceTokens calls .ToString() on the value. Expose the [Display(Name)] value via GetDisplayName() so rendered event payloads show the friendly name (e.g. "Chrome Extension") instead.
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE Reviewed a focused bugfix that changes No security, correctness, breaking-change, or performance concerns were found. Code Review DetailsNo findings. The change is small, well-scoped, and appropriately tested for both the set and null device-type cases. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8011 +/- ##
==========================================
+ Coverage 62.23% 62.36% +0.13%
==========================================
Files 2287 2286 -1
Lines 99663 99673 +10
Branches 9004 9004
==========================================
+ Hits 62023 62162 +139
+ Misses 35469 35338 -131
- Partials 2171 2173 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-36838
📔 Objective
The #DeviceType# integration template token resolved to the DeviceType enum member identifier (e.g. "ChromeExtension") because ReplaceTokens calls .ToString() on the value. Expose the [Display(Name)] value via GetDisplayName() so rendered event payloads show the friendly name (e.g. "Chrome Extension") instead.
📸 Screenshots
Event sent to Splunk (see "deviceName" value. "Chrome" is the display value for the "ChromeBrowser" device type enum member)