mising files #2694
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!2694
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2694/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: #2346
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2346
Original created: 2026-01-18T09:21:39Z
Original updated: 2026-01-18T09:23:10Z
Original head: carverauto/serviceradar:chore/missing-file-chckin
Original base: staging
Original merged: 2026-01-18T09:21:57Z 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
Formatting
Description
Code formatting and line wrapping improvements across multiple files
Consistent indentation and spacing adjustments in Elixir components
Multi-line attribute formatting for better readability
Test file formatting updates to match code style standards
Diagram Walkthrough
File Walkthrough
promotion_rule_builder.ex
Promotion rule builder component formattingweb-ng/lib/serviceradar_web_ng_web/components/promotion_rule_builder.ex
readability
show.ex
Log show live view formatting updatesweb-ng/lib/serviceradar_web_ng_web/live/log_live/show.ex
index.ex
Networks live view spacing adjustmentweb-ng/lib/serviceradar_web_ng_web/live/settings/networks_live/index.ex
index.ex
Rules live view component formattingweb-ng/lib/serviceradar_web_ng_web/live/settings/rules_live/index.ex
promotion_rule_builder_test.exs
Promotion rule builder test formattingweb-ng/test/serviceradar_web_ng_web/components/promotion_rule_builder_test.exs
show_test.exs
Log live view test formatting updatesweb-ng/test/serviceradar_web_ng_web/live/log_live/show_test.exs
rules_live_test.exs
Rules live view test formatting cleanupweb-ng/test/serviceradar_web_ng_web/live/settings/rules_live_test.exs
formatting
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2346#issuecomment-3765094361
Original created: 2026-01-18T09:22:14Z
PR Compliance Guide 🔍
Below is a summary of compliance checks for this PR:
JSON parsing DoS
Description: User-controlled attribute strings that begin with
{are passed directly toJason.decode/1,which could be exploited for resource exhaustion (CPU/memory) via very large or deeply
nested JSON inputs unless upstream input size/depth is bounded.
promotion_rule_builder.ex [835-840]
Referred Code
🎫 No ticket provided
Codebase context is not defined
Follow the guide to enable codebase context checks.
Generic: Comprehensive Audit Trails
Objective: To create a detailed and reliable record of critical system actions for security analysis
and compliance.
Status: Passed
Generic: Meaningful Naming and Self-Documenting Code
Objective: Ensure all identifiers clearly express their purpose and intent, making code
self-documenting
Status: Passed
Generic: Robust Error Handling and Edge Case Management
Objective: Ensure comprehensive error handling that provides meaningful context and graceful
degradation
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: Secure Logging Practices
Objective: To ensure logs are useful for debugging and auditing without exposing sensitive
information like PII, PHI, or cardholder data.
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
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/2346#issuecomment-3765094966
Original created: 2026-01-18T09:23:10Z
PR Code Suggestions ✨
Explore these optional code suggestions:
Prevent binary_part crash on empty strings
Add a
byte_size(json_value) > 0check in theparse_key_value_pairfunction guardto prevent a potential crash from
binary_part/3ifjson_valueis an emptystring.
web-ng/lib/serviceradar_web_ng_web/components/promotion_rule_builder.ex [835-840]
Suggestion importance[1-10]: 7
__
Why: The suggestion correctly identifies a potential
ArgumentErrorwhenbinary_part/3is called on an empty string and proposes a valid guard to prevent it, improving the code's robustness.