{"action":"opened","issue":{"url":"https://api.github.com/repos/tbabej/testimportfinal/issues/19","repository_url":"https://api.github.com/repos/tbabej/testimportfinal","labels_url":"https://api.github.com/repos/tbabej/testimportfinal/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/tbabej/testimportfinal/issues/19/comments","events_url":"https://api.github.com/repos/tbabej/testimportfinal/issues/19/events","html_url":"https://github.com/tbabej/testimportfinal/issues/19","id":294488807,"number":19,"title":"[TW-20] Task edit loses annotation precision, causing Journal updating code to incorrectly indicate annotions are deleted and recreated","user":{"login":"tbabej","id":2123868,"avatar_url":"https://avatars2.githubusercontent.com/u/2123868?v=4","gravatar_id":"","url":"https://api.github.com/users/tbabej","html_url":"https://github.com/tbabej","followers_url":"https://api.github.com/users/tbabej/followers","following_url":"https://api.github.com/users/tbabej/following{/other_user}","gists_url":"https://api.github.com/users/tbabej/gists{/gist_id}","starred_url":"https://api.github.com/users/tbabej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbabej/subscriptions","organizations_url":"https://api.github.com/users/tbabej/orgs","repos_url":"https://api.github.com/users/tbabej/repos","events_url":"https://api.github.com/users/tbabej/events{/privacy}","received_events_url":"https://api.github.com/users/tbabej/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/tbabej/testimportfinal/milestones/22","html_url":"https://github.com/tbabej/testimportfinal/milestone/22","labels_url":"https://api.github.com/repos/tbabej/testimportfinal/milestones/22/labels","id":3090435,"number":22,"title":"2.4.5","description":null,"creator":{"login":"tbabej","id":2123868,"avatar_url":"https://avatars2.githubusercontent.com/u/2123868?v=4","gravatar_id":"","url":"https://api.github.com/users/tbabej","html_url":"https://github.com/tbabej","followers_url":"https://api.github.com/users/tbabej/followers","following_url":"https://api.github.com/users/tbabej/following{/other_user}","gists_url":"https://api.github.com/users/tbabej/gists{/gist_id}","starred_url":"https://api.github.com/users/tbabej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbabej/subscriptions","organizations_url":"https://api.github.com/users/tbabej/orgs","repos_url":"https://api.github.com/users/tbabej/repos","events_url":"https://api.github.com/users/tbabej/events{/privacy}","received_events_url":"https://api.github.com/users/tbabej/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2018-02-05T17:30:05Z","updated_at":"2018-02-05T18:06:39Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-02-05T18:06:39Z","updated_at":"2018-02-05T18:06:39Z","closed_at":null,"author_association":"OWNER","body":"_Cory Donnelly on 2011-03-14T22:11:48Z says:_ \n\n I believe this is due to differences in timestamp precision between task at the commandline and the user's dateformat.annotation. A user may make an annotation at 2011-03-14 11:20:33.551, but (at)task edit@ presents it to the user as 2011-03-14 11:20. Because of how annotations are represented, when the user saves their edits task thinks that the original annotation was deleted and another was created using this truncated datetime value.\n\nI experience this in 1.9.4 and the current 2.0.0. Steps to reproduce follow.\n\nFirst, create a task with a few annotations. Waiting 60 seconds between annotations is not necessary, I just wanted to make sure the problem wasn't due to them all having the same annotation_[timestamp].\n\n<pre>\n$ task add One; task 1 ann Annotation1; sleep 60; task 1 ann Annotation2; sleep 60; task 1 ann Annotation3; sleep 60; task 1 ann Annotation4\nCreated task 1.\n\nAnnotated 1 with 'Annotation1'.\nAnnotated 1 with 'Annotation2'.\nAnnotated 1 with 'Annotation3'.\nAnnotated 1 with 'Annotation4'.\n\n$ task 1 info\n\nName        Value                               \nID          1\nDescription One\n            2011^03^14^21:43 Annotation1\n            2011^03^14^21:44 Annotation2\n            2011^03^14^21:45 Annotation3\n            2011^03^14^21:47 Annotation4\nStatus      Pending\nUUID        062e4766-448b-458d-a283-66b1f31f4ab0\nEntered     2011&03&14&21:43 (5 mins)\n\nDate             Modification                  \n2011&03&14&21:43 annotation added 'Annotation1'\n2011&03&14&21:44 annotation added 'Annotation2'\n2011&03&14&21:45 annotation added 'Annotation3'\n2011&03&14&21:47 annotation added 'Annotation4'\n</pre>\n\nNext, using (at)task 1 edit@ change the text of the last annotation to 'Annotation5'.\n\nResult:\n\n<pre>\n$ task 1 info\n\nName        Value                               \nID          1\nDescription One\n            2011^03^14^21:43 Annotation1\n            2011^03^14^21:44 Annotation2\n            2011^03^14^21:45 Annotation3\n            2011^03^14^21:47 Annotation5\nStatus      Pending\nUUID        062e4766-448b-458d-a283-66b1f31f4ab0\nEntered     2011&03&14&21:43 (8 mins)\n\nDate             Modification                                                                                                                                   \n2011&03&14&21:43 annotation added 'Annotation1'\n2011&03&14&21:44 annotation added 'Annotation2'\n2011&03&14&21:45 annotation added 'Annotation3'\n2011&03&14&21:47 annotation added 'Annotation4'\n2011&03&14&21:51 annotation 'Annotation1' deletedannotation 'Annotation2' deletedannotation 'Annotation3' deletedannotation 'Annotation4' deletedannotation\n                 added 'Annotation1'\n                 annotation added 'Annotation2'\n                 annotation added 'Annotation3'\n                 annotation added 'Annotation5'\n                 annotation ''\n                 annotation ''\n                 annotation ''\n                 annotation ''\n</pre>\n\nDon't worry about the missing \"\\n\" -- that was fixed in #704."}}
{"actor":{"display_login":"tbabej"}}