Commit Graph

18 Commits

Author SHA1 Message Date
b7102e12a6 Run rustfmt and fix some clippy lints 2024-03-03 20:53:41 +00:00
7759632848 Migrate database updates to use TimeEntrys over ReportRows 2024-03-03 20:35:53 +00:00
889859dbae Run rustfmt and move cache_report into sync_service.rs 2024-03-03 19:53:20 +00:00
73b3e2cb96 Update Datetime handling in API and DB layers
Changed the handling of start, stop, and update timestamp fields in ReportRowInnerTimeEntry data structure from strings to DateTime objects in the API layer. Also updated the data persisting in DB layer to use these new datetime objects and introduced additional columns for server_updated_at, server_deleted_at and tags.
2024-03-03 18:21:00 +00:00
ce60eaf310 Add time_entry columns 2024-03-03 18:15:40 +00:00
573d7f8635 Update columns on conflict 2024-03-02 17:13:22 +00:00
b7da62536d Improve time types 2024-03-02 17:12:46 +00:00
0f3c031b7a Link up db types 2024-03-02 16:59:04 +00:00
90457155aa Refactor Toggl API types
Significant renaming and data type changes to Toggl API types occurred to improve identification and consistency. For example, 'Current' is renamed to 'TimeEntry', 'ProjectClient' is renamed to 'Client', and 'TogglQuery' is renamed to 'TogglReportQuery'. Changes affected multiple sections of the codebase, including routes and DB access.
2024-03-02 10:10:30 +00:00
9cfe56b3ce Refactor ReportEntry to ReportRow and enhance request builder
Changed the name of 'ReportEntry' to 'ReportRow' for clarity. Also simplified the request builder in the TogglApiClient by implementing a 'make_request' function which helps in handling rate limiting. The function is then used in various methods of the TogglApiClient.
2024-03-02 10:00:15 +00:00
b9b211723e Fix a bunch of warnings 2024-03-02 09:22:47 +00:00
ee21753411 Centralise files related to talking to the Toggl apis to the toggl_api module 2024-03-01 21:21:33 +00:00
1288d72678 Prep import of csv files 2024-02-22 13:49:17 +00:00
cc838ef145 (toggl-portal): Fix issue with start and stop transitioning to from raw to database types. I really need to write some tests 2023-11-06 21:41:00 +00:00
8e2356ac85 (toggl-portal): Fetch projects and clients when there is an update. 2023-11-06 20:30:35 +00:00
64570190c8 (toggl-portal): Add project caching 2023-11-06 20:10:10 +00:00
84cb5f5379 (toggl-portal): Cache clients in database 2023-11-06 14:14:26 +00:00
d47174efee (toggl-portal): Database work 2023-11-02 16:00:55 +00:00