Skip to content

Store User information in CoreData#423

Merged
theospears merged 4 commits intomasterfrom
user-as-core-data
Jan 9, 2024
Merged

Store User information in CoreData#423
theospears merged 4 commits intomasterfrom
user-as-core-data

Conversation

@theospears
Copy link
Copy Markdown
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
Copy Markdown
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
@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