Skip to content

Remove usages of deprecated characterProcessing.SYMLVL_ constants and controlTypes helper functions#12836

Merged
seanbudd merged 2 commits into
masterfrom
remove-deprecations
Sep 13, 2021
Merged

Remove usages of deprecated characterProcessing.SYMLVL_ constants and controlTypes helper functions#12836
seanbudd merged 2 commits into
masterfrom
remove-deprecations

Conversation

@seanbudd

@seanbudd seanbudd commented Sep 13, 2021

Copy link
Copy Markdown
Member

Link to issue number:

Closes #12549

Summary of the issue:

characterProcessing.SYMLVL_* constants should be replaced using their equivalent SymbolLevel.* before 2022.1.
Unit testing for controlTypes helper functions needed updating for soon to be removed processNegativeStates and processPositiveStates .

Description of how this pull request fixes the issue:

Update the usages of these constants and helper functions

Testing strategy:

Search the repo for 2022 usages and noted deprecations in changes for developers.
Ensure all code deprecated for removal in 2022.1 is not used in the codebase.

It seems like all deprecated code is removed from NVDA after this PR.
When we implement the removals we will still need to check that new usages haven't been introduced.

Known issues with pull request:

None

Change log entries:

N/A

Code Review Checklist:

  • Pull Request description is up to date.
  • Unit tests.
  • System (end to end) tests.
  • Manual testing.
  • API is compatible with existing addons.
  • User Documentation.
  • Change log entry.
  • Context sensitive help for GUI changes.
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers

@seanbudd seanbudd requested a review from a team as a code owner September 13, 2021 03:04
import controlTypes
import versionInfo
from . import PlaceholderNVDAObject
from controlTypes.processAndLabelStates import _processNegativeStates, _processPositiveStates

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.

As much as this change is probably harmless, I don't see how it relates to the rest of the pr...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is a remaining deprecation that needed to be be performed. It was a bit verbose to add to the title and could be handled by a separate PR - it's justified in the PR description.

@seanbudd seanbudd changed the title Remove usages of deprecated characterProcessing.SYMLVL_ constants Remove usages of deprecated characterProcessing.SYMLVL_ constants and controlTypes helper functions Sep 13, 2021
@seanbudd seanbudd merged commit 48f5022 into master Sep 13, 2021
@seanbudd seanbudd deleted the remove-deprecations branch September 13, 2021 05:11
@nvaccessAuto nvaccessAuto added this to the 2021.3 milestone Sep 13, 2021
seanbudd pushed a commit that referenced this pull request Jul 29, 2024
Related to #12649, #12712, #12836

Summary of the issue:
The mentioned prs performed a large refactor with constant changes

Description of user facing changes
None known

Description of development approach
Add the mentioned PRs to .git-blame-ignore-revs to ensure a properly configured git blame will ignore these changes, revealing the history of the underlying code.
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.

Remove internal usage of deprecated controlTypes constants

3 participants