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

Server errors can cause desync of cached data #44

Open
lost1227 opened this issue Apr 12, 2023 · 0 comments
Open

Server errors can cause desync of cached data #44

lost1227 opened this issue Apr 12, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@lost1227
Copy link
Member

When the server reports an error, we open the error screen and display the error to the user. However, we should also either invalidate all cached data, or just force a reload of the page, since the error may have created a desync and invalidated the cache.

For example, if an attempt to check a student in fails on the server side, the client could still assume it succeeded and erroneously update the student's last_check_in. If the server reports an error, we should either invalidate the cache or just reload the whole page.

@lost1227 lost1227 added the bug Something isn't working label Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant