Skip to content

Add configurable skip level for minor updates - #5113

Merged
Gabriel Dufresne (GabrielDuf) merged 1 commit into
mainfrom
feature/skip-minor-update-level
Jul 16, 2026
Merged

Gabriel Dufresne (GabrielDuf) merged 1 commit into
mainfrom
feature/skip-minor-update-level

Conversation

@GabrielDuf

Copy link
Copy Markdown
Contributor

This pull request introduces a more flexible way to skip minor updates for packages by allowing users to specify which version-number component (minor, patch, or remainder) counts as a "minor" update. This is reflected in both the UI and backend logic, so users can fine-tune update-skipping behavior. The changes also include updates to the interface, serialization, and tests to support this new feature.

Skip minor updates: configurable level

  • UI changes:

    • The install options dialog now lets users choose after which version-number component ("minor", "patch", or "remainder") updates should be ignored, using a new ComboBox and supporting labels (InstallOptionsControl.axaml, InstallOptionsViewModel.cs, lang_en.json).
  • Backend logic:

    • The InstallOptions class now tracks the skip-minor level and provides a default and validation.
    • The IPackage interface and implementations now accept a level parameter for determining if an update is minor, and the logic for this is refactored for clarity and flexibility.
  • Update evaluation:

    • The package loader now respects the configured skip-minor level when deciding whether to skip updates, and logs the skip level for clarity.
  • Tests:

    • A new test verifies that updates are skipped or not according to the configured skip-minor level, ensuring correct behavior.

@GabrielDuf
Gabriel Dufresne (GabrielDuf) merged commit ce4f25c into main Jul 16, 2026
6 checks passed
@GabrielDuf
Gabriel Dufresne (GabrielDuf) deleted the feature/skip-minor-update-level branch July 16, 2026 14:17
@GabrielDuf Gabriel Dufresne (GabrielDuf) linked an issue Jul 16, 2026 that may be closed by this pull request
3 tasks done
martesi added a commit to martesi/UniGetUI that referenced this pull request Sep 20, 2026
Backport the shared skip-level model and update filtering while preserving Classic's version parser extensions.

Upstream-Commit: ce4f25c
Upstream-PR: Devolutions#5113
martesi added a commit to martesi/UniGetUI that referenced this pull request Sep 20, 2026
Add the Classic WinUI selector for choosing how many leading version components remain significant when skipping minor updates.

Upstream-Commit: ce4f25c
Upstream-PR: Devolutions#5113
martesi added a commit to martesi/UniGetUI that referenced this pull request Sep 20, 2026
Adapt the upstream skip-level control to the Classic WinUI install-options dialog.

Upstream-PR: Devolutions#5113
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[IMPROVEMENT] More fine grained setting for skipping minor updates

2 participants