Skip to content

Conversation

@Limraj
Copy link
Collaborator

@Limraj Limraj commented Jan 27, 2026

  • Corrected BACnetIPDataSourceRT: Added check SegmentationSupported parameter from RemoteDevice, until this field is set, it will try to get the remote device;

Summary by CodeRabbit

  • Bug Fixes

    • Strengthened device initialization validation to ensure devices are fully configured with required information before becoming available for use.
  • Refactor

    • Refactored device readiness determination to use a dedicated validation method, reducing code duplication and improving maintainability across device discovery operations.

✏️ Tip: You can customize this high-level summary in your review settings.

- Corrected BACnetIPDataSourceRT: Added check SegmentationSupported parameter from RemoteDevice, until this field is set, it will try to get the remote device;
@Limraj Limraj added this to the 2.8.1 milestone Jan 27, 2026
@Limraj Limraj requested a review from SoftQ as a code owner January 27, 2026 04:06
@coderabbitai
Copy link

coderabbitai bot commented Jan 27, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review
📝 Walkthrough

Walkthrough

A new helper method isReadyDevice(RemoteDevice d) is introduced in BACnetIPDataSourceRT to consolidate device readiness checks. This method replaces scattered null checks throughout the addDataPoint method by centralizing the logic that determines if a device is ready (non-null with available segmentation information).

Changes

Cohort / File(s) Summary
Device Readiness Check Refactoring
src/com/serotonin/mango/rt/dataSource/bacnet/BACnetIPDataSourceRT.java
Added private helper method isReadyDevice(RemoteDevice d) that consolidates device readiness validation logic. Replaced all direct null checks with calls to this new helper throughout addDataPoint, improving code maintainability by centralizing the readiness criteria (non-null device with segmentation support).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Suggested reviewers

  • SoftQ
  • Patrykb0802

Poem

🐰 Beep boop, a helper hops in,
Consolidating checks with a grin!
No more scattered nulls to chase,
One method puts readiness in place. ✨

🚥 Pre-merge checks | ✅ 1 | ❌ 2
❌ Failed checks (1 warning, 1 inconclusive)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title '#3242 Fixed BACnet Read' is incomplete and vague—it ends mid-sentence without clearly explaining what was fixed regarding BACnet reads. Complete the title to clearly describe the fix, such as 'Fix BACnet read device readiness check by verifying segmentation support' or 'Ensure BACnet device readiness before processing reads.'
✅ Passed checks (1 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link

github-actions bot commented Jan 27, 2026

Java Script Mocha Unit Test Results

268 tests  ±0   268 ✅ ±0   3s ⏱️ ±0s
 70 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 01bc63e. ± Comparison against base commit 58577be.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Jan 27, 2026

Java JUnit Test Results

3 440 tests  ±0   3 440 ✅ ±0   53s ⏱️ +3s
  134 suites ±0       0 💤 ±0 
  134 files   ±0       0 ❌ ±0 

Results for commit 01bc63e. ± Comparison against base commit 58577be.

♻️ This comment has been updated with latest results.

@Limraj
Copy link
Collaborator Author

Limraj commented Jan 27, 2026

@coderabbitai review

@coderabbitai
Copy link

coderabbitai bot commented Jan 27, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

…raphical_chart' into fix/#3242_Fixed_BACnet_Read
…raphical_chart' into fix/#3242_Fixed_BACnet_Read
@Limraj Limraj merged commit 8a7d1f6 into fix/#2779_Very_slow_editing_of_graphical_chart Jan 28, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants