Skip to content

Restore explicit value definitions for control types states and roles#13603

Merged
feerrenrut merged 5 commits into
betafrom
controlTypesValues
Apr 14, 2022
Merged

Restore explicit value definitions for control types states and roles#13603
feerrenrut merged 5 commits into
betafrom
controlTypesValues

Conversation

@feerrenrut
Copy link
Copy Markdown
Contributor

Link to issue number:

None, related to #13588
Based on conversation in https://nvda-addons.groups.io/g/nvda-addons/topic/90329930

Summary of the issue:

Some add-ons depend on the legacy values of controlTypes.Roles (and possibly controlTypes.States)
These were removed in commit d4586a5 via PR #13414.

Description of how this pull request fixes the issue:

Restore the values using more developer friendly definitions, use unit tests to ensure values match and can be constructed from and compared with integer values, or constructed from the enum value name.

Testing strategy:

None

Known issues with pull request:

None

Change log entries:

For Developers:
Changes to existing entry, see diff.

Code Review Checklist:

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

@feerrenrut feerrenrut requested a review from a team as a code owner April 12, 2022 06:27
@feerrenrut feerrenrut requested review from seanbudd and removed request for a team April 12, 2022 06:27
michaelDCurran
michaelDCurran previously approved these changes Apr 12, 2022
Base automatically changed from restoreControlTypesAliases to beta April 12, 2022 08:41
Explicit values were replaced with auto defined values in commit d4586a5
however some add-ons still depend on the values used. For now, the
values have been restored.
@AppVeyorBot

This comment was marked as outdated.

Backport the exceptions for labels change from master.
@feerrenrut feerrenrut merged commit 53c7932 into beta Apr 14, 2022
@feerrenrut feerrenrut deleted the controlTypesValues branch April 14, 2022 05:00
@nvaccessAuto nvaccessAuto added this to the 2022.2 milestone Apr 14, 2022
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.

4 participants