-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Add "Accept external changes" button for "The library has been modified by another program" #8235
Comments
I will first fix #4877 then we can come back to here. Assume the "Review changes" functionality would work (which is our aim). Then the button "Reload from disk" would assume that the user blindly trusts the content on disk and his own changes will be overwritten? I think, the issue is that the change detection is not working well. This can cause risk that "Reload from disk" destroys in-memory data - in the use case of a shared .bib file (e.g., dropbox, onedrive, ...) This strongly refs #5669 |
Sometimes the user does trust the content on disk, and does so for a good reason. For example, that happens when the user was working on a different computer and has put a new version to the disk using FTP, Git, E-Mail or something else. Sure, there are other cases when pressing such a button would be a bad idea, which is a good reason for having three buttons and not one. But, of course, such a button would be less important, if the changes of files are going to be detected correctly. |
I would like to suggest to point out in the choices which one will dismiss the changes one had done in Jabref and which one will dismiss the one changes according to the changed file. |
Hi, I am a junior student and now I am learning software engineering. I have read your development documentation https://devdocs.jabref.org/contributing. |
@NYH-Dolphin I am working on the underlying issue (as written at #8235 (comment)). This issue is about the UI. The issue is about having three buttons when a change on the disk occurred:
The main challenge will be the localization. - Jsut go ahead! |
Is it possible to make [accept external changes] automatic? |
What would be the use case? I fear that "silently" accepting external changes and always overwriting local changes is not that good, is it? - Maybe, there is never the case there is data in the entry editor, but I would like to be really sure... |
Actually, I think there are 4 options:
|
This issue should have become less important overall, as
|
State of today: "Accept changes" is not available: I think, it is because we wanted the user to check the external changes and not just overwrite any changes the user did during editing. @claell @mpatas May I ask how often you run into this? I would have pressed "Dismiss changes" and immediately closed the library (and reopened it again) to have the same effect. -- I think, your use case is that you are using |
When message "The library has been modified by another program" is shown (both when the BibTeX file has been modified by another program and when JabRef itself saves it and bug #4810 or #4877 comes into play), it comes with two buttons (as seen in descriptions of #4810 or #4877):
However, there are three possibilities:
The first option seems to be covered by "Dismiss changes", the third option is covered by "Review changes", but it looks like nothing covers the second option (other than closing the program and running it again, which seems to be suboptimal).
So, perhaps adding a third button (let's say, "Reload from disk") to the message "The library has been modified by another program" would be a good idea?
The text was updated successfully, but these errors were encountered: