fixing dashboards #2686
No reviewers
Labels
No labels
1week
2weeks
Failed compliance check
IP cameras
NATS
Possible security concern
Review effort 1/5
Review effort 2/5
Review effort 3/5
Review effort 4/5
Review effort 5/5
UI
aardvark
accessibility
amd64
api
arm64
auth
back-end
bgp
blog
bug
build
checkers
ci-cd
cleanup
cnpg
codex
core
dependencies
device-management
documentation
duplicate
dusk
ebpf
enhancement
eta 1d
eta 1hr
eta 3d
eta 3hr
feature
fieldsurvey
github_actions
go
good first issue
help wanted
invalid
javascript
k8s
log-collector
mapper
mtr
needs-triage
netflow
network-sweep
observability
oracle
otel
plug-in
proton
python
question
reddit
redhat
research
rperf
rperf-checker
rust
sdk
security
serviceradar-agent
serviceradar-agent-gateway
serviceradar-web
serviceradar-web-ng
siem
snmp
sysmon
topology
ubiquiti
wasm
wontfix
zen-engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
carverauto/serviceradar!2686
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2686/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from GitHub pull request.
Original GitHub pull request: #2327
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2327
Original created: 2026-01-18T00:25:47Z
Original updated: 2026-01-18T00:27:05Z
Original head: carverauto/serviceradar:fix/device-details-page-missing-sysmon
Original base: staging
Original merged: 2026-01-18T00:27:02Z by @mfreeman451
User description
IMPORTANT: Please sign the Developer Certificate of Origin
Thank you for your contribution to ServiceRadar. Please note, when contributing, the developer must include
a DCO sign-off statement indicating the DCO acceptance in one commit message. Here
is an example DCO Signed-off-by line in a commit message:
Describe your changes
Issue ticket number and link
Code checklist before requesting a review
PR Type
Bug fix, Enhancement
Description
Refactor sysmon filter resolution to validate data existence before use
Replace identity-based filtering with filter token approach for metrics
Add table panel filtering to device details dashboard
Simplify sysmon presence detection logic
Diagram Walkthrough
File Walkthrough
show.ex
Refactor sysmon filtering with data validationweb-ng/lib/serviceradar_web_ng_web/live/device_live/show.ex
resolve_sysmon_filter_tokens/3function to validate sysmonfilters against actual data before using them
load_sysmon_presence/3with simpler boolean check based onfilter token existence
load_metric_sections/3to accept filter tokens instead ofidentity map
drop_table_panels/1function to filter out table plugin panelsfrom dashboard
sysmon_filter_tokens/1tosysmon_filter_tokens/3for bettermodularity
sysmon_filter_has_data?/3to query and verify filter dataavailability
index.ex
Fix whitespace in host count displayweb-ng/lib/serviceradar_web_ng_web/live/settings/networks_live/index.ex
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2327#issuecomment-3764524294
Original created: 2026-01-18T00:26:12Z
PR Compliance Guide 🔍
Below is a summary of compliance checks for this PR:
No security concerns identified
No security vulnerabilities detected by AI analysis. Human verification advised for critical code.🎫 No ticket provided
Codebase context is not defined
Follow the guide to enable codebase context checks.
Generic: Meaningful Naming and Self-Documenting Code
Objective: Ensure all identifiers clearly express their purpose and intent, making code
self-documenting
Status: Passed
Generic: Secure Error Handling
Objective: To prevent the leakage of sensitive system information through error messages while
providing sufficient detail for internal debugging.
Status: Passed
Generic: Security-First Input Validation and Data Handling
Objective: Ensure all data inputs are validated, sanitized, and handled securely to prevent
vulnerabilities
Status: Passed
Generic: Robust Error Handling and Edge Case Management
Objective: Ensure comprehensive error handling that provides meaningful context and graceful
degradation
Status:
Silent query failure:
sysmon_filter_has_data?/3converts any SRQL query error intofalsewithout logging orsurfacing context, which can silently mask underlying failures and hinder debugging.
Referred Code
Compliance status legend
🟢 - Fully Compliant🟡 - Partial Compliant
🔴 - Not Compliant
⚪ - Requires Further Human Verification
🏷️ - Compliance label
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2327#issuecomment-3764524710
Original created: 2026-01-18T00:26:44Z
CI Feedback 🧐
A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
Action: build
Failed stage: Configure SRQL fixture database for tests [❌]
Failed test name: ""
Failure summary:
The action failed during environment/setup because a required secret was missing:
- The workflow
checks for the
SRQL_TEST_DATABASE_CA_CERTsecret and aborts when it is empty(
SRQL_TEST_DATABASE_CA_CERT:shows no value in the environment).- The job explicitly reports:
SRQL_TEST_DATABASE_CA_CERT secret must be configured to verify SRQL fixture TLS.and then exits withcode
1(line 636–637).Relevant error logs:
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2327#issuecomment-3764524969
Original created: 2026-01-18T00:27:05Z
PR Code Suggestions ✨
Explore these optional code suggestions:
Consolidate pre-flight checks into one
The
resolve_sysmon_filter_tokensfunction makes up to two database queries tofind valid metric data. This can be optimized by using a single, combined query
to check for data using either
device_idoragent_id, thus reducing databaseround-trips.
Examples:
web-ng/lib/serviceradar_web_ng_web/live/device_live/show.ex [1241-1255]
Solution Walkthrough:
Before:
After:
Suggestion importance[1-10]: 7
__
Why: The suggestion correctly identifies a performance bottleneck in
resolve_sysmon_filter_tokenswhere up to two separate database queries can be executed, and proposes a valid optimization to consolidate them into a single query, improving efficiency.Handle nil panels safely
Refactor
drop_table_panels/1to explicitly handleniland other non-list inputsby returning an empty list, ensuring it always returns a list.
web-ng/lib/serviceradar_web_ng_web/live/device_live/show.ex [1290-1294]
Suggestion importance[1-10]: 5
__
Why: The suggestion improves code robustness and consistency by ensuring
drop_table_panels/1always returns a list, aligning its behavior with the similardrop_low_value_categories/1function and preventing potential errors in the processing pipeline.Remove double whitespace
Remove the extra whitespace in the
spanelement to fix a display typo.web-ng/lib/serviceradar_web_ng_web/live/settings/networks_live/index.ex [1256]
Suggestion importance[1-10]: 2
__
Why: The suggestion correctly identifies and fixes a minor typo (an extra space) introduced in the PR, which improves the UI text formatting.