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

Account screen: Provide option to clear local database #234

Closed
ryanw-mobile opened this issue Jun 24, 2024 · 0 comments · Fixed by #236
Closed

Account screen: Provide option to clear local database #234

ryanw-mobile opened this issue Jun 24, 2024 · 0 comments · Fixed by #236
Assignees
Labels
feature A new feature for the user, not a new feature for a build script.
Milestone

Comments

@ryanw-mobile
Copy link
Owner

Child ticket of #217

The UX of downloading all half-hourly usage and rates has to be studied - this also affects the usage view.
For now, since we have RoomDB implemented and started storing local data, we should first allow clearing the DB.

This should be done by:

  1. Without clearing credentials, just clear the local DB storage, or
  2. Clear the DB when clearing credentials and return to demo mode,

For accounts having multiple meters, we retain the cache data (as they are linked to meter serial), so that switching between meters won't force everything to be downloaded. -- and that is why we need a separate button to clear the local DB.

@ryanw-mobile ryanw-mobile added the feature A new feature for the user, not a new feature for a build script. label Jun 24, 2024
@ryanw-mobile ryanw-mobile added this to the v1.3.0 milestone Jun 24, 2024
@ryanw-mobile ryanw-mobile self-assigned this Jun 24, 2024
@ryanw-mobile ryanw-mobile linked a pull request Jun 25, 2024 that will close this issue
ryanw-mobile added a commit that referenced this issue Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature for the user, not a new feature for a build script.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant