1
0
Fork 0
mirror of synced 2024-09-20 03:08:18 +12:00
Commit graph

90 commits

Author SHA1 Message Date
Adria Navarro
12015c79ae Add comments 2023-11-30 18:39:33 +01:00
Adria Navarro
670853a0ea Renames 2023-11-30 18:39:33 +01:00
Adria Navarro
fb72b77ac1 Use jest.useFakeTimers 2023-11-30 18:39:33 +01:00
Adria Navarro
bd89633e61 Fix wrong commited code 2023-11-30 18:39:33 +01:00
Adria Navarro
a8ac4eed6d Autoextend without ttl 2023-11-30 18:39:33 +01:00
Adria Navarro
25099ee28e Clean redlock test settings 2023-11-30 18:39:33 +01:00
Adria Navarro
57b4c08731 Increase timeouts 2023-11-30 18:39:33 +01:00
Adria Navarro
dcb6933eaa Clean 2023-11-30 18:39:33 +01:00
Adria Navarro
c86d949680 Add and dry tests 2023-11-30 18:39:33 +01:00
Adria Navarro
db6517bc0c Use real sleeps 2023-11-30 18:39:33 +01:00
Adria Navarro
078384941a Clean 2023-11-30 18:39:33 +01:00
Adria Navarro
9c12c5b62e Fix comments 2023-11-30 18:39:33 +01:00
Adria Navarro
73fd1f66c5 Fix 2023-11-30 18:39:33 +01:00
Adria Navarro
4cd76ea0fc Add tests 2023-11-30 18:39:33 +01:00
Adria Navarro
a32582eb8a Use autoextend as locktype 2023-11-30 18:39:33 +01:00
Adria Navarro
26a77298ac Use timers 2023-11-30 18:39:33 +01:00
Adria Navarro
5a7dbb0076 Async 2023-11-30 18:39:33 +01:00
Adria Navarro
3073397800 Fix ttl 2023-11-30 18:39:33 +01:00
Adria Navarro
f71e1ac03a Allow locks without TTL 2023-11-30 18:39:33 +01:00
mike12345567
0df315c478 There has been quite a few redlock errors the last while - the message does not provide much information about what is going wrong - trying to rectify this to see if this is an error that could be impacting performance. 2023-11-21 10:52:50 +00:00
mike12345567
8fdf378a57 Fix an issue with account portal redis connection, if no Redis port is supplied in URL we should assume the default port number 6379. 2023-11-20 15:34:16 +00:00
mike12345567
258ea803bc Further PR comments. 2023-11-17 16:37:00 +00:00
mike12345567
7fb6c0927a Moving things around to get rid of cyclics created by moving invite/passwordReset into backend-core - also updating currentapp test case to mock a bit better. 2023-11-17 16:20:10 +00:00
Sam Rose
f2406889df
Merge branch 'master' into bug/budi-7008-i-was-able-to-send-two-invitations-to-the-same-user-email-2 2023-11-10 16:24:51 +00:00
Sam Rose
4c7c10b121
Set Redis initialisation back to how it was before I started messing with it. 2023-11-10 16:17:18 +00:00
mike12345567
a427d990a1 Quick addition - if the object has been deleted but the key is still known, then CouchDB will alert us to the fact that it is deleted, leaving the response in a weird state. 2023-11-10 11:58:07 +00:00
Sam Rose
94983c289f
Hook redis init flow into overall worker init flow. 2023-11-10 11:39:26 +00:00
Sam Rose
dd2f68d099
Hook new Redis clients into init/shutdown flow. 2023-11-10 11:24:55 +00:00
Sam Rose
d98e217c6c
Fix backend-core redis imports. 2023-11-10 11:21:36 +00:00
Sam Rose
b29cfc600c
Move Invite and PasswordReset code into backend-core. 2023-11-09 14:51:07 +00:00
mike12345567
08c4ba0097 Updating redis option functions usage, as it is no longer returned as a part of the getRedisOptions response. 2023-11-03 18:06:12 +00:00
mike12345567
7bf307b0c2 Further updates to typing. 2023-11-03 18:03:11 +00:00
mike12345567
001cf01303 Updating public API rate limiting functionality to be better typed as well. 2023-11-03 18:00:13 +00:00
mike12345567
f8f1ec4ce9 Removing old redisProtocol string - it is causing confusion and should not be necessary. 2023-11-03 17:17:20 +00:00
Sam Rose
767900aec6
Remove type information from JSDoc in .ts files, it's redundant. 2023-10-17 16:46:32 +01:00
Adria Navarro
9cd7ef7827 Typing redis 2023-09-19 14:32:05 +02:00
Adria Navarro
10fe86e30d Type 2023-09-18 12:44:58 +02:00
mike12345567
c13530ef32 Stop attempt at bundling ioredis-mock, only need to check at runtime. 2023-06-02 13:59:33 +01:00
mike12345567
ddeb25b68d Updating mock redis to only import if it is needed. 2023-06-02 11:52:50 +01:00
Michael Drury
a3f9759a47 Reverting ioredis-mock removal for test cases - will come back to this in future as it currently breaks pro tests. 2023-06-01 00:02:55 +01:00
mike12345567
fba3ec987e Merge branch 'develop' of github.com:Budibase/budibase into fix/datasource-info-endpoint 2023-05-31 17:37:17 +01:00
mike12345567
249625ad1a Updating backend tests to actually utilise the redis container which is spun up as part of the tests, doing away with the somewhat problematic ioredis-mock which was breaking some tests due to the addition of the changes for multi-dev collab. 2023-05-31 17:18:01 +01:00
Andrew Kingston
8a2d4b7052 Merge branch 'develop' of github.com:Budibase/budibase into websocket-redis-integration 2023-05-31 16:28:14 +01:00
Andrew Kingston
e3b5d711df Disable redis select command in tests 2023-05-31 16:27:49 +01:00
Andrew Kingston
ffbbf04e86 Lint 2023-05-31 16:08:35 +01:00
Andrew Kingston
05e34076f7 Fully rewrite websocket redis integration to use individual keys per session, enable TTLs on sesisons, prune sessions when users connect and add a heartbeat to sockets 2023-05-31 15:13:22 +01:00
Andrew Kingston
d926650232 Add back in functionality to select different redis DB's per client 2023-05-31 10:52:39 +01:00
Michael Drury
99607ca06e Reverting try twice change to writethrough. 2023-05-30 20:45:10 +01:00
mike12345567
7c7bd4d5cb Fix for debugging with webstorm the old way (if desired), updating the builder middleware to be more multi-dev capable, ignoring 409s when attempting to update the last updated at for apps (if multiple devs hit at same time, only use one) also updating writethrough cache to retry once, with the extended TTL on locks, plus the multi-dev collab it can take a minute to update usage quota doc when a lot of updates occur at once. 2023-05-30 17:41:20 +01:00
Andrew Kingston
5e480a1527 Use socker.io redis adapter to broadcast events to all server instances 2023-05-25 08:48:56 +01:00