-
-
Notifications
You must be signed in to change notification settings - Fork 18
Use github release api to retrieve last app version #407
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
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThis pull request refactors the update checking mechanism by renaming Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related issues
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
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. Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
🧹 Nitpick comments (1)
owlplug-client/src/main/java/com/owlplug/core/controllers/MainController.java (1)
159-169: Tighten executor lifecycle and async error handling for update checkThe virtual-thread executor is created in
initialize()and never closed or reused, and any exception thrown fromappUpdateService.isUpToDate()would be silently dropped by theCompletableFuture. Consider either:
- Reusing a shared, bean-managed executor (or existing
TaskRunner) instead of creating a new one here, and/or- Using try‑with‑resources or another explicit shutdown strategy for the executor, and
- Adding an
.exceptionally(...)(or similar) stage to log failures and decide whether to treat errors as “no update” or show a warning.This keeps resource usage predictable and makes update-check failures diagnosable.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
owlplug-client/src/main/java/com/owlplug/core/controllers/MainController.java(3 hunks)owlplug-client/src/main/java/com/owlplug/core/model/json/RemoteVersion.java(0 hunks)owlplug-client/src/main/java/com/owlplug/core/services/AppUpdateService.java(2 hunks)
💤 Files with no reviewable changes (1)
- owlplug-client/src/main/java/com/owlplug/core/model/json/RemoteVersion.java
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Codacy Static Code Analysis
🔇 Additional comments (1)
owlplug-client/src/main/java/com/owlplug/core/controllers/MainController.java (1)
40-46: AppUpdateService wiring and imports look consistentThe switch to
AppUpdateServiceand the added async/concurrency imports are coherent with the new update-check flow; naming and autowiring are clear and consistent.Also applies to: 84-84
owlplug-client/src/main/java/com/owlplug/core/services/AppUpdateService.java
Show resolved
Hide resolved
owlplug-client/src/main/java/com/owlplug/core/services/AppUpdateService.java
Show resolved
Hide resolved
fd4e3f3 to
adcc6f6
Compare
adcc6f6 to
ea27b40
Compare
Relates to #402