fix(plg): explicitly stop an existing api before installation#1841
Conversation
Necessary for "clean" upgrades to api orchestration (eg changing how the api is daemonized). Prior to this, `rc.unraid-api start` would also restart a running api, which sufficed for application updates, but is insufficient for orchestration updates.
WalkthroughThis change adds a pre-mutation safeguard to the Unraid plugin script. Before modifying Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)**/*📄 CodeRabbit inference engine (.cursor/rules/default.mdc)
Files:
🧠 Learnings (7)📓 Common learnings📚 Learning: 2025-09-04T18:42:53.531ZApplied to files:
📚 Learning: 2025-01-29T16:36:04.777ZApplied to files:
📚 Learning: 2025-09-04T15:26:34.416ZApplied to files:
📚 Learning: 2025-05-08T19:28:54.365ZApplied to files:
📚 Learning: 2025-01-29T16:35:43.699ZApplied to files:
📚 Learning: 2025-06-11T14:14:30.348ZApplied to files:
🔇 Additional comments (1)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1841 +/- ##
==========================================
- Coverage 52.04% 51.84% -0.20%
==========================================
Files 876 878 +2
Lines 50509 50841 +332
Branches 5023 5051 +28
==========================================
+ Hits 26285 26357 +72
- Misses 24149 24408 +259
- Partials 75 76 +1 ☔ 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. |
Necessary for "clean" upgrades to api orchestration (eg changing how the api is daemonized).
Prior to this,
rc.unraid-api startwould also restart a running api, which sufficed for application updates, but is insufficient for orchestration updates.Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.