Commit Graph

436 Commits

Author SHA1 Message Date
14bba38324
migrate to multiple sqlite db files ( primary + requests + logs ) 2023-01-06 00:39:21 +01:00
679277d59e
catch panic in gin 2022-12-28 00:32:15 +01:00
cebb2ae2b6
small cleanups 2022-12-23 20:27:21 +01:00
56d9f977ae
Tests[ListChannelsDefault, ListChannelsOwned, ListChannelsSubscribedAny, ListChannelsAllAny, ListChannelsSubscribed, ListChannelsAll] 2022-12-22 17:29:59 +01:00
984470b47d
Fix sql-preprocessor leading to deadlocks in parallel requests 2022-12-22 16:51:04 +01:00
0112d681ac
Fix SQL unmarshalling of optional nested structs (LEFT JOIN) 2022-12-22 12:43:40 +01:00
0cb2a977a0
Save internal_name and display_name in channel 2022-12-22 11:22:36 +01:00
f65c231ba0
Properly shutdown database on SIGTERM 2022-12-22 10:21:10 +01:00
dbc014f819
Added a SQL-Preprocessor - this way we can unmarshal recursive structures (LEFT JOIN etc) 2022-12-21 18:14:13 +01:00
bbf7962e29
move server/* to scnserver/* 2022-12-21 12:35:56 +01:00
2b4d77bab4
Cleaner swagger routes 2022-12-21 11:03:31 +01:00
8582674b44
Refactoring 2022-12-20 13:55:09 +01:00
f7675be834
Use multiple DB connections but retry failed requests 2022-12-20 09:52:33 +01:00
00d77e508d
Fix TestSendParallel by using only a single DB connection
see https://github.com/mattn/go-sqlite3/issues/274
see https://github.com/mattn/go-sqlite3/issues/209
see https://stackoverflow.com/questions/32479071/sqlite3-error-database-is-locked-in-golang
2022-12-20 09:22:18 +01:00
e90cfe34e9
switch to new registry image-name 2022-12-16 14:57:17 +01:00
54dfd535a4
Move parseConfOverride() to goext 2022-12-16 01:07:48 +01:00
5a02eb6d18
Prefix all config key with SCN_* 2022-12-14 18:46:26 +01:00
97fc9319d1
Fix wrong env keys in config.go 2022-12-14 18:43:32 +01:00
03b4acd13e
Tests[CreateProUser] 2022-12-14 18:38:30 +01:00
86f06a3c6a
Tests[CreateChannel, CreateChannelNameTooLong, ChannelNameNormalization] 2022-12-14 18:27:22 +01:00
06e8d2a6e2
Tests[SendLongContentPro] 2022-12-14 18:18:02 +01:00
99f248a8ce
Tests[SendParallel] (skipped for now) 2022-12-14 18:08:03 +01:00
c7aaa6ad98
Tests[QuotaExeededPro] 2022-12-14 17:56:14 +01:00
cb5ce66c1a
Tests[QuotaExeededNoPro] 2022-12-14 17:56:03 +01:00
0750bf1d8a
cleanup test local-url 2022-12-14 17:02:18 +01:00
203360e8b5
Tests[SendToTooLongChannel] 2022-12-14 16:57:08 +01:00
ef1844109f
Tests[SendToManualChannel] 2022-12-14 16:38:01 +01:00
de6ad35f60
new Endpoint: CreateChannel(*) 2022-12-14 14:29:59 +01:00
fbb289dedf
Added error descriptions to swagger 2022-12-14 14:27:41 +01:00
f1e87170f0
Tests[SendToNewChannel] 2022-12-14 14:30:34 +01:00
66ecad27a7
Only soft-delete messages 2022-12-14 12:29:55 +01:00
98b1e8bd80
move ScanAll/ScanSingle in sq package 2022-12-11 03:14:42 +01:00
26cd1533b4
Tests[SearchMessageFTSSimple] 2022-12-11 02:47:23 +01:00
3692b915f3
Messagefilter (+FTS) [WIP] 2022-12-10 03:38:48 +01:00
06788c3e12
TestData-Factory [WIP] 2022-12-09 00:40:50 +01:00
edfcdd1135
TestData-Factory [WIP] 2022-12-09 00:13:10 +01:00
dd2f3baa0c
Properly close db cursors after use 2022-12-08 11:31:52 +01:00
7db70e392b
Simplify fts table schema 2022-12-07 23:43:52 +01:00
0cae24a612
Move sq + ParseDurShortString() to goext and change conf values by env 2022-12-07 23:32:58 +01:00
8db0fa37db
Move to own sql abstraction on top of jmoiron/sqlx 2022-12-07 22:11:44 +01:00
d27e3d9a91
Made sqlite tables strict (type checked) 2022-12-07 22:11:07 +01:00
fa5a4107a6
Added FTS5 table to schema (full-text-search) 2022-12-07 22:10:46 +01:00
234188c4d4
Tests[SendCompat] 2022-12-01 14:45:31 +01:00
9b700581f3
Tests[SendSimpleMessageAlt1] 2022-12-01 14:30:46 +01:00
12db23d076
Improve test performance (better waiting logic until http server is up) 2022-11-30 23:46:28 +01:00
fd182f0abb
Fix timeout in ReadSchema/GetMeta etc method (fixes /health call taking 2 seconds) 2022-11-30 22:59:33 +01:00
7eab74e65c
Tests[SendWithTimestamp, SendInvalidTimestamp] 2022-11-30 22:29:12 +01:00
e0ecd4d9ff
Tests[SendInvalidPriority] 2022-11-30 21:51:48 +01:00
1ca09c16d3
Tests[SendWithPriority] 2022-11-30 21:39:14 +01:00
a7df476e79
Tests[SendIdempotent] 2022-11-30 21:17:29 +01:00