-
Notifications
You must be signed in to change notification settings - Fork 125
feat(tools): Update dashboards with jsonpath #241
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces efficient dashboard update capabilities using JSONPath-based patch operations to address context window management for large dashboards. The implementation provides targeted dashboard modifications without requiring full dashboard JSON, significantly reducing memory usage.
Key changes:
- Added patch-based dashboard updates using JSONPath expressions for specific dashboard modifications
- Introduced context window optimization tools (
get_dashboard_summary
,get_dashboard_property
) for working with large dashboards - Enhanced the
update_dashboard
function to support both full JSON and patch operation modes
Reviewed Changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
tools/dashboard.go | Core implementation of patch operations, JSONPath handling, and new dashboard tools for context optimization |
tools/dashboard_test.go | Comprehensive test coverage for new patch operations and context management tools |
tests/dashboards_test.py | Python integration tests demonstrating patch-based dashboard updates |
go.mod | Added jsonpath library dependency |
README.md | Updated documentation describing new features and context window management strategies |
ab288b1
to
fd89338
Compare
6841093
to
001d38c
Compare
001d38c
to
d323074
Compare
Related to #101
This PR introduces more efficient dashboard update capabilities using JSONPath-based patch operations, addressing context window management for large dashboards.
Ops.Dashboard.Jsonpath.Demo.mp4
Key Features
get_dashboard_summary - Compact dashboard overview without full JSON
get_dashboard_property - Extract specific dashboard parts using JSONPath
Benefits