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

Store User information in CoreData #423

Merged
merged 4 commits into from
Jan 9, 2024
Merged

Store User information in CoreData #423

merged 4 commits into from
Jan 9, 2024

Conversation

theospears
Copy link
Collaborator

This introduces usage of CoreData, and in particular starts to use it to store user information. For now, the information is also stored in preferences to allow undoing the change if needed. This is an experimental initial change, to evaulate also using CoreData for Goal and Datapoint information. This should eventually allow simpler data syncing between the main app and different extensions.

Testing:
Loaded the app and checked login state is persisted
Checked it is possible to log out and in
Check setting default alert start works

@theospears
Copy link
Collaborator Author

theospears commented Dec 30, 2023

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

@theospears theospears marked this pull request as ready for review January 2, 2024 05:04
@theospears theospears force-pushed the user-as-core-data branch 2 times, most recently from fe88c19 to b0ced8d Compare January 8, 2024 03:22
@theospears theospears changed the base branch from master to launch-test-update January 8, 2024 03:22
Add user attributes

null safe explicit implementation

Update User object when user logs in and out

Minimal working version

Read values from CoreData

Store the persistent container in a shared location

Fix tests
@theospears theospears changed the base branch from launch-test-update to master January 9, 2024 05:02
@theospears theospears merged commit c69456a into master Jan 9, 2024
2 of 3 checks passed
@theospears theospears deleted the user-as-core-data branch January 9, 2024 05:36
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