adjust error handling for zero edges and handling of issue column#50
adjust error handling for zero edges and handling of issue column#50tonywu1999 merged 1 commit intodevelfrom
Conversation
WalkthroughThe edge filtering logic in the utility script was updated to check for the existence of the "issue" column before filtering out rows with missing values. Additionally, the script now raises an error rather than a warning if no edges remain after filtering, enforcing stricter failure handling. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (2)
✨ Finishing Touches🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## devel #50 +/- ##
==========================================
+ Coverage 65.23% 65.29% +0.05%
==========================================
Files 7 7
Lines 607 608 +1
==========================================
+ Hits 396 397 +1
Misses 211 211 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary by CodeRabbit
PR Type
Bug fix
Description
Check for
issuecolumn before filterFilter only NA issues when present
Stop with error if no edges remain
File Walkthrough
utils_getSubnetworkFromIndra.R
Issue check and strict edge-error handlingR/utils_getSubnetworkFromIndra.R
input$issuefilter in column-existence check