Peter Clement
9bf37b34ae
Server and Worker tests ( #8928 )
...
* automation unit tests
* row processor tests
* update executeQuery test
* update groups assertion
* some more worker tests
* plugin tests and tidying up
* linting
* temporarily disable group tests
* more tests
* fix import
* fix backup tests
* add pro mocks to worker
* check for app existence in import test
* test new tsconfig
* testing changes
* Pro test utils (#9020 )
* Pro test utils changes
* Add test fixes
* Remove ts-ignore
Co-authored-by: mike12345567 <me@michaeldrury.co.uk>
Co-authored-by: Rory Powell <rory.codes@gmail.com>
2022-12-12 22:02:32 +00:00
mike12345567
c869cf23f9
Adding unit test.
2022-12-07 18:37:23 +00:00
mike12345567
35b097fa28
build fixes.
2022-12-07 18:04:20 +00:00
mike12345567
0b7057dd1d
Some fixes based on test failure.
2022-12-07 17:33:26 +00:00
mike12345567
edb3c88a41
Extension on fix for user self assignment, don't allow users to change their admin/builder status.
2022-12-07 12:42:14 +00:00
Rory Powell
4508796e45
lint
2022-12-01 15:02:05 +00:00
Rory Powell
64ca3a0dc5
test fix
2022-12-01 15:00:56 +00:00
Rory Powell
28b29ea7a9
build fix
2022-12-01 14:44:56 +00:00
Rory Powell
e3fa737a9b
Merge branch 'master' into develop
2022-12-01 14:39:05 +00:00
Mel O'Hagan
d60a70af82
Move custom rbac from controller to routes
2022-11-30 09:29:56 +00:00
Rory Powell
24d5fc4af3
Fix default env processing typescript error
2022-11-29 22:11:44 +00:00
Mel O'Hagan
d484dc6011
lint
2022-11-29 17:23:54 +00:00
Mel O'Hagan
08104c918b
refactor
2022-11-29 16:38:44 +00:00
Mel O'Hagan
7db3f4ca94
Added unit tests
2022-11-29 16:11:53 +00:00
Michael Drury
8e4cb2f079
Adding back prod check.
2022-11-29 15:43:44 +00:00
Michael Drury
791d74dd94
Fixing sentry init.
2022-11-29 15:38:25 +00:00
Mel O'Hagan
035a601c28
lint
2022-11-29 15:14:29 +00:00
Mel O'Hagan
85c4095656
Fix unit tests
2022-11-29 15:13:58 +00:00
Mel O'Hagan
2ac638fc26
Only allow admin to create new user
2022-11-29 11:36:24 +00:00
mike12345567
b5b74b9cad
General work after running some tests in CI - general refactoring as well.
2022-11-28 17:54:04 +00:00
Mel O'Hagan
e0645e0293
Invite is adminOnly
2022-11-28 16:02:49 +00:00
Mel O'Hagan
1567ab27d0
Allow developers to manage user access
2022-11-28 16:01:27 +00:00
mike12345567
ea66f7ac38
Disabling js interop in Typescript build of backend-core and worker, fixing build issues.
2022-11-26 14:46:01 +00:00
mike12345567
b92d1855fe
Merge branch 'develop' of github.com:Budibase/budibase into refactor/backend-core-worker
2022-11-26 13:51:19 +00:00
mike12345567
0a32126c5b
Automation overhaul to Typescript, plus type updates.
2022-11-25 19:57:07 +00:00
Rory Powell
42f596c728
Environment variable type coercion fix
2022-11-25 12:55:58 +00:00
Rory Powell
20c4b00a0c
Environment variable type coercion fix
2022-11-25 12:52:50 +00:00
mike12345567
a38d617138
Complete conversion of backend-core to Typescript.
2022-11-24 18:48:51 +00:00
mike12345567
1b408e60f2
Refactoring worker, converting all controllers/routes to Typescript and all imports of backend-core to new style.
2022-11-23 18:25:20 +00:00
Dean
a123e65e78
Import fixes for backend core constants. Minor name change for default data source from Test DB to Sample Data
2022-11-21 12:47:36 +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
242a529b2e
Fixes post merge.
2022-11-16 18:28:45 +00:00
mike12345567
0357d1c8e4
Some worker typescript conversions.
2022-11-16 18:13:34 +00:00
mike12345567
bf86640e9d
Merge branch 'develop' of github.com:Budibase/budibase into feature/replace-pouch
2022-11-16 18:12:31 +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
Rory Powell
dc70022708
Test fixes
2022-11-16 13:06:30 +00:00
Rory Powell
6017f6be47
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
mike12345567
806c7dd1af
Merge branch 'develop' of github.com:Budibase/budibase into feature/replace-pouch
2022-11-15 16:45:25 +00:00
Rory Powell
ad81adb30f
Merge branch 'develop' into subdomain-tenancy
2022-11-15 16:18:59 +00:00
Rory Powell
d205b5136b
ensure fetch and aws are always mocked
2022-11-15 15:50:15 +00:00
Rory Powell
2212305f08
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
80b823f6cf
Test fixes
2022-11-11 15:43:41 +00:00
Rory Powell
0bad2dd9ae
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
mike12345567
1ee6761a69
Some minor updates based on getting the worker using the new pouchlike impl.
2022-11-09 17:53:35 +00:00
Rory Powell
85dbf90e5d
Configurable CDN
2022-11-07 15:27:03 +00:00
Rory Powell
71e31f2315
Configurable CDN
2022-11-07 09:45:00 +00:00
Peter Clement
5138559a69
Merge remote-tracking branch 'origin/master' into fix/peter-fixes
2022-11-02 12:09:48 +00:00
Peter Clement
080bf2873a
remove log
2022-11-02 10:35:04 +00:00
Peter Clement
722e256d60
Email onboarding not respecting group selection
2022-11-02 09:58:38 +00:00
mike12345567
2900ef2fde
Adding a fix for checklist being incorrect after restoring from the CLI.
2022-10-27 09:48:37 +01:00
Rory Powell
5c80b2ca06
Startup fixes
2022-10-25 13:37:26 +01:00
mike12345567
6edffb0d5e
Addressing majority of PR comments.
2022-10-24 10:04:14 +01:00
mike12345567
9242f695ab
Merge branch 'develop' of github.com:Budibase/budibase into feature/app-backups
2022-10-13 15:59:31 +01:00
mike12345567
bb65cf8ef9
Some updates towards supporting attachments in app exports.
2022-10-10 20:08:59 +01:00
Rory Powell
e92a31bd45
Add locking framework
2022-10-10 08:21:17 +01:00
Rory Powell
af24f72166
Process quota emails in account-portal
2022-10-06 16:03:47 +01:00
Rory Powell
89e057802b
Add document and api types
2022-10-03 14:02:58 +01:00
mike12345567
7484cdfb59
Feature to allow adding apps from within the groups interface, rather than having to go to apps individually to do this.
2022-09-26 17:54:00 +01:00
Martin McKeaveney
1a18e7eba2
Merge pull request #7964 from Budibase/qa/real-couch-integration-tests
2022-09-26 11:10:15 +01:00
Martin McKeaveney
1fdff22c64
only run in test mode if couch url is not passed
2022-09-26 10:40:37 +01:00
Martin McKeaveney
eae2f83225
Merge pull request #7881 from Budibase/feature/email-cc
...
Add CC and BCC (with multiple email support) to Send Email automation action step
2022-09-25 13:40:33 +01:00
Martin McKeaveney
e796a86809
using real couch in integration tests
2022-09-24 13:17:21 +01:00
Michael Drury
0269089f5a
PR comments.
2022-09-23 22:21:51 +01:00
mike12345567
c8ec3c52af
Merge branch 'develop' of github.com:Budibase/budibase into group-fixes
2022-09-23 17:10:30 +01:00
Rory Powell
9dc2eac580
Support deleting license key from self host install
2022-09-23 15:54:59 +01:00
mike12345567
3b0fa9b15a
Removing un-unsed broken import, which was breaking build.
2022-09-23 15:38:51 +01:00
mike12345567
76114aa621
Merge branch 'develop' of github.com:Budibase/budibase into group-fixes
2022-09-22 18:44:16 +01: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
mike12345567
a461c25cef
Some updates, typescripting some more APIs, as well as fixing a lot of Router creation which did not specify the 'new' operator.
2022-09-22 14:59:28 +01:00
mike12345567
141c0a447d
Self API in worker conversion to typescript.
2022-09-22 14:09:20 +01:00
Mel O'Hagan
e40349a05f
Allow null values for cc, bcc
2022-09-22 08:09:54 +01:00
mike12345567
2c5d2f7b12
Switching over app role assignment to use the new backend rather than being performed in the frontend.
2022-09-21 22:58:06 +01:00
mike12345567
39689d27f6
Updating user API to user a single bulk endpoint rather than case sensitive named endpoints.
2022-09-21 18:05:45 +01:00
Mel O'Hagan
a0a87e0b1d
Send CC and BCC
2022-09-21 16:07:54 +01:00
Mel O'Hagan
a5571fc59a
CC and BCC interface
2022-09-21 15:58:04 +01:00
mike12345567
a1c7e60dfa
Adding a user core bulk update function.
2022-09-21 13:55:10 +01:00
mike12345567
9466592663
Adding group cleanup, removing group IDs from users when group is deleted.
2022-09-21 12:43:09 +01:00
mike12345567
e22f4ab7d7
Removing un-necessary code now that groups automatically enrich from users.
2022-09-20 19:33:54 +01:00
melohagan
59724fb61b
Merge pull request #7816 from vevedh/smtp-multi-sendto
...
multi mail send to
2022-09-20 15:50:44 +01:00
mike12345567
b56397c2e1
Fixing typing.
2022-09-16 17:14:00 +01:00
mike12345567
b98f08f4e7
Merge branch 'develop' of github.com:Budibase/budibase into group-fixes
2022-09-16 17:02:08 +01:00
mike12345567
fa7702044d
Merge branch 'master' of github.com:Budibase/budibase into develop
2022-09-16 16:13:20 +01:00
Martin McKeaveney
7f6cc6737b
Merge pull request #7646 from Budibase/qa/qa-core-jest
...
QA Core repo, and Jest API tests running end to end
2022-09-15 21:12:45 +01:00
mike12345567
d35864be08
Fixing issue introduced by fix for #7683 - encoding the query string caused handlebars statements to break, this rectifies that.
2022-09-15 19:35:55 +01:00
Rory Powell
0980be9377
Merge branch 'develop' into feature/day-pass-pricing
2022-09-15 10:56:50 +01:00
Martin McKeaveney
c1dc1aa488
Merge branch 'develop' into qa/qa-core-jest
2022-09-15 01:18:58 +01:00
Martin McKeaveney
0605486965
Merge pull request #7591 from Budibase/fix/platform-email-casing
...
Fix/platform email casing
2022-09-14 16:09:52 +01:00
Martin McKeaveney
be396dc3c0
fixing tests
2022-09-14 14:22:53 +01:00
Hervé de CHAVIGNY
4020625844
multi mail send to
2022-09-13 18:59:14 -04:00
Martin McKeaveney
f9ade3685b
convert views to typescript
2022-09-13 12:22:03 +01:00
mike12345567
3c857ec501
Prefer worker/app port to generic port env variable - #7736 .
2022-09-12 15:17:39 +01:00
Rory Powell
e2b5c7b4ef
Merge branch 'develop' into feature/day-pass-pricing-temp
2022-09-12 11:33:02 +01:00
Martin McKeaveney
4b82f8f3fd
merge
2022-09-07 23:31:24 +01:00
Martin McKeaveney
010767bcfb
lowercase response emails
2022-09-07 23:27:20 +01:00
Martin McKeaveney
096da509d9
PR comments
2022-09-07 23:21:14 +01:00
Rory Powell
6e1a30bc60
Error handling, wildcard feature flags
2022-09-07 12:08:10 +01:00
Rory Powell
4f66dc0df3
Move day pass middleware from authenticated to licensing, sent activity to account portal
2022-09-06 16:24:36 +01:00
Rory Powell
ba211b8490
Day pass middleware
2022-09-06 12:25:57 +01:00
Martin McKeaveney
2a6c9cd6c5
QA Core repo, and Jest API tests running end to end
2022-09-05 18:28:53 +01:00
Rory Powell
3271b295d4
Clear quota cache on deprovision + gracefully handle account metadata doc deletion
2022-09-05 16:17:58 +01:00
Rory Powell
bc1586761d
Fix auto user creation for OIDC auth
2022-09-05 09:46:54 +01:00
Martin McKeaveney
9c54a87ada
platform view casing
2022-09-02 15:42:20 +01:00
Martin McKeaveney
f42b2d0087
platform user casing view
2022-09-02 09:12:03 +01:00
Rory Powell
a0e79bf9d5
Merge branch 'develop' into feature/day-pass-pricing
2022-09-01 15:26:16 +01:00
Rory Powell
53a43ae87d
Typos
2022-09-01 08:29:03 +01:00
Rory Powell
e416dc6788
Apply validation to invite users by email + results modal
2022-09-01 07:58:05 +01:00
Rory Powell
6077814823
Merge branch 'develop' into user-fixes
2022-08-31 11:39:41 +01:00
Rory Powell
8fbe1378f0
Merge branch 'master' into develop
2022-08-31 11:35:07 +01:00
Rory Powell
ae3e4a7d6e
Update shutdown logging
2022-08-31 10:47:41 +01:00
Rory Powell
a734d385f8
Conditionally enable elastic apm
2022-08-30 10:59:27 +01:00
Rory Powell
b331f47aa4
Update user creation UI
2022-08-25 22:56:58 +01:00
Rory Powell
a519eb0cdc
update bulk create and bulk delete backend
2022-08-25 19:41:47 +01:00
Rory Powell
c29f3768fa
User fixes wip
2022-08-23 09:37:13 +01:00
Rory Powell
cb03d26980
Merge branch 'develop' into feature/day-pass-pricing
2022-08-19 14:08:03 +01:00
Rory Powell
5a74207ecd
usage page updates
2022-08-19 09:28:26 +01:00
Dean
9a677fce72
Added scope customisation to the OIDC SSO configuration. Users can add or remove whichever scopes they like except 'openid'. They can revert to our core default values if they run into any issues
2022-08-18 10:59:40 +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
Andrew Kingston
b9cc7a83c8
Fix users not being added to group when invited via email
2022-08-08 16:40:32 +01:00
mike12345567
a2f18e2e44
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
59ee85f46c
Removing session API.
2022-08-05 11:39:28 +01:00
mike12345567
2f665362e4
Updating pino logging to remove health check spam.
2022-08-04 20:23:45 +01:00
mike12345567
65e8af01f5
Some more logging, moving middlewares to backend-core.
2022-08-04 19:03:50 +01:00
mike12345567
a05e21ee4b
Allow builders (not just admins) to delete apps.
2022-08-04 17:14:52 +01:00
Rory Powell
3b3f3188ab
Sync global-info users to fix login + prevent double password hashing
2022-08-04 14:49:56 +01:00
Rory Powell
2a41cc6092
Merge pull request #7082 from Budibase/sev1/login-new-users
...
Fix login for new users
2022-08-04 12:04:06 +01:00
Rory Powell
81625729d9
Fix login issues for new users
2022-08-04 11:56:18 +01:00
Andrew Kingston
feee950c3d
Merge pull request #7066 from Budibase/prod-user-fixes
...
Prod user fixes
2022-08-04 09:20:18 +01:00
Andrew Kingston
115ef53f82
Update multi-user invite endpoint
2022-08-03 19:20:33 +01:00
Andrew Kingston
b60a1ad7b0
Remove log
2022-08-03 19:20:18 +01:00
Andrew Kingston
6701c25fc9
Fix users invited by email not being able to take priveleged roles
2022-08-03 15:16:26 +01:00
Peter Clement
1da4645d58
use correct middleware
2022-08-03 14:37:41 +01:00
Peter Clement
d36fde046b
fix redirect loop in overview page
2022-08-03 14:35:10 +01:00
mike12345567
b87fcc1f8f
Adding API checks to stop deletion of self.
2022-08-02 14:58:18 +01:00
Peter Clement
847fc6c4e5
pr comments
2022-08-01 09:03:47 +01:00
Peter Clement
323c23b4d8
pr comments and updating group check to be more safe
2022-07-30 11:38:08 +01:00
Peter Clement
6d12b1b24f
more efficient fetching of total users per app
2022-07-29 13:10:00 +01:00
Peter Clement
342efa64b3
fix test naming
2022-07-27 14:45:55 +01:00
Peter Clement
e5a6acdf47
update tests
2022-07-27 14:18:54 +01:00
Peter Clement
b8fa697482
comment out tests for meanwhile
2022-07-27 14:01:00 +01:00
Peter Clement
0f19222393
fix type
2022-07-27 10:25:06 +01:00
Peter Clement
e468f83902
adding tests and pr comments
2022-07-27 10:20:39 +01:00
Peter Clement
fd7ed6d28f
user post processing
2022-07-26 20:20:12 +01:00
Peter Clement
0c831f369d
refactor groups into pro and some other pr comments
2022-07-26 20:04:29 +01:00
Peter Clement
b078ea9d8d
adding limits for uploading users
2022-07-26 12:17:01 +01:00
Peter Clement
9bb32f610c
some more pr comments
2022-07-25 18:57:10 +01:00
Peter Clement
3f401b35f3
moar bulkdocs
2022-07-25 17:36:57 +01:00
Peter Clement
caa06e5772
fix builder assignment issue
2022-07-25 17:18:42 +01:00
Peter Clement
9e4e005dcb
move bulk update / delete functionality out of controller
2022-07-25 16:58:30 +01:00