Skip to content

winVersion: Deprecate Windows 7/8 constants#15669

Merged
seanbudd merged 7 commits intonvaccess:masterfrom
josephsl:i15647deprecateWIN7WIN8Consts
Oct 23, 2023
Merged

winVersion: Deprecate Windows 7/8 constants#15669
seanbudd merged 7 commits intonvaccess:masterfrom
josephsl:i15647deprecateWIN7WIN8Consts

Conversation

@josephsl
Copy link
Copy Markdown
Contributor

Link to issue number:

Closes #15647

Summary of the issue:

Deprecate Windows 7/8 constants and change release name fetcher process.

Description of user facing changes

None

Description of development approach

Edit winVersion module:

  • Deprecate winVersion.WIN7/WIN7_SP1/WIN8 constants, replaced with getattr deprecation method.
  • Remove 6.1/6.2 checks from release name fetcher - only deal with Windows 8.1 and later.
  • For deprecated constants, provide release name field in getattr function.

Testing strategy:

Manual testing and code coverage: the deprecated constants are removed from NVDA Core (try using Grep or similar tools) and documented in what's new document.

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.

Deprecate winVersion.WIN7/WIN_SP1/WIN8 constants.
…s, replaced by defining it in getattr. Re nvaccess#15647.

Only deal with 6.3 (Windows 8.1) and 10.0 (10/11) when fetching release name. As a replacement, provide release name field for deprecated Widnows release constants.
@josephsl josephsl requested a review from a team as a code owner October 23, 2023 02:38
- ``easeOfAccess.canConfigTerminateOnDesktopSwitch`` has been deprecated, as it became obsolete since Windows 7 is no longer supported. (#15644, @LeonarddeR)
- ``winVersion.isFullScreenMagnificationAvailable`` has been deprecated - use ``visionEnhancementProviders.screenCurtain.ScreenCurtainProvider.canStart`` instead. (#15664, @josephsl)
- The following Windows release constants has been deprecated from winVersion module (#15647, @josephsl):
- winVersion.WIN7
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.

Please add code formatting for these

Suggested change
- winVersion.WIN7
- ``winVersion.WIN7``

Copy link
Copy Markdown
Member

@seanbudd seanbudd left a comment

Choose a reason for hiding this comment

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

Thanks @josephsl

@seanbudd seanbudd merged commit a207ad5 into nvaccess:master Oct 23, 2023
@nvaccessAuto nvaccessAuto added this to the 2024.1 milestone Oct 23, 2023
@josephsl josephsl deleted the i15647deprecateWIN7WIN8Consts branch October 23, 2023 11:30
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.

Windows version constants (API notice): deprecate Windows 7 SP1 and Windows 8 constants

3 participants