aboutsummaryrefslogtreecommitdiffstats
path: root/atuin-client/src/sync.rs (follow)
Commit message (Collapse)AuthorAge
* chore: move crates into crates/ dir (#1958)Ellie Huxtable2024-04-18
| | | | I'd like to tidy up the root a little, and it's nice to have all the rust crates in one place
* fix(sync): save sync time when it starts, not ends (#1573)Ellie Huxtable2024-01-15
| | | | | | | | | | | | Imagine the scenario where a sync fails. The function touched here will never save the sync time. That means that external to this function, the sync never happened. The next command will try and start one immediately. The happy scenario is that this succeeds. The unhappy scenario is that this fails. Fails, and isn't saved, so we try again... Should add proper backoff but this is a good start.
* refactor: String -> HistoryId (#1512)Ellie Huxtable2024-01-06
|
* clear history id (#1263)Conrad Ludgate2023-10-08
| | | | | * clear history id * fix nu
* Fix/1207 deleted entries shown in interactive search (#1272)Dieter Eickstaedt2023-10-04
|
* handle missing entries (fixes #1236) (#1253)Conrad Ludgate2023-09-26
| | | | | * fix #1236 * lints
* Add connect timeout and overall timeout (#1238)Ellie Huxtable2023-09-18
| | | | | | | | | * Add connect timeout and overall timeout * Make it configurable * Fix test * Add docs
* replace chrono with time (#806)Conrad Ludgate2023-09-11
| | | | | | | | | * replace chrono with time * Fix test chrono usage --------- Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>
* Update dependencies (#1181)Conrad Ludgate2023-08-18
|
* remove decryption from api-client (#1063)Conrad Ludgate2023-06-21
|
* Allow server configured page size (#994)Ellie Huxtable2023-05-21
| | | | | | | * Allow server configured page size * Backwards compat via semver checks * Correct header name
* Fix deleting history that doesn't exist yet (#844)Ellie Huxtable2023-04-05
| | | | This can occur if history has been added + then deleted on a machine before it has a chance to be synced to a new one.
* Delete all instances of a command (#797)Ellie Huxtable2023-03-24
| | | | | | | | | | | | | | | | | | * Delete all instances of a command Our search command will de-dupe results by default. But... This isn't great for deleting! You don't want to run it over-and-over-and-over until all commands are deleted. Loop the query, and keep on deleting what it returns until they are all gone. * Optimize delete upload It was running a request for every element, on every sync lol Only push a delete if needed Future: push all deletes in one request
* Add history deletion (#791)Ellie Huxtable2023-03-20
| | | | | | | | | | | | | * Drop events. I'd still like to do them, but differently * Start adding delete api stuff * Set mailmap * Delete delete delete * Fix tests * Make clippy happy
* Add local event log storage (#390)Ellie Huxtable2022-11-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add event data structures This adds the data structures required to start syncing events, rather than syncing history directly. Adjust event Fix Add event data structure to client * Add server event table sql * Add client event table migration Adjust migration * Insert into event table from client * Add event merge function Right now this just ensures we have the right amount of events given the history we have BUT it will also be used to merge CREATE/DELETE events, resulting in history being deleted :) * Make CI happy * Adjust * we don't limit history length any more * Update atuin-client/src/database.rs Co-authored-by: Conrad Ludgate <conradludgate@gmail.com> * fix usage * Fix typo * New Rust, new clippy stuff Co-authored-by: Conrad Ludgate <conradludgate@gmail.com>
* Release v11 (#529)Ellie Huxtable2022-09-13
|
* ignore JetBrains IDEs, tidy-up imports (#348)Jakub Panek2022-04-28
| | | | | | | * ignore JB IDEs * tidy-up imports * add rustfmt config
* history list (#340)Conrad Ludgate2022-04-25
|
* goodbye warp, hello axum (#296)Conrad Ludgate2022-04-12
|
* Fix sync (#95)Ellie Huxtable2021-05-09
| | | | | | | The data part of the add history request is actually a string. I don't want to introduce any structure here, and would rather keep it as "just a blob". Even if that blob has structure secretly! My fault for missing this in the last review
* some changes :shrug: (#83)Conrad Ludgate2021-05-09
| | | | | * make everything a cow * fmt + clippy
* Support bash, resolves #3Ellie Huxtable2021-04-26
|
* Revert to storing history as nanosEllie Huxtable2021-04-25
|
* Update docs, unify on SQLx, bugfixes (#40)Ellie Huxtable2021-04-25
| | | | | | | | | * Begin moving to sqlx for local too * Stupid scanners should just have a nice cup of tea Random internet shit searching for /.env or whatever * Remove diesel and rusqlite fully
* Bugfixes, show time ago, perf improvementsEllie Huxtable2021-04-21
| | | | Also allow unique listing and more ergonomic cwd usage
* Use cargo workspaces (#37)Ellie Huxtable2021-04-20
* Switch to Cargo workspaces Breaking things into "client", "server" and "common" makes managing the codebase much easier! client - anything running on a user's machine for adding history server - handles storing/syncing history and running a HTTP server common - request/response API definitions, common utils, etc * Update dockerfile