Bug: Google doc issue with deleted citatitions
When you delete a citation in the document, visible text
goes away, reference is the deleted from the bibliogrpahy list, but a copy of that reference including name and DOI stays hidden in the document and never goes away.
I've run into this issue by adding a paper that had a comment on pubpeer and triggered my other extension - PubPeer that shows papers that has comment on pubpeer in browser.
When I deleted the citatition and pressed refresh, the banner "This article has comments on pubpeer" never went away even though it was not present in the document or bibliography anymore
It seems like the deleted citation is still present inside source code without being visible in references/text.
I've managed to fix this behaviour using LLM, and it seems that the problem lies in the fact that documents.get() API call never returns those deleted citations because they are not present in the text. LLM created a workaround around API so I guess it's not a good solution and should probably be fixed upstream rather than in this extenstion. Not sure what your stance on code created by LLM is but if you want I can create a PR/post proposed changes for you to review them (+60 lines)
goes away, reference is the deleted from the bibliogrpahy list, but a copy of that reference including name and DOI stays hidden in the document and never goes away.
I've run into this issue by adding a paper that had a comment on pubpeer and triggered my other extension - PubPeer that shows papers that has comment on pubpeer in browser.
When I deleted the citatition and pressed refresh, the banner "This article has comments on pubpeer" never went away even though it was not present in the document or bibliography anymore
It seems like the deleted citation is still present inside source code without being visible in references/text.
I've managed to fix this behaviour using LLM, and it seems that the problem lies in the fact that documents.get() API call never returns those deleted citations because they are not present in the text. LLM created a workaround around API so I guess it's not a good solution and should probably be fixed upstream rather than in this extenstion. Not sure what your stance on code created by LLM is but if you want I can create a PR/post proposed changes for you to review them (+60 lines)
Upgrade Storage
That is exactly what is not happening. It stayed there after I reloaded cache, switched browser , entered incognito mode and switched to another OS.
I've attached screenshots. On the first one the reference is present and triggers the correct response. On the second one it is absent (and bibliography is deleted) but it still trigers the response which shoudn't happen. On the third one I highlighted source code that lies within Google Doc Zotero Integration extenstion and it still hold the citation metadata (including pubmed id that triggers other extenstion response) about the deleted citation which is not correct behaviour?
https://s3.amazonaws.com/zotero.org/images/forums/u11470510/cepp3qmqeaq9t1cqvtfz.png
https://s3.amazonaws.com/zotero.org/images/forums/u11470510/gilpgby2a1s6dpabn098.png
https://s3.amazonaws.com/zotero.org/images/forums/u11470510/u7psv80ti5igk7huflxv.png