client
client copied to clipboard
Separate cache from user data + migrations
At the moment, we delete everything stored locally when moving from a version to another one. It avoids any incompatibility issue, but it is obviously not ideal from a user standpoint.
An approach to improve this could consist of separating what is stored locally between the cache, and the user data. This is similar, in a simplified way, to the way web browsers work.
When moving from a version to another one, we could delete the cache data, and run migration functions for the user data, if needed.
Instead of only providing a “clear cache” button to the user, we could also have another button saying “:warning: clear user data” (see also https://github.com/aragon/aragon/issues/1115).
In the future, we could also have a way to import / export the entire user data.
Related to:
- https://github.com/aragon/aragon/issues/1258
- https://github.com/aragon/aragon/pull/1138
- https://github.com/aragon/aragon.js/issues/400
I can take this one