-
Notifications
You must be signed in to change notification settings - Fork 40
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
Comments and notes are lost after changing the save location of the document #229
Comments
Hi @cary-rowen Initially Bookworm used the content hash as an identifier, but this was an overkill for large documents, and is not applicable for documents that are loaded incrementally into memory. Nevertheless, your point is valid, and the issue will be fixed as soon as possible. Best |
Hi @mush42 Do you have any new ideas for a solution to this, or would it require too much of a change to implement? Best |
Not long ago, @mush42 provided a solution to this issue in a private chat with me:
However @mush42 you stated in your previous comment that there may be additional performance overhead associated with using file hash. Do you or @pauliyobo have any thoughts to share about this? Thanks |
Hi @pauliyobo I just saw someone asking this question again in the Telegram group:
I noticed you made some changes to bookworm's database and did some in-depth research, would you be willing to fix this? Thanks, |
Hello.
@cary-rowen @mush42 let me know which approach could be better. I'm leaning more toward the second, simply because we'd be using elements we already have. |
@pauliyobo I did use content hashes earlier but I removed it for some reason. The justification for using hashes is that for editable documents such as word and plane text there is no such a thing as the same document. Since we use offsets they'll be invalid the moment the user edits the document. Content hashes can guard against this. |
@mush42 |
Even with the current solution (using document position), we are not able to properly handle annotations. If the annotated range of the editable document is updated, the offset may not change. Although the annotations exist, they may Already context-free |
Describe the Problem
If the user changes the save location of the document, they will not be able to view comments and notes previously saved for this document.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Users can still view saved comments and annotations despite changing the save location.
If the problem is related to a file, indicate the file you have opened
None
Desktop (please complete the following information):
Additional context
Can a document URI be an MD5 checksum?
@mush42
The text was updated successfully, but these errors were encountered: