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
mike12345567
20984e8072
Some fixes based on test failure.
2022-12-07 17:33:26 +00:00
mike12345567
3a6200144a
Fix for account portal.
2022-11-28 14:09:18 +00:00
mike12345567
90362b65c1
Disabling js interop in Typescript build of backend-core and worker, fixing build issues.
2022-11-26 14:46:01 +00:00
mike12345567
d3c4c99e16
Complete conversion of backend-core to Typescript.
2022-11-24 18:48:51 +00:00
mike12345567
f5760b6601
Fixes post merge.
2022-11-16 18:28:45 +00:00
mike12345567
29dd98a7fc
Merge branch 'develop' of github.com:Budibase/budibase into feature/replace-pouch
2022-11-16 18:12:31 +00:00
mike12345567
535fab7997
Some major reworks towards higher levels of typescript.
2022-11-16 17:23:12 +00:00
Rory Powell
9c169087e6
Add copy button to sso callback urls, e2e unit testing for OIDC, stub out other auth tests
2022-11-16 11:34:16 +00:00
Rory Powell
1612044dc1
Merge branch 'develop' into subdomain-tenancy
2022-11-15 16:18:59 +00:00
Rory Powell
f48ff01045
ensure fetch and aws are always mocked
2022-11-15 15:50:15 +00:00
Rory Powell
9973f2e161
Bump jest and ts-jest to be consistent across backend packages to fix CI issue, test config updates
2022-11-14 22:55:47 +00:00
Rory Powell
c6fba4de3d
Test fixes
2022-11-11 15:43:41 +00:00
Rory Powell
72562278c0
Support path variable tenancy detection, add /api/system/* tests, update no tenancy matchers to be more accurate
2022-11-11 11:10:07 +00:00
Rory Powell
6783fd713e
Update tenancy detection to honour any subdomain pattern according to platform url
2022-11-09 16:35:16 +00:00
Rory Powell
b36634f510
Add extra auth logging to authenticated.ts
2022-11-04 08:30:44 +00:00
Rory Powell
4787f9ccab
Pre-review tidy, add new badge to plugins
2022-09-15 11:23:51 +01:00
Rory Powell
165194658b
Move day pass middleware from authenticated to licensing, sent activity to account portal
2022-09-06 16:24:36 +01:00
Rory Powell
818e7fd5f4
Day pass middleware
2022-09-06 12:25:57 +01:00
Rory Powell
7c2c4a0f94
Add conditional around joiValidator schema.append
2022-08-31 12:24:12 +01:00
Rory Powell
5f022e04a3
Merge branch 'develop' into user-fixes
2022-08-31 11:39:41 +01:00
Rory Powell
59a53736ac
update bulk create and bulk delete backend
2022-08-25 19:41:47 +01:00
mike12345567
1c7f860184
Merge branch 'master' of github.com:Budibase/budibase into develop
2022-08-11 16:28:46 +01:00
mike12345567
b803a3fd93
Replacing all plural TS enumerations with singular - this involves a major rename of the DocumentTypes.
2022-08-11 13:50:05 +01:00
Rory Powell
3b9343b3e6
Merge branch 'master' into develop
2022-08-08 11:50:22 +01:00
mike12345567
2dea5c5614
Some various session fixes based on current data.
2022-08-05 21:35:26 +01:00
mike12345567
52d16d1099
Updating sessions to TS, adding env var to set the session update length, adding reasons for invalidation, making sure errors are never considered authenticated.
2022-08-05 17:13:03 +01:00
mike12345567
b3a6efa2f9
Updating authenticated middleware to typescript and updating the TTL once per minute rather than every API request.
2022-08-05 15:21:12 +01:00
mike12345567
44a6aa85a9
Merge branch 'master' of github.com:Budibase/budibase into develop
2022-08-04 21:35:55 +01:00
mike12345567
f3418c4107
Some more logging, moving middlewares to backend-core.
2022-08-04 19:03:50 +01:00
Rory Powell
09127df617
Add updatedAt and createdAt as optional to all joi middleware
2022-08-02 09:39:30 +01:00
Rory Powell
1dc062a3fb
Merge branch 'master' into develop
2022-07-27 16:32:36 -04:00
mike12345567
d42f3c3385
Adding fix for issue in cloud with user password deletion causing undefined errors.
2022-07-27 17:15:01 +01:00
Peter Clement
af451840ac
move worker middleware to backend-core
2022-07-22 11:50:51 +01:00
Dean
1ff9785498
Code review updates
2022-07-04 12:54:26 +01:00
Dean
129a5c2672
OIDC config test fix
2022-07-03 22:39:16 +01:00
Dean
1e6845d5cb
Refresh the OAuth tokens automatically when making rest calls. Fix to remove the password from the api token authentication.
2022-07-03 21:13:15 +01:00
Dean
5fd385ab30
Merge commit
2022-06-23 14:29:19 +01:00
Rory Powell
0cf777a0cd
Build fixes
2022-06-09 12:33:10 +01:00
Rory Powell
361ffd224f
Merge branch 'release' into feature/event-backfill
2022-06-06 09:50:06 +01:00
Martin McKeaveney
d5540bbd57
update google sheets strategy to use the standard passport strategy
2022-06-05 16:43:04 +01:00
Rory Powell
2a00f6498d
Merge branch 'feature/posthog-v2' into feature/event-backfill
2022-05-29 00:25:40 +01:00
Rory Powell
857cd2d735
Merge branch 'develop' into feature/posthog-v2
2022-05-28 23:03:31 +01:00
Rory Powell
c0d6fa34a4
Identity tenant and installation groups, property updates
2022-05-28 21:38:22 +01:00
Rory Powell
b3f04e7e8f
Identity updates
2022-05-24 20:01:13 +01:00
Rory Powell
ff48aaec6e
User context updates and misc fixes
2022-05-24 09:54:36 +01:00
mike12345567
a7e6eb2851
Merge branch 'master' of github.com:Budibase/budibase into develop
2022-05-23 23:43:57 +01:00
Rory Powell
28b48a88fe
Event identification
2022-05-23 22:14:44 +01:00
Martin McKeaveney
9d813292de
enable clustering on server and worker services, better log output on user not found errors
2022-05-23 16:24:29 +01:00
Rory Powell
70fff5c7b9
Merge branch 'develop' into feature/posthog-v2
2022-05-23 09:04:00 +01:00