-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
refactor: migrate account setting key with migration logic #10254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… "auto_select_folder"
…y renaming from "account_setup_auto_expand_folder" to "auto_select_folder"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is already a migration mechanism for the app preferences. It could be found in the :legacy:storage module. I added a documentation on how to do this: #10326
…expand_folder to auto_select_folder
…folder to auto_select_folder in StorageMigrationTo29Test
wmontwe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Description
This PR migrates an existing account setting preference key to a new name and ensures a smooth transition for existing users by adding migration logic. This prevents loss of user preferences when the key name changes.
Changes
StorageMigrationTo29to automatically migrate values from the old key to the new key for existing users.