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

Auto Scout – Phase 0 #242

Closed
SUPERCILEX opened this issue Jul 28, 2018 · 0 comments
Closed

Auto Scout – Phase 0 #242

SUPERCILEX opened this issue Jul 28, 2018 · 0 comments
Labels
enhancement Minor feature or request feature:auto-scout Involves Auto Scout feature:database Involves the database refactor Requires significant changes that don't add new features or fix bugs
Milestone

Comments

@SUPERCILEX
Copy link
Owner

SUPERCILEX commented Jul 28, 2018

This phase prepares a local user cache to circumvent the need for reading and writing to the DB on app startup.

Implementation

File(context.cacheDir, "db/$name")

Use Gson to serialize the user into db/user.json. If the file doesn't exist or the deserialized object isn't the same as the one generated from the auth listener, write to the DB and the file. This should also fix possible race conditions where an offline device writes outdated information to the DB.

Nuke the db dir on sign-out.

@SUPERCILEX SUPERCILEX added enhancement Minor feature or request refactor Requires significant changes that don't add new features or fix bugs feature:database Involves the database feature:auto-scout Involves Auto Scout labels Jul 28, 2018
@SUPERCILEX SUPERCILEX added this to the 3.0.0 milestone Jul 28, 2018
SUPERCILEX added a commit that referenced this issue Aug 2, 2018
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
SUPERCILEX added a commit that referenced this issue Aug 2, 2018
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
SUPERCILEX added a commit that referenced this issue Aug 2, 2018
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
SUPERCILEX added a commit that referenced this issue Aug 2, 2018
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Minor feature or request feature:auto-scout Involves Auto Scout feature:database Involves the database refactor Requires significant changes that don't add new features or fix bugs
Projects
None yet
Development

No branches or pull requests

1 participant