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

Update freshness based on user last updated #636

Merged
merged 4 commits into from
Feb 24, 2025
Merged

Conversation

theospears
Copy link
Collaborator

@theospears theospears commented Feb 24, 2025

Summary

We were fetching the last updated time for goals from a variable only stored in memory. This meant when launching the app it would show as 2024 years ago. Now we always update user every time we update goals, instead fetch the version we keep persisted on the user object.

We also replace all usages of refreshUser with refreshGoals so the two are always in sync.

Validation

Hard quit the app. Launched and observed an appropriate value from a few seconds ago.

Copy link
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@theospears theospears changed the title Use last update time from user Update freshness based on user last updated Feb 24, 2025
@theospears theospears marked this pull request as ready for review February 24, 2025 01:40
@theospears theospears requested a review from a team as a code owner February 24, 2025 01:40
@theospears theospears merged commit 6796099 into master Feb 24, 2025
6 checks passed
@theospears theospears deleted the startup-last-updated branch February 24, 2025 02:13
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