-
Couldn't load subscription status.
- Fork 11
fix(plugin): add fallback for unraid-api stop in deprecation cleanup #1668
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
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughReworked unraid-api stop logic in plugin and cleanup script to branch between rc script, CLI, or warning, removing output-capture, fixed delay, and status echoes. Surrounding conditions and subsequent cleanup/sign-out logic remain unchanged. Minor whitespace adjustments. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Cleanup as Cleanup Caller
participant Shell as Shell Script
participant RC as /etc/rc.d/rc.unraid-api
participant CLI as unraid-api (CLI)
Cleanup->>Shell: perform_connect_cleanup / cleanup.sh
alt rc.unraid-api exists
Shell->>RC: stop 2>&1
RC-->>Shell: exit status
else unraid-api CLI available
Shell->>CLI: stop 2>&1
CLI-->>Shell: exit status
else neither available
Shell-->>Cleanup: warn "Neither rc.unraid-api nor unraid-api found"
end
note right of Shell: Removed output-capture and fixed sleep
Shell-->>Cleanup: proceed to sign-out / subsequent steps (unchanged)
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
✨ Finishing Touches
🧪 Generate unit tests
Comment |
|
Claude finished @pujitm's task —— View job Code Review AnalysisAnalyzing the diff/changeset for critical issues in the changed lines only. Todo List:
✅ No critical issues found in changes The PR replaces a single command execution pattern with a more robust fallback approach for stopping the unraid-api service. The changes:
The changes are defensive programming improvements that handle missing files gracefully and don't introduce any critical bugs, security issues, breaking changes, or data loss risks. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1668 +/- ##
=======================================
Coverage 54.56% 54.56%
=======================================
Files 809 809
Lines 45457 45457
Branches 4675 4675
=======================================
Hits 24804 24804
Misses 20616 20616
Partials 37 37 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
This plugin has been deployed to Cloudflare R2 and is available for testing. |
🤖 I have created a release *beep* *boop* --- ## [4.20.0](v4.19.1...v4.20.0) (2025-09-08) ### Features * **disks:** add isSpinning field to Disk type ([#1527](#1527)) ([193be3d](193be3d)) ### Bug Fixes * better component loading to prevent per-page strange behavior ([095c222](095c222)) * **deps:** pin dependencies ([#1669](#1669)) ([413db4b](413db4b)) * **plugin:** add fallback for unraid-api stop in deprecation cleanup ([#1668](#1668)) ([797bf50](797bf50)) * prepend 'v' to API version in workflow dispatch inputs ([f0cffbd](f0cffbd)) * progress frame background color fix ([#1672](#1672)) ([785f1f5](785f1f5)) * properly override header values ([#1673](#1673)) ([aecf70f](aecf70f)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Summary by CodeRabbit
Bug Fixes
Chores