-
-
Notifications
You must be signed in to change notification settings - Fork 137
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 note list on opening the app #406
Comments
When opening the app, synchronization is started, already. However, it is possible that you opened the note before synchronization has finished. This would explain the observed behavior. Please see also #161 for a discussion about this problem. |
Yeah, I saw that thread but was thinking it might be a bit different since it’s not really about concurrent editing. Sure – once I open the issue I entered the death trap of concurrency, but the point is that in this case (where I only use one device at a time) we could prevent that from happening. So I consider resolving concurrent edits, and this here, different issues. But yeah, very related. |
"Concurrency" doesn't mean that the things happen in parallel. From the computer science perspective, this is clearly a problem of concurrency -- and we have to address this issue (as stated in #161). However, I don't understand, what's the difference to #161, that you see. Can you explain this in more detail, please? A possible patch before implementing the "big" solution (see nextcloud/notes#56) would be to notify the Do you have any other ideas? |
Ah ok, thanks for the clarification. The improvement you suggest seems good. Another very simple enhancement would be that when you open the app and the initial sync is done, show the same feedback spinner as is shown when you pull to refresh. Then people know what's happening. |
I'm fine with this. But IIRC there was a discussion a long time ago, with a contrary statement. What do you think, @stefan-niedermann ? |
I am fine with this change, too. Phew, do you know the issue where this discussion happened? I can not remember the reasons why we decided to hide it. I can not see a valid reason against it, so yeah :) |
No, couldn't find it. Therefore, I implemented this one (see #410):
Interesting: with this change, I found out, that the app indeed doesn't always sync on start! On my phone, auto-sync on start works perfectly. But on the emulator, it doesn't! Sorry that I didn't believed you, @jancborchardt ! Now, we have to find out, why auto-sync doesn't work always ... (but for today, I'm out ...) |
@korelstar all good :D thank you so much for the fix! |
This comment has been minimized.
This comment has been minimized.
Closing this, because:
|
I just had the case where I edited a lot of stuff in a note on the computer (via a text editor, syncing through the desktop client). Then I turned the computer off – it was synced, as I had been working for an hour and saving always – and went elsewhere.
I had more thoughts on the matter, opened the Notes app on my phone and opened the note, which was on the top of the list. To my horror the changes were not there, it was a much earlier version of the file.
(So I went back to the laptop where I’m writing this issue. ;)
It seems like on opening the app, the note list should be updated. Seamlessly so it doesn’t show an empty list, just updating in case something new came in. cc @stefan-niedermann @korelstar
The text was updated successfully, but these errors were encountered: