Knotes and kontact not syncing #16

Aperto
aperto 5 anni fa da MicheleC · 4 commenti
MicheleC 5 anni fa ha commentato
Proprietario

Basic information

  • TDE version: R14.1.0
  • Distribution: debian buster
  • Hardware: amd64

Description

knotes and kontact do not sync changes with each other. This leads to loss of information when editing notes in both environment at the same time.

Steps to reproduce

  1. Create two notes A and B in knotes
  2. Open kontacts. Both notes appears and are the same
  3. Modify note A in Knotes. Verify the changes are reflected in the .ics files
  4. Note that kontact does not display the modified note A but still the original one. Even clicking the "sync" button in contact does not update the note
  5. Modify note B in kontact. Check .ics file. Notice that note B is updated with the new content, but at the same time note A has been overwritten with the original context (prior to 3.)

In addition to this, every time Kontact is open, internally it updates the "last modified" time of all notes. When saving/modifying a note, the "last modified" time of all notes is also saved, incorrectly overwriting the value previously saved in the .ics file. The overwriting happens even if a note was not actually modified, which is incorrect.

## Basic information - TDE version: R14.1.0 - Distribution: debian buster - Hardware: amd64 ## Description knotes and kontact do not sync changes with each other. This leads to loss of information when editing notes in both environment at the same time. ## Steps to reproduce 1. Create two notes A and B in knotes 2. Open kontacts. Both notes appears and are the same 3. Modify note A in Knotes. Verify the changes are reflected in the .ics files 4. Note that kontact does not display the modified note A but still the original one. Even clicking the "sync" button in contact does not update the note 5. Modify note B in kontact. Check .ics file. Notice that note B is updated with the new content, but at the same time note A has been overwritten with the original context (prior to 3.) In addition to this, every time Kontact is open, internally it updates the "last modified" time of all notes. When saving/modifying a note, the "last modified" time of all notes is also saved, incorrectly overwriting the value previously saved in the .ics file. The overwriting happens even if a note was not actually modified, which is incorrect.
deloptes 5 anni fa ha commentato
Collaboratori

Hi Michele,
I observed it also before I wrote the plugins for syncevolution (before this request for extending the interface).

You need to restart knotes, so that the note created in kontact (knote_part) can be seen in knotes. The problem is when you delete the note in kontact and close knotes. Knotes writes all the notes and thus the deleted note is also written. If you modify in kontact same logic applies as described by you.

Hi Michele, I observed it also before I wrote the plugins for syncevolution (before this request for extending the interface). You need to restart knotes, so that the note created in kontact (knote_part) can be seen in knotes. The problem is when you delete the note in kontact and close knotes. Knotes writes all the notes and thus the deleted note is also written. If you modify in kontact same logic applies as described by you.
MicheleC 5 anni fa ha commentato
Autore
Proprietario

Yes, restarting either knotes or kontact will reload the latest .ics files. The problem is that the content of that file could no longer be valid, since some of the changes may have been lost/overwritten.

There should be either a notification mechanism when a note is modified or both programs should check whether there were some updates to the notes prior to save them and take different actions depending on which one is the most recent.

Yes, restarting either knotes or kontact will reload the latest .ics files. The problem is that the content of that file could no longer be valid, since some of the changes may have been lost/overwritten. There should be either a notification mechanism when a note is modified or both programs should check whether there were some updates to the notes prior to save them and take different actions depending on which one is the most recent.
deloptes 5 anni fa ha commentato
Collaboratori

... or I was thinking there should be an interface that both would use properly + the notification mechanism mentioned by you. Perhaps I'll look soon at it as the problem with my knotes interface extension still remains :)

(unfortunately being too busy lately, but sooner or later it will be done)

... or I was thinking there should be an interface that both would use properly + the notification mechanism mentioned by you. Perhaps I'll look soon at it as the problem with my knotes interface extension still remains :) (unfortunately being too busy lately, but sooner or later it will be done)
MicheleC 5 anni fa ha commentato
Autore
Proprietario

You are correct, probably the interface would be part of the notification mechanism. Perhaps something common is already there, we will need to check in the code

You are correct, probably the interface would be part of the notification mechanism. Perhaps something common is already there, we will need to check in the code
Effettua l'accesso per partecipare alla conversazione.
Nessuna milestone
Nessuna assegnatario
2 Partecipanti
Notifiche
Data di scadenza

Nessuna data di scadenza impostata.

Dipendenze

Nessuna dipendenza impostata.

Riferimento: TDE/tdepim#16
Caricamento…
Non ci sono ancora contenuti.