David Dworken
|
4f592f4aef
|
Automatically retry search queries when the DB is locked to increase reliability (especially when the backend is down, which leads to more queries, and thus more instances of the DB being locked)
|
2023-09-18 19:22:26 -07:00 |
|
David Dworken
|
f589a0b1ba
|
Increment the test_retry_count metric for failures too to ensure that it captures tests that fail all retries
|
2023-09-17 23:07:10 -07:00 |
|
David Dworken
|
f64362fbba
|
Fix metrics tag format so handler tags are properly exported to datadog
|
2023-09-17 22:46:31 -07:00 |
|
David Dworken
|
3baef9aeff
|
Update docker compose test to simplify it and make it more reliable
|
2023-09-17 21:25:37 -07:00 |
|
David Dworken
|
3c5092161a
|
Release v0.217
|
2023-09-17 21:17:29 -07:00 |
|
David Dworken
|
134061085b
|
Fix bug in searching logic that caused gorm to template in NULL for non-null values
|
2023-09-17 20:24:48 -07:00 |
|
David Dworken
|
8e7dc41ed7
|
Release v0.216
|
2023-09-17 15:21:10 -07:00 |
|
David Dworken
|
e6c76eb222
|
Make WHERE query for deleting presaved entries stricter and re-add in the error check that was removed in 713ee96a96
|
2023-09-17 14:38:48 -07:00 |
|
David Dworken
|
4c912cfaed
|
Improve sh config file tweak function to make it stricter with presaving
|
2023-09-17 14:35:56 -07:00 |
|
David Dworken
|
1d7ba41289
|
Avoid performance hit caused by pre-saving by presaving in the background
|
2023-09-17 14:11:44 -07:00 |
|
David Dworken
|
1ab61f1d7d
|
Fix missing err != nil branch
|
2023-09-17 13:07:38 -07:00 |
|
David Dworken
|
d94e1bfa22
|
Fix imports after moving backend/server code in 772aaf2453
|
2023-09-17 12:53:55 -07:00 |
|
David Dworken
|
772aaf2453
|
Move internal/ directory into backend/server since it is all server-specific internals
|
2023-09-17 12:51:21 -07:00 |
|
David Dworken
|
7421a937d1
|
Disable usage data tracking for server unit tests since they don't properly set up all the tables
|
2023-09-17 12:41:49 -07:00 |
|
David Dworken
|
713ee96a96
|
Delete error checking branch that isn't necessary because the filter condition above is much more precise now
|
2023-09-17 12:06:19 -07:00 |
|
David Dworken
|
04a0fc40cd
|
Make errors from updateUsageData(...) crash when running in non-prod to ensure they're detected/handled before deployment
|
2023-09-17 12:03:42 -07:00 |
|
David Dworken
|
60406916e9
|
Revert "Upgrade gorm dependency"
This reverts commit 29108dd15f .
|
2023-09-15 17:51:20 -07:00 |
|
David Dworken
|
b733878878
|
Skip re-initializing tables when running in prod to make server startup faster
|
2023-09-15 17:51:14 -07:00 |
|
David Dworken
|
29108dd15f
|
Upgrade gorm dependency
|
2023-09-15 17:30:46 -07:00 |
|
David Dworken
|
6e33e1ee1d
|
Swap healthcheck endpoint to count the approximate number of history entries
|
2023-09-15 17:21:16 -07:00 |
|
David Dworken
|
63741a0d14
|
Optimize docker build efficiency by running apk add early so that it is cached
|
2023-09-15 17:10:55 -07:00 |
|
David Dworken
|
ce511b28a3
|
More debug prints for auto-migration
|
2023-09-15 17:08:33 -07:00 |
|
David Dworken
|
1036e14c17
|
Add debug prints to debug server startup
|
2023-09-15 17:07:25 -07:00 |
|
David Dworken
|
4b99e4d0e8
|
Fix misleading error message that contained the wrong shell name due to a copy/paste mistake
|
2023-09-14 23:09:15 -07:00 |
|
David Dworken
|
48e33d5034
|
Make the query input box in the TUI match the terminal dimensions
|
2023-09-14 21:14:16 -07:00 |
|
David Dworken
|
30ba0bd35c
|
Presaving clean up improvements: Skip presaving empty commands and make timestamp format clearer
|
2023-09-14 21:04:23 -07:00 |
|
David Dworken
|
328c35a096
|
Add presaving support for fish
|
2023-09-14 21:03:36 -07:00 |
|
David Dworken
|
c5a7245991
|
Add bug fix for presaving history where entries would sometimes end up duplicated
|
2023-09-14 21:01:13 -07:00 |
|
David Dworken
|
9fcdb7f960
|
Add TODO for tui UX improvement
|
2023-09-14 20:40:35 -07:00 |
|
David Dworken
|
8ee48ec7d9
|
Release v0.215
|
2023-09-14 12:39:13 -07:00 |
|
David Dworken
|
01d9924cc0
|
Check sqlite DB error messages with Contains to be slightly more lenient
|
2023-09-14 12:32:50 -07:00 |
|
David Dworken
|
d753c3d4d7
|
Release v0.214
|
2023-09-14 11:15:08 -07:00 |
|
David Dworken
|
d4e01ceb11
|
Add another error message substring for detecting errors due to being offline, to improve #30
|
2023-09-13 22:49:40 -07:00 |
|
David Dworken
|
e8ceb02138
|
Move tui.go out of lib and into a separate package
|
2023-09-13 22:47:48 -07:00 |
|
David Dworken
|
6d6a1a5e12
|
Move a bunch of update-specific code out of the generic lib.go file and into the update command
|
2023-09-13 22:45:49 -07:00 |
|
David Dworken
|
f3e4a4e1e6
|
Disable tquery test that is failing on github actions
|
2023-09-13 21:56:58 -07:00 |
|
David Dworken
|
0e085211a8
|
Remove incorrect defer that was causing the datadog tracer to get stopped too early
|
2023-09-13 21:54:32 -07:00 |
|
David Dworken
|
bc4d2b05f1
|
Add panic checking for impossible state in server struct
|
2023-09-13 21:51:23 -07:00 |
|
David Dworken
|
a66ea1387d
|
Refactor server.go to remove two global variables
|
2023-09-13 21:47:06 -07:00 |
|
David Dworken
|
b478eadeae
|
Merge pull request #106 from lsmoura/sergio/isolated-server
Create isolated server struct that encapsulates all server logic
|
2023-09-13 21:31:51 -07:00 |
|
David Dworken
|
b6b4dbe37a
|
Add tests for presaving history entries
|
2023-09-13 20:29:06 -07:00 |
|
David Dworken
|
6540b4dbf6
|
Improve logged error messages for API failures
|
2023-09-13 20:24:25 -07:00 |
|
David Dworken
|
2b115844f4
|
Improve testutils server runner to persist logs and kill existing servers automatically
|
2023-09-13 20:23:09 -07:00 |
|
David Dworken
|
a039b19b9c
|
Change root command name to all lower case so that the cobra-generated examples work correctly on case-sensitive file systems
|
2023-09-13 19:46:49 -07:00 |
|
David Dworken
|
763c8208f7
|
Make RetryingDbFunction more lenient so that it always ignores UNIQUE constraint errors, since if a DB.Create returns a UNIQUE error, then the create is not actually necessary
|
2023-09-13 19:20:15 -07:00 |
|
Sergio Moura
|
b93a365055
|
use actions/checkout@v4 for go-test.yml
|
2023-09-13 10:35:18 -04:00 |
|
David Dworken
|
f1e2b8ddbf
|
Update TestSortByConsistentTimezone to not use a golden for tquery since it was leading to occasional flakes, and swap it to using a regex. Also add a test for hishtory export as part of the sorting tests.
|
2023-09-12 19:09:01 -07:00 |
|
David Dworken
|
4c40a8a177
|
Skip datadog setup for release commits since we also skip tests for release commits
|
2023-09-12 18:57:21 -07:00 |
|
David Dworken
|
57c5a69f7d
|
Fix bug where we failed to delete pre-saved history entries due to race conditions causing the DB to be locked
|
2023-09-12 18:55:13 -07:00 |
|
David Dworken
|
aebf526d1f
|
Add TODO for a theoretical bug I noticed
|
2023-09-12 17:51:55 -07:00 |
|