Skip to content

v1.65.0-beta.1

Pre-release
Pre-release

Choose a tag to compare

@Starosdev Starosdev released this 20 Jun 00:52

v1.65.0-beta.1 (2026-06-20)

Code Improvements

  • Simplified Smart Measurement Functions (#616) - Closes #N

    • Improved readability and maintainability of smart measurement functions.
    • All flagged functions now meet the complexity limit.
  • Simplified Collector Command Functions (#617) - Closes #N

    • Enhanced clarity in collector command entrypoints.
    • All functions now meet the complexity limit.
    • | Command | Before | After |
    • |---------|--------|-------|
    • | collector-performance | 47 | ≤15 |
    • | collector-filesystem | 45 | ≤15 |
    • | collector-btrfs | 45 | ≤15 |
    • | collector-zfs | 17 | ≤15 |
    • | collector-mdadm | 17 | ≤15 |
  • Simplified Notification Functions (#618) - Closes #N

    • Improved clarity in notification sending functions.
    • All flagged functions now meet the complexity limit.
    • | Function | File | Before | After |
    • |----------|------|--------|-------|
    • | ShouldNotify | notify.go | 58 | ≤15 |
    • | SendShoutrrrNotification | notify.go | 19 | ≤15 |
    • | SendSMTPNotification | smtp_sender.go | 30 | ≤15 |
    • | sendSMTPRecipient | smtp_sender.go | 16 | ≤15 |
    • | maskAppriseURL | mask.go | 24 | ≤15 |
    • | mockSMTPServer.serve | notify_test.go | 17 | ≤15 |
  • Simplified Device Detection Functions (#619) - Closes #N

    • Enhanced clarity in device detection code.
    • All flagged functions now meet the complexity limit.
    • | Function | File | Before | After |
    • |----------|------|--------|-------|
    • | TransformDetectedDevices | detect/detect.go | 38 | ≤15 |
    • | btrfs parseScrubStatus | btrfs/detect.go | 25 | ≤15 |
    • | zfs parseScrubStatus | zfs/detect/detect.go | 21 | ≤15 |
    • | getArrayDetail | mdadm/detect/detect.go | 20 | ≤15 |
    • | findMissingDevices | detect/devices_darwin.go | 19 | ≤15 |
    • | getMountUsage | mdadm/detect/mount_linux.go | 19 | ≤15 |
  • Simplified Frontend Component Functions (#620) - Closes #N

    • Improved clarity in frontend component functions.
    • All flagged functions now meet the complexity limit.
    • | Function | File | Before | After |
    • |----------|------|--------|-------|
    • | buildAppriseUrl | dashboard-settings.component.ts | 24 | <15 |
    • | set range | @treo/date-range.component.ts | 22 | <15 |
    • | _generateSmartAttributeTableDataSource | detail.component.ts | 21 | <15 |
  • Simplified Repository Functions (#621) - Closes #N

    • Enhanced clarity in database repository functions.
    • All flagged functions now meet the complexity limit.
    • | Function | File | Before |
    • |----------|------|--------|
    • | GetSummary | scrutiny_repository.go | 56 |
    • | EnsureTasks | scrutiny_repository_tasks.go | 30 |
    • | computeEndurance | scrutiny_repository_workload.go | 26 |
    • | GetSmartTemperatureHistory | scrutiny_repository_temperature.go | 24 |
    • | newScrutinyRepository | scrutiny_repository.go | 19 |
    • | GetDevicesLastSeenTimes | scrutiny_repository.go | 19 |
    • | reconcileLegacyDeviceIdentity | scrutiny_repository_device.go | 17 |
    • | GetWorkloadInsights | scrutiny_repository_workload.go | 17 |
    • | summaryRiskScore | summary_risk.go | 16 |
    • | EnsureBuckets | scrutiny_repository.go | 16 |
    • All now ≤15.
  • Simplified Measurement Model Functions (#622) - Closes #N

    • Improved clarity in measurement models and threshold parsing.
    • All flagged functions now meet the complexity limit.
    • | Function | File | Before |
    • |----------|------|--------|
    • | NewBtrfsMetricsFromInfluxDB | measurements/btrfs_metrics.go | 34 |
    • | NewPerformanceFromInfluxDB | measurements/performance.go | 32 |
    • | ValidateThreshold | measurements/smart_ata_attribute.go | 27 |
    • | parseConsumerDriveProfiles | thresholds/consumer_drive_profiles.go | 23 |
    • | NewMDADMMetricsFromInfluxDB | measurements/mdadm_metrics.go | 18 |
  • Simplified Middleware and Monitor Functions (#623) - Closes #N

    • Enhanced clarity in middleware and background monitor functions.
    • All flagged functions now meet the complexity limit.
    • | Function | File | Before |
    • |----------|------|--------|
    • | AuthMiddleware | middleware/auth.go | 25 |
    • | GetStatus | missed_ping_monitor.go | 21 |
    • | checkAndSendHeartbeat | heartbeat_monitor.go | 19 |
    • | LoggerMiddleware | middleware/logger.go | 17 |
  • Simplified Migration Runner Functions (#624) - Closes #N

    • Reduced complexity in the database migration runner.
    • The two highest-complexity functions now meet the complexity limit.
    • | Function | Before | After |
    • |----------|--------|-------|
    • | Migrate | 166 | ≤15 |
    • | m20201107210306_From...SmartResults... | 17 | ≤15 |