Skip to content

fix: Add support for nested fields in dashboard widgets #4795

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 0 commits into from

Conversation

lukeod
Copy link

@lukeod lukeod commented May 15, 2025

Fixes #4794 - Adds support for nested fields in dashboard widgets

Copy link

vercel bot commented May 15, 2025

@lukeod is attempting to deploy a commit to the KeepHQ Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. Bug Something isn't working UI User interface related issues labels May 15, 2025
@lukeod lukeod changed the title Fix: Add support for nested fields in dashboard widgets fix: Add support for nested fields in dashboard widgets May 15, 2025
@Kiryous Kiryous self-requested a review May 15, 2025 07:18
Copy link

codecov bot commented May 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 30.80%. Comparing base (73a3a32) to head (ac5aa1b).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4795      +/-   ##
==========================================
- Coverage   30.97%   30.80%   -0.17%     
==========================================
  Files          93       93              
  Lines       10855    10949      +94     
==========================================
+ Hits         3362     3373      +11     
- Misses       7493     7576      +83     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@shahargl shahargl requested a review from skynetigor May 15, 2025 18:18
* @param path The dot-notation path to the desired property (e.g., 'annotations.summary')
* @returns The value at the specified path, or undefined if the path doesn't exist
*/
export function getNestedValue(obj: any, path: string): any {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job!
Just maybe one comment from me to add unit-test for this function 🙏

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels May 18, 2025
@lukeod lukeod closed this May 18, 2025
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels May 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working size:XS This PR changes 0-9 lines, ignoring generated files. UI User interface related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[🐛 Bug]: Dashboard Alert Widget Nested Fields Rendering Issue
2 participants