Skip to content

Conversation

@shamim-emon
Copy link
Collaborator

@shamim-emon shamim-emon commented Dec 11, 2025

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

  • Preference Key Rename
    • Old key: "account_setup_auto_expand_folder"
    • New key: "auto_select_folder"
  • Migration Implementation
    • Added the migration in StorageMigrationTo29 to automatically migrate values from the old key to the new key for existing users.
  • Test
    • Added unit test to verify the migration logic works correctly.

@shamim-emon shamim-emon requested a review from a team as a code owner December 11, 2025 22:50
@shamim-emon shamim-emon changed the title Account Setting Key Migration Migrate Account Setting Key with Migration Logic Dec 11, 2025
@wmontwe wmontwe requested review from wmontwe and removed request for rafaeltonholo December 17, 2025 16:47
@wmontwe wmontwe assigned wmontwe and unassigned rafaeltonholo Dec 17, 2025
@wmontwe wmontwe changed the title Migrate Account Setting Key with Migration Logic refactor: migrate account setting key with migration logic Dec 17, 2025
Copy link
Member

@wmontwe wmontwe left a 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

…folder to auto_select_folder in StorageMigrationTo29Test
@shamim-emon shamim-emon requested a review from wmontwe January 7, 2026 20:03
@shamim-emon shamim-emon changed the title refactor: migrate account setting key with migration logic Migrate account setting key with migration logic Jan 7, 2026
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.

Account Setting Key Migration

3 participants