adrinr
6a257bf9c3
Tweak tests
2023-03-31 09:01:40 +01:00
adrinr
48b964378b
Remove all app cookie references (not really needed anymore)
2023-03-31 09:01:40 +01:00
Michael Drury
669c4ebd5c
Fix for currentapp build issue.
2023-03-22 17:46:37 +00:00
Rory Powell
4b85583f5f
Update builder and authorized middleware to be more strict towards unauthenticated ( #9774 )
...
* Update builder and authorized middleware to be more strict towards unauthenticated
* Remove unnecessary variable
2023-02-22 13:39:31 +00:00
Adria Navarro
24f8f3a7cb
Fix currentapp middleware to allow app_ parameters
2023-01-12 15:38:22 +00:00
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
514f9a1210
Some fixes based on test runs.
2022-11-23 11:44:15 +00:00
mike12345567
de82eca502
Some typescript conversions, moving a few imports around.
2022-11-21 18:33:34 +00:00
mike12345567
31c198888a
Updating some enums, plural to single.
2022-11-17 14:59:18 +00:00
mike12345567
58e59bfacc
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
bc857d7bb8
PR comments - still experiencing build issues.
2022-11-17 13:31:54 +00:00
mike12345567
4328ed1b67
Updating middlewares to Typescript, as well as some fixes based on running tests.
2022-11-16 17:24:13 +00:00
mike12345567
535fab7997
Some major reworks towards higher levels of typescript.
2022-11-16 17:23:12 +00:00
mike12345567
c6366c573a
Final server test fixes, after all updates to context/removal of context faking.
2022-11-15 19:04:39 +00:00
mike12345567
b5472f882b
Some updates for currentapp.spec.js test case.
2022-11-15 17:35:17 +00:00
mike12345567
72c9aadae0
Updating test cases - trying to get everything in order for merge.
2022-11-14 20:25:05 +00:00
mike12345567
c63c3b48c5
Typescript conversions, as well as updating context to just use an object map.
2022-11-10 17:38:26 +00:00
mike12345567
45e7ef61ef
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
e3f054470a
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
276c455a11
Merge branch 'develop' into feature/day-pass-pricing
2022-09-01 15:26:16 +01:00
Rory Powell
7c2c4a0f94
Add conditional around joiValidator schema.append
2022-08-31 12:24:12 +01:00
Rory Powell
8fc8308530
Merge branch 'develop' into feature/day-pass-pricing
2022-08-19 14:08:03 +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
Peter Clement
723bbd65e4
fixing bug on multi tenant environment
2022-07-22 10:12:16 +01:00
Rory Powell
3820182359
Write users and activity to dynamo
2022-07-18 16:11:52 -04:00
Andrew Kingston
b5d635c83f
Merge branch 'develop' of github.com:Budibase/budibase into new-design-ui
2022-06-15 15:32:33 +01:00
Dean
0561c17b6c
Joi validator update to accomodate 'createdAt' and 'updatedAt' in the schema as optional
2022-06-14 12:34:15 +01:00
Andrew Kingston
2b594b09c2
Delete user builder and admin flags when specifying a custom role via dev tools
2022-06-09 14:26:56 +01:00
Dean
8131b8fcaa
Overview Tab refactoring and general updates to the homepage
2022-05-06 15:52:49 +01:00
Dean
5104631d20
Initial Commit for app overview
2022-05-05 12:52:17 +01:00
mike12345567
bcee277acb
Fixing issue with db init as part of the jest require.
2022-04-26 18:28:37 +01:00
Rory Powell
3991f25c5c
Test fixes
2022-04-26 15:07:21 +01:00
Martin McKeaveney
9ca4dacbaa
merge with master
2022-04-26 10:21:45 +01:00
mike12345567
345bbf603c
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
d2a4e0a934
Merge branch 'develop' into feature/licensing
2022-04-20 14:59:36 +01:00
mike12345567
192fb1307e
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
41144db055
Remove remaining direct usage of CouchDB. Add common pouch config to backend-core
2022-04-19 16:45:27 +01:00
Rory Powell
d87714107d
Add checkout pro step to budibase-ci
2022-04-13 21:13:01 +01:00
Rory Powell
03ba6d914f
Merge branch 'develop' into feature/licensing
2022-04-12 16:18:41 +01:00
Andrew Kingston
7546c1a8d5
Fix for tests when headers are undefined
2022-04-06 14:11:05 +01:00
Andrew Kingston
34a0c77d73
Tidy up
2022-04-06 13:40:07 +01:00
Andrew Kingston
c2d61d8ebc
Merge branch 'develop' of github.com:Budibase/budibase into cheeks-lab-day-devtools
2022-04-06 11:50:43 +01:00
mike12345567
88437e11d0
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
819f9b75de
Link app context with tenancy, remove app tenancy middleware
2022-03-24 13:04:49 +00:00
Rory Powell
a68abf2730
Fix cross tenant apps with session
2022-03-23 16:45:06 +00:00
Rory Powell
0a4b1eb552
Tests complete + backwards compatibility for deployment
2022-03-22 00:23:22 +00:00
Rory Powell
715d42d3e6
Merge branch 'develop' into feature/licensing
2022-03-21 17:13:16 +00:00
Rory Powell
795b48bfb0
Published apps, automations and query count quotas
2022-03-20 01:13:54 +00:00
Rory Powell
661367333d
Add developer usage restrictions to SSO user creation
2022-03-18 08:01:31 +00:00
Rory Powell
e695a57853
Better error handling around license errors
2022-03-16 17:29:47 +00:00