6aaf1cbe70
Fix import
2024-08-25 18:07:16 -07:00
6604c63b26
Merge branch 'master' into import
2024-08-25 18:06:21 -07:00
c8c1523683
Update test goldens + drop duplicate macos version from go tests
2024-08-25 16:04:55 -07:00
904964e177
go get -u + fix build error
2024-08-25 14:39:57 -07:00
7a19b4defd
Upgrade to go1.23 and swap to using the new iters package
2024-08-25 12:24:19 -07:00
decba84d9b
run "make fmt" ( #233 )
2024-08-18 14:12:55 -07:00
9b8baa8274
Add more short column name alternatives similar to #228
2024-08-11 12:29:38 -07:00
637b2e160e
Add new short name for "ExitCode" - "$?" ( #228 )
2024-08-11 12:29:38 -07:00
39044e2f62
use http.DefaultClient ( #232 )
2024-08-11 12:29:38 -07:00
2b024c8054
fix: close file ( #213 )
2024-08-11 12:29:37 -07:00
60cbb1976c
Fix double-syncing error where devices receive entries from themselves #202 ( #204 )
...
* Fix double-syncing error where devices receive entries from themselves
* Fix incorrect error message
* Add TODO
* Update TestESubmitThenQuery after making query more efficient
* Update TestDeletionRequests and remove unnecessary asserts
* Swap server_test.go to using require
* Fix incorrect require due to typo
2024-08-11 12:29:37 -07:00
cad4bd96e3
Add sync server to status -v #176 so that self-hosted users can easily confirm they're using the self-hosted server ( #178 )
2024-08-11 12:29:36 -07:00
82f819d369
Fix handling of new lines in commands for #163 ( #170 )
...
* Fix handling of new lines in commands for #163
* Move code for table from lib.go to query.go
* Update goldens
2024-08-11 12:29:36 -07:00
8da11eb3fa
run "make fmt" ( #233 )
2024-08-11 12:19:41 -07:00
ca0c72b920
Add more short column name alternatives similar to #228
2024-08-11 11:26:52 -07:00
c45e5c0f55
Add new short name for "ExitCode" - "$?" ( #228 )
2024-08-11 11:22:07 -07:00
a0dc68306b
use http.DefaultClient ( #232 )
2024-08-11 11:20:29 -07:00
35d873f618
fix: close file ( #213 )
2024-05-12 10:00:03 -07:00
7ebb693cdb
Fix double-syncing error where devices receive entries from themselves #202 ( #204 )
...
* Fix double-syncing error where devices receive entries from themselves
* Fix incorrect error message
* Add TODO
* Update TestESubmitThenQuery after making query more efficient
* Update TestDeletionRequests and remove unnecessary asserts
* Swap server_test.go to using require
* Fix incorrect require due to typo
2024-04-14 22:53:28 -07:00
b8b30ef22e
Add sync server to status -v #176 so that self-hosted users can easily confirm they're using the self-hosted server ( #178 )
2024-02-11 13:54:00 -08:00
6575c8ae42
Fix handling of new lines in commands for #163 ( #170 )
...
* Fix handling of new lines in commands for #163
* Move code for table from lib.go to query.go
* Update goldens
2024-02-06 20:04:21 -08:00
2ad499b61b
Make hishtory install work even if there is zero shell history on the device
2024-02-05 21:29:32 -08:00
7c07236dc0
Revert "Swap to using iterators for uploading to avoid storing all chunks in memory"
...
This reverts commit 632ecc5c81
.
2024-02-04 22:19:11 -08:00
ed583c36a3
Chunk uploads for reuploading
2024-02-04 21:44:00 -08:00
632ecc5c81
Swap to using iterators for uploading to avoid storing all chunks in memory
2024-02-04 21:03:39 -08:00
e86f7bf382
Add support for quotes around colons when searching ( #162 )
2024-01-07 18:56:30 -08:00
8082bd5a2d
Add support for single quotes in search queries, and add a heuristic to avoid consuming unclosed quotes
2023-12-19 19:09:21 -08:00
1b3fa944bd
Add support for quoted searchs for exact matches, for #135 ( #145 )
...
* Add support for quoted searchs for exact matches, for #135
* Add support for quoting search queries
* Fix spliteEscaped so that it works with escaping dashes and colons in search queries
2023-12-12 22:20:49 -08:00
c8643d5a2b
Filter duplicates with map ( #139 )
...
The previous method of filtering duplicates only worked on duplicates that occurred consecutively. Since dupes happen out of order often, this switches the logic to instead use a map of seen commands and filter based on that.
2023-12-05 21:43:01 -08:00
b3e145d764
Enable presaving by default rather than having it gated behind BetaMode
2023-11-24 16:46:22 -08:00
c52dbebb1b
Consolidate TODOs
2023-11-12 05:04:55 -08:00
eb835fe52c
Add initial version of AI searching, but with a broken implementation of debouncing
2023-11-12 02:57:23 -08:00
99d899254a
Fix %v that should have been a %w so that we can use errors.Is reliably
2023-11-11 11:24:16 -08:00
166661dd7f
Remove arbitrary limit of only supporting 10 custom columns
2023-10-30 17:51:07 -07:00
f8b515c328
Update custom column support to also automatically retry DB errors to further harden against issues like #119
2023-10-30 17:50:47 -07:00
2b1af986d8
Add support for running hishtory redact while offline, even though this may lead to syncing inconsistency bugs
2023-10-22 11:43:56 -07:00
9efef65e3a
Update README and make column name matching more relaxed
2023-10-18 19:17:05 -07:00
58e92e5760
Refactor by moving methods out of lib.go into more specific packages
2023-10-15 18:30:39 -07:00
f3727dbeff
Wire through a flag so that we can track when installations come from tests, and delete those from the DB more aggressively
2023-10-15 13:09:48 -07:00
4bcc5fb335
Periodically call query endpoint and retrieve data to ensure that the local DB is always reasonably up to date
2023-10-15 12:29:50 -07:00
6fb6498515
Make deletion request processing happen in parallel to speed up query endpoint
2023-10-14 17:21:00 -07:00
fca2b1441f
Always include user and device ID in API request headers, so that they're available in all server-side handlers
2023-10-14 10:52:51 -07:00
dbb555e20c
Add progress bar to monitor importing history entries for #93
2023-10-12 19:35:52 -07:00
45aa218bd3
Move err check so that it only executes if it is reassigned
2023-10-08 20:26:33 -07:00
717cf2c4b0
Add check so that if there are zero leftover entries, we don't try to import them into the DB since this leads to install errors
2023-10-08 20:25:53 -07:00
4bb0ebfb2e
Bubble up error when we fail to encrypt history entries
2023-10-07 20:02:02 -07:00
480f8696fb
Also read imports from ~/.zhistory which is sometimes used by zsh
2023-10-07 15:19:51 -07:00
d2788a9f31
Swap interface{} to any
2023-10-07 15:11:49 -07:00
5323c264b3
Further improve history importing performance for #93
2023-10-07 14:41:34 -07:00
f5264b6eff
Tweak ImportHistory so that all entries are guaranteed to have sequential timestamps that are monotonically increasing
2023-10-07 11:05:19 -07:00