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

Prevent session data deletions #124

Merged

Conversation

themakshter
Copy link
Member

@themakshter themakshter commented Jul 18, 2020

We stored our session data in an internal app directory. This meant that upon app deletion, all data in this directory was also removed, causing us to lose precious session data. To prevent this, we now store the session data in an external storage directory, provided we have been granted access to external storage. This change adds new utils to be able to do that as well as ensure consistency in the timestamped files such that all files will have names with the same timestamp, to allow for co-relation of the same session.

The app logs have not been moved in the external storage directory for now as they are more specific to the running of the app and it requires adding a wrapper around the existing log library to handle our outstanding promises for app directory creation. As that is not too urgent, it has been left for the future.

Close #119

@themakshter themakshter self-assigned this Jul 18, 2020
@themakshter themakshter added the enhancement New feature or request label Jul 18, 2020
@themakshter themakshter merged commit a523328 into OpenVentPk:master Jul 18, 2020
@themakshter themakshter deleted the prevent-session-data-deletions branch July 18, 2020 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prevent session file deletions on app delete
1 participant