Skip to content

Only warn about add-on compatibility when updating to an incompatible API#17370

Merged
SaschaCowley merged 2 commits into
masterfrom
i17071
Nov 7, 2024
Merged

Only warn about add-on compatibility when updating to an incompatible API#17370
SaschaCowley merged 2 commits into
masterfrom
i17071

Conversation

@SaschaCowley

Copy link
Copy Markdown
Member

Link to issue number:

Closes #17071

Summary of the issue:

NVDA complains about incompatible updates whenever it is updated with add-ons installed that are incompatible with the updated API version. This is particularly annoying for beta and alpha u8sers.

Description of user facing changes

The add-on incompatibility message is now only presented when updating to a version with an incompatible API to that of the installed copy. That is, when the update will cause addonAPIVersion.BACK_COMPAT_TO[0] to increase.

Description of development approach

Make increasing the add-on API backcompat's year a precondition of showing the warning in updateCheck.py.

Testing strategy:

Created two builds of NVDA, both with their version spoofed to 2024.4, and update version type to alpha.
In the first, set addonAPIVersion.BACK_COMPAT_TO to (2024.1.0), and the other to (2025.1.0).
Installed an add-on that is incompatible with the 2025 API in both copies.
Ensured that updating the first copy caused the add-on incompatibility message to appear, and updating the second copy did not.

Known issues with pull request:

None.

Code Review Checklist:

  • Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

@coderabbitai summary

@SaschaCowley SaschaCowley requested a review from a team as a code owner November 7, 2024 01:05
@SaschaCowley SaschaCowley requested a review from seanbudd November 7, 2024 01:05
@SaschaCowley SaschaCowley linked an issue Nov 7, 2024 that may be closed by this pull request

@seanbudd seanbudd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @SaschaCowley

@SaschaCowley SaschaCowley merged commit 511e722 into master Nov 7, 2024
@SaschaCowley SaschaCowley deleted the i17071 branch November 7, 2024 03:47
@github-actions github-actions Bot added this to the 2025.1 milestone Nov 7, 2024
SaschaCowley added a commit that referenced this pull request Dec 12, 2024
…ng to an incompatible API (#17506)

Closes #17490
Fix up of #17370

Summary of the issue:
NVDA still presents the add-on incompatibility message in some situations when updating to a backwards-compatible add-on API with incompatible add-ons installed.

Description of user facing changes
The add-on incompatibility message should no-longer be presented when updating to a backwards-compatible add-on API.

Description of development approach
Updated the logic in `UpdateAskInstallDialog` to match the new logic in `UpdateResultDialog`, so they both only present the warning when updating to a backwards-incompatible API and incompatible add-ons are installed.

Testing strategy:
Tested from source while spoofing to allow update checks, with version (and addon backcompat) set to 2025.1 and 2024.1 (to simulate both situations).

Known issues with pull request:
None.
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.

NVDA update keeps complaining about disabled incompatible add-ons

2 participants