Skip to content
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

Create journal files and the actual notes #11

Closed
hakaishi opened this issue May 9, 2012 · 4 comments
Closed

Create journal files and the actual notes #11

hakaishi opened this issue May 9, 2012 · 4 comments

Comments

@hakaishi
Copy link
Owner

hakaishi commented May 9, 2012

If a note was modified (on runtime), check if the journal file is newer than the note (when the note-editor starts up), if so, let the user decide which version she/he wants to keep.

If there is a journal file but no note, then create the note from it.

If there is a journal file with a newer modification date than the note, ask the user which one she/he wants to keep.

@hakaishi
Copy link
Owner Author

Half done...

@nebomuk
Copy link
Collaborator

nebomuk commented May 10, 2012

this must also check on modifications on the journal from outside nobleNote if a note has been opened by nobleNote but not yet edited

edit: invalid request, already covered by case 3

@hakaishi
Copy link
Owner Author

If it was opend but not edited, then the modification time for both files should be about the same. So we can simply check if the modification time is the same. That should work, shouldn't it?

@nebomuk
Copy link
Collaborator

nebomuk commented May 10, 2012

what if the journal has been written and nobleNote has been force closed/pc standby/crashed. The sync software would transfer the journal and case 3 would apply: "If there is a journal file with a newer modification date than the note, ask the user which one she/he wants to keep."

@nebomuk nebomuk closed this as completed May 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants