Adria Navarro
e1870f74bd
Fix currentapp middleware to allow app_ parameters
2023-01-12 15:38:22 +00:00
Rory Powell
0b2a445a9a
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
37410e041a
Some fixes based on test runs.
2022-11-23 11:44:15 +00:00
mike12345567
ee4ebbfb56
Some typescript conversions, moving a few imports around.
2022-11-21 18:33:34 +00:00
mike12345567
fcb6f985a6
Updating some enums, plural to single.
2022-11-17 14:59:18 +00:00
mike12345567
c4f041e511
Updating PouchLike to be an interface in types, with its impl stored in backend-core, now called Database.
2022-11-17 14:35:03 +00:00
mike12345567
4c44b7a224
PR comments - still experiencing build issues.
2022-11-17 13:31:54 +00:00
mike12345567
4f64798ada
Updating middlewares to Typescript, as well as some fixes based on running tests.
2022-11-16 17:24:13 +00:00
mike12345567
b0f6224c18
Some major reworks towards higher levels of typescript.
2022-11-16 17:23:12 +00:00
mike12345567
cca1b59c76
Final server test fixes, after all updates to context/removal of context faking.
2022-11-15 19:04:39 +00:00
mike12345567
3faac89c7a
Some updates for currentapp.spec.js test case.
2022-11-15 17:35:17 +00:00
mike12345567
1af47003c5
Updating test cases - trying to get everything in order for merge.
2022-11-14 20:25:05 +00:00
mike12345567
fd624e097a
Typescript conversions, as well as updating context to just use an object map.
2022-11-10 17:38:26 +00:00
mike12345567
c356e0d152
Re-building the context module to use a single object, meaning we can create new context frames and copy over whatever exists, then update.
2022-11-10 16:38:32 +00:00
mike12345567
fa8fb88f82
Updating a few core endpoints to better integrate the groups system and make sure users always have the correct role ID updated onto them.
2022-09-22 18:27:43 +01:00
Rory Powell
a0e79bf9d5
Merge branch 'develop' into feature/day-pass-pricing
2022-09-01 15:26:16 +01:00
Rory Powell
472990b684
Add conditional around joiValidator schema.append
2022-08-31 12:24:12 +01:00
Rory Powell
cb03d26980
Merge branch 'develop' into feature/day-pass-pricing
2022-08-19 14:08:03 +01:00
mike12345567
b920f8cb05
Replacing all plural TS enumerations with singular - this involves a major rename of the DocumentTypes.
2022-08-11 13:50:05 +01:00
Peter Clement
a5d0b8c74b
fixing bug on multi tenant environment
2022-07-22 10:12:16 +01:00
Rory Powell
617ec1fe02
Write users and activity to dynamo
2022-07-18 16:11:52 -04:00
Andrew Kingston
15c28bcb8f
Merge branch 'develop' of github.com:Budibase/budibase into new-design-ui
2022-06-15 15:32:33 +01:00
Dean
10157cf5ff
Joi validator update to accomodate 'createdAt' and 'updatedAt' in the schema as optional
2022-06-14 12:34:15 +01:00
Andrew Kingston
71b18a4260
Delete user builder and admin flags when specifying a custom role via dev tools
2022-06-09 14:26:56 +01:00
Dean
fffb4b0174
Overview Tab refactoring and general updates to the homepage
2022-05-06 15:52:49 +01:00
Dean
1c5990b9d7
Initial Commit for app overview
2022-05-05 12:52:17 +01:00
mike12345567
95bcb1ca9c
Fixing issue with db init as part of the jest require.
2022-04-26 18:28:37 +01:00
Rory Powell
0f29b0cb03
Test fixes
2022-04-26 15:07:21 +01:00
Martin McKeaveney
e01ef9bdfb
merge with master
2022-04-26 10:21:45 +01:00
mike12345567
fe846f86a5
Fixing issues with test cases - a lot of test cases didn't setup tenancy in any format, which now means that the API endpoints they call would not have access to a Global DB instance. Also had to disable the closing of the database in test as this was removing the database from memory, meaning future calls would find an empty database when they opened it.
2022-04-21 14:56:14 +01:00
Rory Powell
2269bf677b
Merge branch 'develop' into feature/licensing
2022-04-20 14:59:36 +01:00
mike12345567
ea6f580501
Initial version of memory leak protection, making sure that PouchDB databases are closed correctly after use, using a combination of closures wrapping DB gets (this replaces the getDB, leaving only a dangerousGetDB function which can be used in very very specific scenarios) and then closing the DB as part of CLS hooked functions finishing. Also moving the GlobalDB init to the tenancy middleware as this is used everywhere in the worker/app services - means that not all getGlobalDB calls require an async closure around them.
2022-04-19 19:42:52 +01:00
Rory Powell
769f48f935
Remove remaining direct usage of CouchDB. Add common pouch config to backend-core
2022-04-19 16:45:27 +01:00
Rory Powell
b5de92d0a0
Add checkout pro step to budibase-ci
2022-04-13 21:13:01 +01:00
Rory Powell
dd740df387
Merge branch 'develop' into feature/licensing
2022-04-12 16:18:41 +01:00
Andrew Kingston
caff2d7508
Fix for tests when headers are undefined
2022-04-06 14:11:05 +01:00
Andrew Kingston
c25ca0cafd
Tidy up
2022-04-06 13:40:07 +01:00
Andrew Kingston
7c91d9dceb
Merge branch 'develop' of github.com:Budibase/budibase into cheeks-lab-day-devtools
2022-04-06 11:50:43 +01:00
mike12345567
e073bdb5a4
Fix for #5103 - some templates are built on an older version that stored permissions differently, we can't migrate these as they will keep being added, easiest to just support the old method (apply the old rule and convert to the new format when retrieving roles).
2022-03-28 16:34:50 +01:00
Rory Powell
bcc84bf1fd
Link app context with tenancy, remove app tenancy middleware
2022-03-24 13:04:49 +00:00
Rory Powell
cb6103a321
Fix cross tenant apps with session
2022-03-23 16:45:06 +00:00
Rory Powell
180e37b9f1
Tests complete + backwards compatibility for deployment
2022-03-22 00:23:22 +00:00
Rory Powell
bf9f5488fc
Merge branch 'develop' into feature/licensing
2022-03-21 17:13:16 +00:00
Rory Powell
336f0ff4a0
Published apps, automations and query count quotas
2022-03-20 01:13:54 +00:00
Rory Powell
62b360b9ea
Add developer usage restrictions to SSO user creation
2022-03-18 08:01:31 +00:00
Rory Powell
893f82ac4d
Better error handling around license errors
2022-03-16 17:29:47 +00:00
mike12345567
a37fc54fab
Fixing an issue that was breaking build.
2022-03-15 19:53:05 +00:00
mike12345567
1dd2cf99d0
Quick fix for #4914 - adding some checks in API middleware to confirm headers have been set correctly.
2022-03-15 19:31:01 +00:00
Rory Powell
ccf2fe3d01
Self Host <-> Licensing integration
2022-03-09 21:16:22 +00:00
Rory Powell
d6092b9133
Integrate usage quotas with licensing
2022-03-08 14:21:41 +00:00