-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Data is lost after leaving the app open for a long time #81
Comments
Hey! Sorry to hear that, this is really strange. I'll take a closer look at it later today. To get this right, you are logged in with your data, come back later and you are still logged in and all data is gone? Or are you logged out and all data is gone? Because the latter is expected behaviour as you were inactive and the session may be expired. After logging back in all data should be there as you left it - but that's not the case? That the demo data is displayed is also very, very strange as it's only done if you, well, click the button in the menu. Are you sure the app loaded the demo data? And did this happen while you were logged in? There's only one case where the demo data is loaded if you're not logged in, and that is when you open Should be fairly simple to reproduce later by using a very short-lived session and waiting. |
I am monitoring and will try to take some screenshots (was rushing earlier to recover situation) |
@slfhstr okay, I just had time to check a few things:
So far no luck reproducing your scenario :/ What would help me would be a step-by-step description of what you are doing like I did in 3. but with timing information, maybe even using the latest version will solve this. Also, Apple is really against all this PWA stuff, switching to Chrome or Firefox would definitely help - although I'm not doing any crazy stuff, but I personally avoid using Safari at all because of stuff like that (not saying that this app doesn't support it, just that there's so much "hidden" stuff apple is doing that I don't want to spend time researching it) 😅 |
I've found a bug and checked that ...
Description
I have had a few occasions when data entered "disappears" meaning that all income and expenses entered is lost and the default 'demo' list of groups and line items are displayed (with zero values).
First time it happened, I thought oh well, maybe I was mistaken and it's been a while since using the system, maybe the container was brought down.
Fortunately I had an export of data in json and reloaded.
Then happened couple of times more, and just happened again with definitely no changes to the VPS where it is hosted.
Was working on data yesterday, left the browser window open, this morning all data gone and default empty groups and line items displayed.
Regular enough occurrence now that it should be considered a bug.
It's almost as if
Load demo data
got called, but demo data has some line items with values, whereas the behaviour I have seen loads blank data.Is it related to a timeout when user is logged out although browser window is left open ? Maybe.
But logging back in should restore the data, and this does not happen (for me)
Environment
NAMES STATUS IMAGE CONTAINER ID PORTS ocular-nginx Up 4 minutes nginx:1.26-alpine db9f27c86835 0.0.0.0:3030->80/tcp, [::]:3030->80/tcp ocular-backend Up 4 minutes (healthy) ghcr.io/simonwep/genesis:v1.4.0 e0986f858b6c ocular-frontend Up 4 minutes (healthy) ghcr.io/simonwep/ocular:v1.7.0 5ab659523935 80/tcp
Expected behaviour
Data should persist
Steps to reproduce
Open app
Enter data
leave browser window open for some time
Additional info
Would be cool if data could be auto-saved
Browser / OS constraints probably mean this cannot be saved to local file, but maybe some 'data snapshot' could be saved to the server as additional safeguard (user may not explicitly export as json after data changes).
I guess this last bit counts a feature request, but the core problem is a bug.
The text was updated successfully, but these errors were encountered: