Knotes and kontact not syncing #16

오픈
MicheleC5 년 전을 오픈 · 4개의 코멘트
MicheleC 코멘트됨, 5 년 전
소유자

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 년 전
협업자

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 년 전
포스터
소유자

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 년 전
협업자

... 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 년 전
포스터
소유자

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
로그인하여 이 대화에 참여
마일스톤 없음
담당자 없음
참여자 2명
알림
마감일

마감일이 설정되지 않았습니다.

의존성

No dependencies set.

Reference: TDE/tdepim#16
불러오는 중...
아직 콘텐츠가 없습니다.