David Dworken
e2bce260c6
Update deps to fix #241 ( #243 )
2024-09-01 14:35:19 -07:00
David Dworken
9391e4eb55
Fix test broken by 05c71b2f2
2024-08-25 14:44:47 -07:00
David Dworken
7a19b4defd
Upgrade to go1.23 and swap to using the new iters package
2024-08-25 12:24:19 -07:00
David Dworken
05c71b2f21
Remove duplicate entries before sending back to the user to save bandwidth for the client
2024-08-25 12:00:52 -07:00
David Dworken
28da99d512
Add a basic deep cleaning function for the self-hosted server to warn users about cases like #234
2024-08-18 21:48:53 -07:00
David Dworken
f9aa3df8bf
Fix formatting presubmit
2024-08-18 14:26:00 -07:00
Pavel Griaznov
7d7257d74b
fix for huge deletion requests: make them chunked ( #229 )
2024-08-18 14:11:45 -07:00
Pavel Griaznov
8da11eb3fa
run "make fmt" ( #233 )
2024-08-11 12:19:41 -07:00
David Dworken
f64f97095f
Add ability for the client to configure the model via an environment variable
2024-08-11 12:15:44 -07:00
David Dworken
f678a4ffba
Fix condition added in d6a60214a2
to also apply to rows with the go 'empty' value and not just null
2024-04-28 16:21:51 -07:00
David Dworken
d6a60214a2
Update backend to avoid persisting entries to be read by devices that have been uninstalled
2024-04-28 13:41:30 -07:00
David Dworken
862db59211
Slow down gif per feedback in #199
2024-04-15 21:49:47 -07:00
David Dworken
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
David Dworken
21b401bc14
Add ability to configure custom OpenAI API endpoint for #186 ( #194 )
...
* Add ability to configure custom OpenAI API endpoint for #186
* Ensure the AiCompletionEndpoint field is always initialized
2024-03-26 22:13:57 -07:00
David Dworken
835a7f6d61
Add SLSA failure warning for versions broken by SLSA
2024-03-25 19:59:39 -07:00
Nguyễn Hoàng Đức
8c4ede4186
Allow register new device when exceed user limit when user already exist ( #181 )
2024-02-19 12:27:16 -08:00
David Dworken
339da47636
Add cleaning for integration test devices to remove DB entries
2024-02-19 11:50:12 -08:00
David Dworken
52a4fbc96b
Add web UI for querying history from the browser ( #180 )
...
As requested in #176 and #147
* Add initail version of a web UI for querying history from the browser
* Rename webui command
* Add basic test for the web UI
* Add README for the web UI
* Add basic auth for the web server
* Add status code when panic-ing
2024-02-19 09:34:33 -08:00
David Dworken
b4e517a594
Move function to start of python file to make it more idiomatic
2024-02-09 20:21:27 -08:00
David Dworken
2573551416
Move up os.remove so that the file is removed even if it fails to execute
2024-02-09 20:20:55 -08:00
David Dworken
638912b230
Improve install.py script to attempt to detect when /tmp/ is noexec ( #172 )
...
* Improve install.py script to attempt to detect when /tmp/ is noexec
* Add test to install from python script at HEAD
* Remove incorrect duplicated line
* Delete the tmp hishtory-client download since it may be dropped in CWD rather than /tmp/
2024-02-09 17:41:52 -08:00
Richard James
9ac3df1bbb
Allow override of serving port by env var ( #160 )
...
Can now set HISHTORY_SERVER_PORT but will default to 8080.
2023-12-23 17:22:26 -08:00
David Dworken
ddc73230d8
Add easier support for installing in offline mode
2023-12-21 19:03:21 -08:00
David Dworken
fbe8e777a4
Remove unnecessary version checking now that multiple versions have been released
2023-12-20 16:43:54 -08:00
David Dworken
8fd809fdc8
Improve AI suggestions by specifying shell name and OS in OpenAI query
2023-12-19 20:50:29 -08:00
David Dworken
3a01e47701
Refactor: Move UsageData and Device to the backend/server directory since they are purely server-side constructs
2023-12-10 10:32:04 -08:00
David Dworken
7272ca8448
Delete data from backend when uninstalling, fixes #132 ( #143 )
2023-12-10 09:15:11 -08:00
David Dworken
0c2774ec15
Change deletion request code to not filter on DeviceId since the two device ID fields are not actually the same (see the newly added comment)
2023-11-22 20:44:57 -08:00
David Dworken
b4f5f50ef7
Configure custom logger when running hishtory server with sqlite
2023-11-22 20:44:24 -08:00
David Dworken
1c68b23790
Change panic to error so that one cron failure doesn't kill all cron jobs
2023-11-22 20:43:40 -08:00
David Dworken
67c67b76cd
If X-Real-IP header isn't set, use the client's real IP instead of unknwon ( fixes #126 )
2023-11-18 12:11:12 -08:00
David Dworken
41391fba3a
Update slsaStatusHandler to use the version parsing library
2023-11-12 04:59:05 -08:00
David Dworken
29fa710fbc
Skip creating DB indexes in the production environment since we manually create those concurrently
2023-11-12 03:21:01 -08:00
David Dworken
0be6fe9724
Swap AI completions to be behind a dedicated config option and add docs on it
2023-11-12 03:09:56 -08:00
David Dworken
afe1a38a0e
Fix 2d63263b79
by applying the override on the backend rather than in the client-side variable that isn't actually being referenced
2023-11-12 02:57:23 -08:00
David Dworken
0ea3ce2399
Add basic debouncing for AI integration + implement AI suggestions via hishtory API endpoint
2023-11-12 02:57:23 -08:00
David Dworken
eb835fe52c
Add initial version of AI searching, but with a broken implementation of debouncing
2023-11-12 02:57:23 -08:00
David Dworken
e0f629d0ee
Add integration with 5ab1cb61a3
so that we only serve binaries for updates if they have passed validation
2023-11-08 20:08:42 -08:00
David Dworken
56e4609970
Make server.go's cron more precise about how it periodically re-runs more intensive cron functions
2023-11-01 18:06:16 -07:00
David Dworken
047ff97cfc
Add more thorough deep cleaning to delete entries for users that have more than 50 million entries, since these users are clearly misusing hishtory in some way that is causing DB load issues
2023-10-28 23:30:18 -07:00
David Dworken
f3c8ecc9e6
Update deep clean code to actually execute the delete now that I validated that it is reasonable
2023-10-28 15:06:58 -07:00
David Dworken
0c39dbf27c
Update deep clean code to be stricter and to fix a bug
2023-10-27 20:16:30 -07:00
David Dworken
0f99c7996e
Follow up to 083569be17
: What if we just change the message we print on the server-side so that it doesn't trigger gotestsum?
2023-10-22 11:46:11 -07:00
David Dworken
53580d40e9
Remove TODOs for adding data to context that I think is actually fine to keep in the request as-is
2023-10-22 11:17:06 -07:00
David Dworken
083569be17
Move output prefix from 60d388c4c2
to the inner test
2023-10-22 11:07:59 -07:00
David Dworken
60d388c4c2
Add one more print similar to b6885cca98
that was missed in that commit
2023-10-22 00:19:34 -07:00
David Dworken
b6885cca98
Attempt to fix gotestsum skipping tests by adding a prefix so that test output doesn't begin with panic:
2023-10-21 17:03:04 -07:00
David Dworken
50c6f5e061
Skip tests that cause gotestsum to skip re-running
2023-10-21 16:59:42 -07:00
David Dworken
a937b35e54
Avoid returning DB error when deleted message identifiers don't have a device ID
2023-10-18 18:59:12 -07:00
David Dworken
9a4a2a18aa
Update TODOs
2023-10-15 17:59:11 -07:00