Skip to content

Conversation

dz0ny
Copy link
Member

@dz0ny dz0ny commented Jul 2, 2025

Only fails if the latest stable release is older than 10 days AND the current version doesn't match

ref: https://github.com/teamniteo/pareto/issues/734

Copy link

github-actions bot commented Jul 2, 2025

You can find the built app under the Artifacts at https://github.com/ParetoSecurity/pareto-mac/actions/runs/16030155927

@dz0ny dz0ny requested a review from Copilot July 2, 2025 12:28
Copy link
Contributor

@Copilot 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 refines the application update check to properly filter beta releases, handle cases with no available releases, and only fail the update check if the latest release is more than 10 days old and the app version does not match.

  • Inverts and clarifies the showBeta filter logic with explicit logging.
  • Adds guards for no available releases and date parsing failures.
  • Introduces a 10-day grace period, strips pre-release suffixes, and compares the app’s version against the latest release.
Comments suppressed due to low confidence (1)

Pareto/Checks/Application Updates/ParetoUpdated.swift:103

  • This new conditional logic introduces a grace period and pre-release suffix stripping but there are no corresponding unit tests; consider adding tests to cover both branches (older and within 10-day releases).
                    if publishedDate < tenDaysAgo {

@dz0ny dz0ny merged commit 6cd4dbc into main Jul 2, 2025
5 checks passed
@dz0ny dz0ny deleted the fix/relse-tracking branch July 2, 2025 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants