Commit Graph

168 Commits (ac4d37d08636a99c8240d77b6f1328cbd755a09e)

Author SHA1 Message Date
daladim 849cbbc07a Added the update_item function 2021-04-20 00:22:55 +02:00
daladim 5b1adca42c A function is only useful in tests 2021-04-20 00:22:55 +02:00
daladim d9b11a30ec [doc] 2021-04-20 00:22:55 +02:00
daladim 85d8b9f7fd [minor] Logs 2021-04-20 00:22:42 +02:00
daladim c63f859cbc Implemented delete_item for remote calendars 2021-04-20 00:22:42 +02:00
daladim 4f68296f93 Better API to reflect optional yet related fields in an iCal item 2021-04-20 00:22:42 +02:00
daladim 3bf1fed5b9 Added item's creation_date 2021-04-20 00:22:42 +02:00
daladim 092765f769 Tasks include a COMPLETED timestamp 2021-04-20 00:22:41 +02:00
daladim 8e35f4c579 Items include a last modified (DTSTAMP) date 2021-04-20 00:22:41 +02:00
daladim e24fab2ccb Implemented add_item for remote calendars 2021-04-20 00:22:41 +02:00
daladim e39cdc7cd5 Provider-sync example 2021-04-20 00:22:41 +02:00
daladim 36f08756bd cache is automatically saved when dropped 2021-04-20 00:22:41 +02:00
daladim a2f227e73b Correctly serializing cache 2021-04-20 00:22:41 +02:00
daladim f32fe121aa Implemented iCal file creation 2021-04-20 00:22:41 +02:00
daladim 0fe487c988 Support for iCal UID 2021-04-20 00:22:41 +02:00
daladim 9d2d83e06f [minor] API change for Task::new 2021-04-20 00:22:41 +02:00
daladim 18e2d0a96a [doc] 2021-04-20 00:22:40 +02:00
daladim b2704bd3d2 Ability to mock behaviours for tests 2021-04-20 00:22:40 +02:00
daladim a922495b46 Refactored functions 2021-04-20 00:22:40 +02:00
daladim b360e52144 [minor] Logs 2021-04-20 00:22:39 +02:00
daladim aa02fa182d Fixed calendar metadata sync 2021-04-20 00:22:39 +02:00
daladim f2dd528d33 Fixed initial sync 2021-04-20 00:22:39 +02:00
daladim 842e34fb85 [provider] Minor refactoring 2021-04-20 00:22:09 +02:00
daladim 88af366edf [minor] Reviewed re-imports 2021-04-17 19:41:48 +02:00
daladim 3d9adcec08 Fixed a SyncStatus inconsistency 2021-04-03 19:14:38 +02:00
daladim 841d14807b [minor] Logs 2021-04-03 18:53:17 +02:00
daladim f760176435 Cleaner comparisons 2021-04-03 18:53:16 +02:00
daladim 751a98d281 cleanup 2021-04-03 18:53:16 +02:00
daladim 6c9d7b4ed4 [minor] Doc fixes 2021-04-03 18:53:16 +02:00
daladim d5932121dd [cleanup] 2021-04-03 18:48:31 +02:00
daladim f18b1acc0f Changed signature of insert_calendar 2021-04-03 18:47:52 +02:00
daladim 707d764e6b Implemented get_item_by_id for CachedCalendar 2021-04-03 18:47:51 +02:00
daladim 7924866e6b iCal parser handles completion status 2021-04-03 18:47:51 +02:00
daladim 401099ed33 Implemented pulling new calendars from server 2021-04-03 18:47:05 +02:00
daladim 0b65dff46d Caching version IDs from the server 2021-04-03 18:47:05 +02:00
daladim 0158cfb2d4 Changed traits 2021-04-03 18:47:05 +02:00
daladim b54fe5e228 Added an iCal parser 2021-04-03 18:47:05 +02:00
daladim f6d542460c Fixed a parsing bug 2021-04-03 18:47:04 +02:00
daladim 351d8c73da Add Event::new 2021-04-03 18:47:04 +02:00
daladim 078b650c00 Implemented get_item_version_tags for RemoteCalendar 2021-04-03 18:47:04 +02:00
daladim e622ec0f7e utils can print remote calendars 2021-04-03 18:47:04 +02:00
daladim 45b4c1a056 [minor] 2021-04-03 18:47:04 +02:00
daladim 9a23081cda [provider] More logs + fixed syncing bugs 2021-04-03 18:47:04 +02:00
daladim 479011755e Traits are closer to what actual calendars provide 2021-04-03 18:46:59 +02:00
daladim 9355629136 add_item now returns a Result 2021-03-28 19:47:28 +02:00
daladim fd0568dbcc Add `mark_for_deletion` 2021-03-28 19:47:27 +02:00
daladim bcc8fc705b chrono crate is no longer required 2021-03-28 19:47:27 +02:00
daladim 3da86bc146 last_sync is no longer required 2021-03-28 19:47:27 +02:00
daladim cbb4378581 last_modified is no longer required 2021-03-28 19:47:26 +02:00
daladim 5c3c5c8090 Re-wrote Provider::sync 2021-03-28 19:47:26 +02:00
daladim c46222c8c7 [provider] Renamed server -> remote 2021-03-28 19:47:25 +02:00
daladim 647199af93 Removed sync implementation 2021-03-28 19:47:25 +02:00
daladim 86f3566532 Trait is closer to what caldav servers provide 2021-03-28 19:47:25 +02:00
daladim 7af147e417 Implemented RemoteCalendar::get_item_ids 2021-03-28 19:47:24 +02:00
daladim f2349dbd0a [minor] Refactored 2021-03-28 19:47:24 +02:00
daladim 499f25b9b9 ItemId is the Url 2021-03-28 19:47:24 +02:00
daladim cbffef8b97 More Results in traits 2021-03-28 19:47:23 +02:00
daladim def17b6218 Wrapped Url, username and password together 2021-03-28 19:47:23 +02:00
daladim 50ac358791 Added utils::build_url 2021-03-28 19:47:23 +02:00
daladim a8ccdef0bb More `Result`s in the trait 2021-03-28 19:47:22 +02:00
daladim bb2122db6b Changed an argument to a reference 2021-03-28 19:47:22 +02:00
daladim f29aca941b Removed unwraps 2021-03-28 19:47:21 +02:00
daladim ddaa32c9f5 More async in traits 2021-03-28 19:47:21 +02:00
daladim 6ce077ca12 More async functions in traits 2021-03-28 19:47:20 +02:00
daladim d53ec193d8 Cache saves to a folder 2021-03-28 19:47:20 +02:00
daladim 54c6d510e8 Re-wrote sync() 2021-03-28 19:47:19 +02:00
daladim 70557160f2 Fixed warnings 2021-03-28 19:47:19 +02:00
daladim 060f33b4bd Turning calendars into Arc<Mutex> 2021-03-28 19:47:18 +02:00
daladim d07a2b9493 [cleanup] 2021-03-28 19:47:18 +02:00
daladim 9c17f07660 The Big Type Overhaul 2021-03-28 19:47:17 +02:00
daladim 02a0eece63 [test] check calendar equalitys after sync 2021-03-28 19:47:17 +02:00
daladim 41502271ff Added find_deletions and fixed sync 2021-03-28 19:47:16 +02:00
daladim 4cc882039b [minor] Logs 2021-03-28 19:47:16 +02:00
daladim 4eb1ae2fb1 Fewer warnings 2021-03-28 19:47:16 +02:00
daladim caaddf910c Major overhaul: more generics! 2021-03-28 19:47:15 +02:00
daladim eaa6d8a61e Moved a module 2021-03-28 19:47:15 +02:00
daladim 6ff4822d6e [utils] Added print_calendar_list 2021-03-28 19:47:14 +02:00
daladim f06b5ac9ae [doc] 2021-03-28 19:47:14 +02:00
daladim df9d5a2d07 Better API for last sync timestamp 2021-03-28 19:47:14 +02:00
daladim 6c4ffa020c Fix sync bug on conflicts 2021-03-28 19:47:13 +02:00
daladim 571420126f Created Item (enum of either a task or en event) 2021-03-28 19:47:13 +02:00
daladim e60ad19fa5 Provider: correctly syncs deleted items 2021-03-28 19:47:13 +02:00
daladim a76a0c86ac Calendar keeps track of deleted items 2021-03-28 19:47:12 +02:00
daladim 91f62aa200 [tests] Conflicts handling 2021-03-28 19:47:12 +02:00
daladim 89d2c3fcef Sync: server wins for conflicts 2021-03-28 19:47:12 +02:00
daladim 6e81bd61f5 [doc] 2021-03-28 19:47:11 +02:00
daladim 6fe9b71e16 Syncs without handling conflicts 2021-03-28 19:47:11 +02:00
daladim 4dd0bea78b get_tasks returns a HashMap 2021-03-28 19:47:11 +02:00
daladim 6b1d5635c6 Added functions to the trait 2021-03-28 19:47:10 +02:00
daladim 7197a5669a Added Cache 2021-03-28 19:47:10 +02:00
daladim 624aec5dd1 Task: doc and more methods 2021-03-28 19:47:10 +02:00
daladim 4cf2ad13fe Calendar: doc and more methods 2021-03-28 19:47:09 +02:00
daladim cefcb7289f Added the CalDavSource trait 2021-03-28 19:47:09 +02:00
daladim 364c91fed2 [minor] Fewer warnings 2021-03-28 19:47:08 +02:00
daladim 1451f41ae3 Made stuff serializable 2021-03-28 19:47:08 +02:00
daladim 03884c6ff9 Revert "Made Url serde-compatible"
This reverts commit 3cb52a83013e228ed0fd7d33b7cf125607409fd9.
2021-03-28 19:47:07 +02:00
daladim 61784a9c55 Made Url serde-compatible 2021-03-28 19:47:07 +02:00
daladim 5e6eb6863c [minor] Fixed case for an enum 2021-03-28 19:47:06 +02:00
daladim 7e3bccb5ad Refactored modules 2021-03-28 19:47:06 +02:00
daladim 65a7670a1b Moved some tests 2021-03-28 19:47:05 +02:00