Skip to content

Fix issue with saving config and FeatureFlags#15074

Merged
seanbudd merged 5 commits into
masterfrom
fix-14760
Jul 3, 2023
Merged

Fix issue with saving config and FeatureFlags#15074
seanbudd merged 5 commits into
masterfrom
fix-14760

Conversation

@seanbudd

@seanbudd seanbudd commented Jun 29, 2023

Copy link
Copy Markdown
Member

Link to issue number:

Fixes #14760
Fixup of #14133

Summary of the issue:

When saving a config spec, validation would be skipped if the string value of the data is unchanged.

This caused various issues including config values not being correctly converted to numbers from strings when validating.
This caused config profiles to fail to load or save correctly.

Description of user facing changes

Fix up of various bugs related to user config

Description of development approach

Perform special handling that was introduced in #14133 for feature flags only

Testing strategy:

Test STR outlined in #14760 (comment)

Known issues with pull request:

None

Change log entries:

Bug fixes

- Fix bug related to saving and loading the NVDA config, including switching synthesizers. (#14760)

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
  • Security precautions taken.

@seanbudd seanbudd requested a review from a team as a code owner June 29, 2023 04:42
@seanbudd seanbudd requested a review from michaelDCurran June 29, 2023 04:42
@AppVeyorBot

Copy link
Copy Markdown

See test results for failed build of commit 23a5c5766b

@seanbudd seanbudd merged commit f6ee244 into master Jul 3, 2023
@seanbudd seanbudd deleted the fix-14760 branch July 3, 2023 02:54
@nvaccessAuto nvaccessAuto added this to the 2023.2 milestone Jul 3, 2023
seanbudd pushed a commit that referenced this pull request Sep 17, 2024
)

Fixes #17157
Fixup of #14133
Partially reverts #15074

Summary of the issue:
When saving configuration profiles, unchanged values are yet saved to a profile.

Description of user facing changes
Configuration profiles should become less polluted after this change.

Description of development approach
Restored the behavior of #14133, mostly reverting #15074. There was namely a False assumption in #15074.
@seanbudd wrote:

This caused various issues including config values not being correctly converted to numbers from strings when validating.

In fact, the validation was not the problem here. Instead, when __getitem__ was called with checkValidity set to False, the unvalidated value was yet saved in the cache. Therefore subsequent calls of __getitem__ would always return the unvalidated cached value that would always be of the string type.
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.

error when switching to another synthesizer when the change was previously made in a profile

4 participants