Skip to content

Release Notes shows failure when a newer release exists #524

@jschick04

Description

@jschick04

Summary

Release Notes (Help menu) only succeeds when the most recent Check for Updates confirmed the running version is the latest applicable release. Any other state shows Release Notes Failure, including the common case of being a version or two behind.

Repro

  1. Run a version older than the latest published release on the configured channel (or open a fresh install before the auto check completes).
  2. Help → Release Notes.

Expected

The release notes for the currently running version are shown.

Actual

Release Notes Failure modal: "Failed to get release notes for the current version".

Why

UpdateService.CheckForUpdates only assigns _currentRawChanges inside the loop branch that runs when the iterated release version equals versionProvider.CurrentVersion. If a newer release is encountered first, the loop sets latest = release; break; before reaching the assignment, so _currentRawChanges stays null. GetReleaseNotes() then fails the null/whitespace guard and shows the failure modal.

src/EventLogExpert.UI/Update/UpdateService.cs lines 65-95 (loop), 164-179 (GetReleaseNotes).

Suggested fix

Decouple "find newest applicable release" from "find raw changes for the running version". Always locate the release whose version matches versionProvider.CurrentVersion (independent of newer releases existing) and cache its RawChanges. Fall through to the failure path only when no release matches the running version (e.g. dev/sideload builds without a corresponding GitHub release).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions