Skip to content

fix: address small issues#948

Merged
rsdmike merged 3 commits intomainfrom
smallFixes
May 5, 2026
Merged

fix: address small issues#948
rsdmike merged 3 commits intomainfrom
smallFixes

Conversation

@rsdmike
Copy link
Copy Markdown
Member

@rsdmike rsdmike commented May 5, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 5, 2026 16:05
@rsdmike rsdmike merged commit 10877dd into main May 5, 2026
20 checks passed
@rsdmike rsdmike deleted the smallFixes branch May 5, 2026 16:10
@codecov
Copy link
Copy Markdown

codecov Bot commented May 5, 2026

Codecov Report

❌ Patch coverage is 28.57143% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 39.91%. Comparing base (b532c62) to head (02e8310).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
cmd/app/main.go 40.00% 6 Missing ⚠️
internal/controller/httpapi/ui.go 0.00% 3 Missing ⚠️
cmd/app/browser.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #948      +/-   ##
==========================================
- Coverage   39.92%   39.91%   -0.02%     
==========================================
  Files         123      123              
  Lines       11355    11366      +11     
==========================================
+ Hits         4534     4537       +3     
- Misses       6424     6433       +9     
+ Partials      397      396       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to improve robustness around optional UI assets, reduce disruptive failures during browser auto-launch, and make certain DB migrations more tolerant to repeat application.

Changes:

  • Add httpapi.HasUI() (with noui variant) and use it to skip browser launch when UI assets aren’t embedded.
  • Make browser launch failures non-fatal (log instead of panic).
  • Update migration SQL to use ADD COLUMN IF NOT EXISTS and improve the fatal error message when the local keyring is unavailable.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
internal/controller/httpapi/ui.go Adds HasUI() for non-noui builds by checking for embedded UI entrypoint.
internal/controller/httpapi/ui_noui.go Adds HasUI() stub for noui builds.
internal/app/migrations/20251210000000_migrate_devices.up.sql Makes device/cira column additions conditional via IF NOT EXISTS.
internal/app/migrations/20250701000000_migrate_uefi.up.sql Makes profile column addition conditional via IF NOT EXISTS.
cmd/app/main.go Skips browser launch when UI isn’t embedded; improves fatal error message for local keyring failures.
cmd/app/browser.go Logs browser-launch failures instead of panicking.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +6 to +9
ALTER TABLE devices ADD COLUMN IF NOT EXISTS mebxpassword TEXT;
ALTER TABLE devices ADD COLUMN IF NOT EXISTS mpspassword TEXT;

ALTER TABLE ciraconfigs ADD COLUMN generate_random_password TEXT; No newline at end of file
ALTER TABLE ciraconfigs ADD COLUMN IF NOT EXISTS generate_random_password TEXT; No newline at end of file
**********************************************************************/

ALTER TABLE profiles ADD COLUMN uefi_wifi_sync_enabled BOOLEAN NOT NULL DEFAULT FALSE; No newline at end of file
ALTER TABLE profiles ADD COLUMN IF NOT EXISTS uefi_wifi_sync_enabled BOOLEAN NOT NULL DEFAULT FALSE; No newline at end of file
@RosieAMT
Copy link
Copy Markdown

RosieAMT commented May 5, 2026

🎉 This PR is included in version 1.24.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@rsdmike rsdmike linked an issue May 5, 2026 that may be closed by this pull request
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide K8S Charts for Console Cloud Deployment

4 participants