Rory Powell
fba7ef26ad
Replace ts-jest with swc/jest ( #9289 )
...
- Add swc dependencies
- Add transform change to jest.config.ts
- Replace `export =` with `export default` in src code to enable code coverage to work with swc transformer
- Restructure backend-core errors package to allow for exporting error classes with ESM syntax
- Update backend-core to no longer use `export =`, export individual packages instead of replacing with `export default` for backwards compatibility
- Update event publishers to use `export default` - this was required for the `jest.spyOn` usage inside backend-core common mocks
- Restructure some jest.mock usages where declaring the jest.fn as a variable outside of the package mock threw an error
2023-01-11 09:37:37 +00:00
Martin McKeaveney
7fb565e9f4
lock changes ( #9047 )
2022-12-15 12:45:53 +00:00
mike12345567
d3c4c99e16
Complete conversion of backend-core to Typescript.
2022-11-24 18:48:51 +00:00
Rory Powell
56456f3f6d
Startup fixes
2022-10-25 13:37:26 +01:00
Rory Powell
281eb151e2
Merge pull request #8164 from Budibase/feature/quota-emails
...
Approaching and Exceeded Usage Limit Notifications
2022-10-12 12:31:17 +01:00
Martin McKeaveney
536b7238e9
redis fix for new instances, removing relationship options from google sheets integration
2022-10-10 11:00:45 +01:00
Rory Powell
84685d3340
Add locking framework
2022-10-10 08:21:17 +01:00
mike12345567
197d195cb4
Switching from scan for app locks to mget - which is a fast O(N) operation that only retrieves what we need.
2022-10-07 18:05:18 +01:00
mike12345567
53e9f79c65
Adding explanation of the difference between Database and SelectableDatabase in Redis.
2022-06-24 14:42:15 +01:00
mike12345567
b4bed6c0ce
Updating redis to use typescript and adding the option of a writethrough cache which can be used, by passing a DB and a value to be written + a delay for writes.
2022-06-23 20:22:51 +01:00
Rory Powell
361ffd224f
Merge branch 'release' into feature/event-backfill
2022-06-06 09:50:06 +01:00
Rory Powell
86d094dda4
Migration locks and add optional preventRetry option
2022-06-01 17:52:41 +01:00
Rory Powell
081db8423e
Fix key eviction
2022-06-01 15:31:27 +01:00
Rory Powell
7ebfaf8a31
Failover protection with event cache
2022-05-31 21:04:41 +01:00
mike12345567
fa30457f2b
Fixing issue with server not shutting down correctly when an error occurs, making sure that everything clears up gracefully.
2022-05-30 21:22:06 +01:00
mike12345567
76f19def26
Moving the withCache function to backend-core so that it can be shared, as well as adding a cache busting function which can be used when one of the checklist configs changes.
2022-05-23 15:03:52 +01:00
Martin McKeaveney
6d3aa6a806
withCache wrapper for working with redis
2022-05-23 00:09:03 +01:00
Rory Powell
715d42d3e6
Merge branch 'develop' into feature/licensing
2022-03-21 17:13:16 +00:00
mike12345567
d55a385072
Fixing an issue with detecting fully qualified Redis URL despite not in use.
2022-03-14 16:50:01 +00:00
mike12345567
30651e81d5
Making the URL optional for application creation/update in OpenAPI spec, removing unused parameter and fixing getRedisOptions function to work with fully qualified URLs.
2022-03-10 15:53:23 +00:00
Rory Powell
a81041bc40
Add shared licensing cache
2022-03-03 13:37:04 +00:00
mike12345567
12ae9993ca
Changing directory.
2022-01-10 19:30:35 +00:00