Commit Graph

14 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
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
b722b21a75 Add time entries handling functions in Toggl API client 2024-03-02 10:21:33 +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
991e7fd746 Make the auth HeaderValue sensitive 2024-03-02 09:24:54 +00:00
b9b211723e Fix a bunch of warnings 2024-03-02 09:22:47 +00:00
ac049beff7 Stash changes 2024-03-02 09:14:27 +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