Skip to content
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

fix(update): Do not uninstall the entire app when updating, add pre_update #5678

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

ltguillaume
Copy link

Description

To prevent user data loss, don't trigger pre_uninstall, post_uninstall and uninstaller when updating (example: Spotify). The pre_update hook will be triggered instead of post_uninstall, so that separate operations before an update can (still) be specified.

Motivation and Context

People will lose their user data with the current handling of updates.
Relates to #5648

How Has This Been Tested?

NO. I do not have the means or the knowledge to properly test this.

Checklist:

  • I have read the Contributing Guide.
  • I have ensured that I am targeting the develop branch.
  • I have updated the documentation accordingly.
  • I have updated the tests accordingly.
  • I have added an entry in the CHANGELOG.

To prevent user data loss, don't trigger `pre_uninstall`, `post_uninstall` and `uninstaller`.
The `pre_update` hook will be triggered instead of `post_uninstall`.
@ltguillaume ltguillaume changed the title fix(install): Do not uninstall the entire app when updating, add pre_update fix(update): Do not uninstall the entire app when updating, add pre_update Oct 6, 2023
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.

1 participant