Commit Graph

2418 Commits

Author SHA1 Message Date
Mateus Badan de Pieri b0df710a2a tweaks on some tests 2023-04-05 16:13:39 +01:00
Budibase Staging Release Bot efa1ea7b1b v2.4.44-alpha.9 2023-04-05 14:41:48 +00:00
Rory Powell 77ffb8d86d Run integration suite in CI again / auto detect tenancy / refactors (#10209)
* qa-core-ci-fixes

* global setup and teardown wip

* Updates to logs and setup

* Remove date and console mocking

* Update CI to spin up minimal dev env

* Update readme

* Fix scopeBackend.sh

* Ensure docker services are initialised before starting worker

* Lint

* Fix admin user being created on startup (#10219)

* use regular bootstrap and build

* Lint

* Temp: re-use global setup to get around app limit in QA
2023-04-05 15:33:56 +01:00
Mateus Badan de Pieri 6bd950717c mocked correctly 2023-04-05 14:14:55 +01:00
Budibase Staging Release Bot f02f996744 v2.4.44-alpha.8 2023-04-05 12:18:30 +00:00
Budibase Staging Release Bot 244b911efb v2.4.44-alpha.7 2023-04-04 14:53:06 +00:00
Budibase Staging Release Bot e94a05887f v2.4.44-alpha.6 2023-04-04 14:18:08 +00:00
Rory Powell 976b3a55ca Update logging to support dd trace attributes (#10086)
* Update logging middleware to integrate with pino for console logging

* Remove elastic apm references, use updated core middlewares

* Remove redundant LOG_LEVEL definitions

* Remove no longer needed jest logging overrides

* lint

* Backwards compat between console log helpers and pino

* Configurable DISABLE_HTTP_LOGGING

* Don't log 4xx as errors

* Remove redundant ENABLE_4XX_HTTP_LOGGING

* Cleanup migrations and event logging

* Improve bb-alert logging

* Add DISABLE_HTTP_LOGGING to helm chart

* Add ops endpoints for testing

* Disable http logging in dev

* Backwards compatible tracing implementation

* Naming update on http logging env var

* lint

* Update packages/backend-core/src/environment.ts

Co-authored-by: Adria Navarro <adria@revityapp.com>

* Merge

* Lint

* Fix console.warn failing mock by replacing with alerts mock instead

* Lint

---------

Co-authored-by: Adria Navarro <adria@revityapp.com>
2023-04-04 15:08:46 +01:00
mike12345567 e128642bce Merge branch 'develop' of github.com:Budibase/budibase into fix/BUDI-6754 2023-04-04 13:37:59 +01:00
Budibase Release Bot 917c5100ad v2.5.1 2023-04-04 09:24:27 +00:00
Budibase Staging Release Bot 7bc049c02b v2.4.44-alpha.5 2023-04-04 09:09:48 +00:00
Michael Drury ff98ba5a0a Adding a document update queue based on the events which can be used to track when certain documents have changed, using this for users and groups to detect when a re-sync is needed. 2023-04-04 00:25:15 +01:00
adrinr c0d7f2329a Extract valid email util 2023-04-03 16:42:30 +01:00
Budibase Staging Release Bot 2c9b354a1b v2.4.44-alpha.4 2023-04-03 15:13:42 +00:00
Budibase Release Bot be8dfd2ef1 v2.5.0 2023-04-03 13:10:52 +00:00
Budibase Staging Release Bot 52cc24121e v2.4.44-alpha.3 2023-04-03 11:33:44 +00:00
Adria Navarro e1669c8260 Merge pull request #10022 from Budibase/feature/scim
Feature - SCIM endpoints
2023-04-03 13:22:01 +02:00
Budibase Staging Release Bot 1c84b14582 v2.4.44-alpha.2 2023-04-03 11:09:04 +00:00
Mateus Badan de Pieri b6fd3b7cf7 primary tests cases 2023-04-03 11:28:20 +01:00
Budibase Release Bot 051d39690a v2.4.44 2023-04-02 18:15:15 +00:00
Budibase Staging Release Bot 97cfcb6b93 v2.4.44-alpha.1 2023-03-31 23:01:55 +00:00
Budibase Staging Release Bot 5e3cf7af1b v2.4.44-alpha.0 2023-03-31 22:37:36 +00:00
Mateus Badan de Pieri e6ac534fca isUserInAppTenant tests working 2023-03-31 15:07:28 +01:00
mike12345567 906d614c64 Merge branch 'merge-master-develop' of github.com:Budibase/budibase into merge-master-develop 2023-03-31 13:51:20 +01:00
Budibase Staging Release Bot 329beee00d v2.4.42-alpha.8 2023-03-31 12:34:45 +00:00
Michael Drury 1c6465edcb Merge pull request #10172 from Budibase/fix/budi-6797
Googlesheets onboarding - fix in cloud, disable self host
2023-03-31 13:19:29 +01:00
Rory Powell e9322be28f Merge branch 'develop' into merge-master-develop 2023-03-31 12:39:22 +01:00
Budibase Staging Release Bot 99bea8e7ce v2.4.42-alpha.7 2023-03-31 11:31:30 +00:00
Rory Powell 44aa19a99a Merge branch 'master' into merge-master-develop 2023-03-31 12:26:04 +01:00
Adria Navarro cfb93063b2 Merge pull request #10153 from Budibase/budi-6803-delete-users-when-group-removed
BUDI-6803 - Remove users that should not be there anymore when syncGlobalUsers
2023-03-31 13:15:11 +02:00
Budibase Staging Release Bot 9c8fcacf2a v2.4.42-alpha.6 2023-03-31 11:08:33 +00:00
Budibase Staging Release Bot 889ea356e6 v2.4.42-alpha.5 2023-03-31 10:43:16 +00:00
mike12345567 75baba76d6 Resolving PR comments. 2023-03-31 11:38:09 +01:00
Budibase Release Bot 2118bcea3a v2.4.43 2023-03-31 09:42:50 +00:00
Rory Powell 79bec7d86d Add force exit, -e flag and streaming to tests (#10151)
* Add force exit, -e flag and streaming to tests

* Temp remove script usage from worker tests

* Revert "Temp remove script usage from worker tests"

This reverts commit 5e0ed2e92d.

* Always fail test

* Ignore server test package from coverage report

* Unscope server only

* Run all server tests again

* Update backend core test script to fail when any command fails and force exit

* Don't try to require client in test

* Port memory limit fix from develop

* Remove always failing test and commented out block for client require

* Fixing some issues with test cases.

* Revert assertions in internalSearch.spec.js

---------

Co-authored-by: mike12345567 <me@michaeldrury.co.uk>
2023-03-31 10:32:13 +01:00
adrinr 48b964378b Remove all app cookie references (not really needed anymore) 2023-03-31 09:01:40 +01:00
mike12345567 42320b1d95 Merge branch 'develop' of github.com:Budibase/budibase into fix/budi-6797 2023-03-30 17:29:58 +01:00
Mateus Badan de Pieri 6404f07cfe first tenancy tests working 2023-03-30 17:27:13 +01:00
mike12345567 b19df9da22 Some final updates to get event spyOn working again. 2023-03-30 17:15:49 +01:00
Mateus Badan de Pieri d03b27f79f first 2 tests passing 2023-03-30 17:08:18 +01:00
mike12345567 24fc72657d Fixing all broken test cases after breaking out context fully from jestSetup/backend-core jest loading. 2023-03-30 16:35:25 +01:00
mike12345567 47897c8afa Basic moving around of assets. 2023-03-30 16:07:59 +01:00
mike12345567 d6f38bc0ba Merge branch 'develop' of github.com:Budibase/budibase into test/coverage-bckend-core 2023-03-30 14:14:25 +01:00
Budibase Staging Release Bot 46edc6575a v2.4.42-alpha.4 2023-03-30 12:59:11 +00:00
Budibase Staging Release Bot c60f9795ba v2.4.42-alpha.3 2023-03-30 12:48:33 +00:00
Mateus Badan de Pieri 02f33b59bb changing url 2023-03-30 13:42:04 +01:00
Rory Powell 38e6d61709 Explictly check for google datasource configured (#10165)
* Explictly check for google datasource configured

* Unit tests for getGoogleDatasourceConfig

* Update /api/global/configs/public test + lint
2023-03-30 13:40:59 +01:00
Mateus Badan de Pieri 0c10803cd9 Create file and function to AddTenantToUrl 2023-03-30 13:38:17 +01:00
Budibase Release Bot 01c9908696 v2.4.42 2023-03-30 11:37:03 +00:00
mike12345567 32c78ec9bf This makes it so that Googlesheets works correctly as part of onboarding in the Cloud, in self host the googlesheets onboarding option has been hidden as it is too complex to get the user to setup the correct integrations with their google account while doing the first time onboarding to an app. 2023-03-29 19:58:24 +01:00
Budibase Staging Release Bot e49ffc2466 v2.4.42-alpha.2 2023-03-29 18:08:50 +00:00
adrinr efff31e181 Test user groups 2023-03-29 17:02:56 +01:00
Budibase Staging Release Bot 77ab75e461 v2.4.42-alpha.1 2023-03-29 13:57:06 +00:00
Michael Drury d255bfad0b Merge pull request #10149 from Budibase/fix/budicloud-log-out
Budicloud logout on googlesheet auth
2023-03-29 14:47:15 +01:00
Budibase Staging Release Bot de4c3deb04 v2.4.42-alpha.0 2023-03-29 12:08:36 +00:00
mike12345567 7a18d19aa6 Merge branch 'master' of github.com:Budibase/budibase into merge-master-develop 2023-03-29 12:41:06 +01:00
Budibase Release Bot 1f0cf9b604 v2.4.41 2023-03-29 11:39:46 +00:00
Rory Powell d6992bbf94 Merge branch 'master' into merge-master-develop 2023-03-29 11:52:09 +01:00
Budibase Release Bot f941ba6fe8 v2.4.40 2023-03-29 07:57:56 +00:00
Budibase Staging Release Bot 31c708b479 v2.4.27-alpha.12 2023-03-28 20:20:49 +00:00
Budibase Staging Release Bot 40625f099c v2.4.27-alpha.11 2023-03-28 17:44:35 +00:00
mike12345567 b7fe83ad17 Adding a check to config for isDev - don't use multi-tenant google SSO default in dev. 2023-03-28 18:14:04 +01:00
adrinr 31f94f6c3c Fix tests 2023-03-28 16:46:23 +01:00
Adria Navarro e662e8febe Update packages/backend-core/src/configs/configs.ts
Co-authored-by: Rory Powell <rory.codes@gmail.com>
2023-03-28 16:46:23 +01:00
adrinr f7a34dedfa Use generic types instead of overrides 2023-03-28 16:46:23 +01:00
adrinr 1a9653a4db Tests configs 2023-03-28 16:46:23 +01:00
adrinr d0772ee142 Test when scim is disabled 2023-03-28 16:46:23 +01:00
adrinr 1838f75dbc Add test 2023-03-28 16:46:23 +01:00
adrinr 54265816cc Renames 2023-03-28 16:46:23 +01:00
adrinr 8a6400c7d0 Add viaScim to group events 2023-03-28 16:46:23 +01:00
adrinr 7821c637c6 Move event one level up 2023-03-28 16:46:23 +01:00
adrinr 099cc145bf Clean code 2023-03-28 16:46:23 +01:00
adrinr 04bd9dda9c Use new scim context functions 2023-03-28 16:46:23 +01:00
adrinr 62cd6a43f2 Remove "duplicated" events 2023-03-28 16:46:23 +01:00
adrinr 648247b10e Add scim info in update/delete user events 2023-03-28 16:46:23 +01:00
adrinr 6df08799bb Add isScim to user created event 2023-03-28 16:46:23 +01:00
adrinr 31eaa36883 Unify create events 2023-03-28 16:46:23 +01:00
adrinr 924c103ccc Use ids instead of email on the events 2023-03-28 16:46:23 +01:00
adrinr 26f077cc1c Event on delete 2023-03-28 16:46:23 +01:00
adrinr cbadf69a29 Dispatch event on user update 2023-03-28 16:46:23 +01:00
adrinr 7840470d83 Add create test 2023-03-28 16:46:23 +01:00
adrinr e6ff0a44fb Dispatch event on scim user created 2023-03-28 16:46:23 +01:00
adrinr 344a34ac7c Fix build errors 2023-03-28 16:46:23 +01:00
adrinr 4ac682a3c2 Move creators to structures 2023-03-28 16:46:22 +01:00
adrinr 771e3b8862 Bookmark optional 2023-03-28 16:46:22 +01:00
adrinr beb4118582 Renames 2023-03-28 16:46:22 +01:00
adrinr 43c25436c8 Test skip with filters 2023-03-28 16:46:22 +01:00
adrinr 348b06948b Test limits 2023-03-28 16:46:22 +01:00
adrinr 9a2eaaad42 Test deep pagination 2023-03-28 16:46:22 +01:00
adrinr 30c66748af Add skip tests 2023-03-28 16:46:22 +01:00
adrinr 47cc291551 Exclude session fields 2023-03-28 16:46:22 +01:00
adrinr f181cb02d0 Remove comment 2023-03-28 16:46:22 +01:00
adrinr 5ffa51d1f4 Rename 2023-03-28 16:46:22 +01:00
adrinr 41537cd00c Add comments 2023-03-28 16:46:22 +01:00
adrinr bf32801917 Handle skip on execution 2023-03-28 16:46:22 +01:00
adrinr a91e4b4da1 Make QueryBuilder vars private 2023-03-28 16:46:22 +01:00
adrinr 06245fee98 Make includeDocs private 2023-03-28 16:46:22 +01:00
adrinr 6c6d060550 Remove view 2023-03-28 16:46:22 +01:00
adrinr 1c828db694 Return total rows 2023-03-28 16:46:22 +01:00
adrinr c763c6fae5 Expose index 2023-03-28 16:46:22 +01:00
mike12345567 900e6c8129 Adding search index for user. 2023-03-28 16:46:22 +01:00
adrinr 621c06eada Add view 2023-03-28 16:46:22 +01:00
adrinr f62647f284 Feature tests 2023-03-28 16:46:22 +01:00
adrinr 2072664294 Move user search to core 2023-03-28 16:46:22 +01:00
adrinr f65ded4282 Allow bearer token for auth 2023-03-28 16:46:22 +01:00
Budibase Release Bot ceacffa9b6 v2.4.39 2023-03-28 15:18:48 +00:00
Budibase Staging Release Bot e753119043 v2.4.27-alpha.10 2023-03-28 14:54:57 +00:00
Budibase Staging Release Bot 117edaa8cb v2.4.27-alpha.9 2023-03-28 14:11:12 +00:00
Budibase Release Bot 071a6e0994 v2.4.38 2023-03-28 14:01:14 +00:00
Budibase Release Bot a3ee18824e v2.4.37 2023-03-28 10:55:00 +00:00
Budibase Staging Release Bot ba909a6442 v2.4.27-alpha.8 2023-03-28 00:46:16 +00:00
Michael Drury 2295440370 Merge pull request #10120 from Budibase/fix/budi-6657
Fix for user groups adding users to app user metadata tables
2023-03-28 01:35:03 +01:00
Michael Drury a82bb9f109 adding force exit to all CI jobs. 2023-03-27 23:47:30 +01:00
mike12345567 cf5316ec8d General fixes for open handles, attempting to find and close all issues in server which are stopping shutdown of Jest suite. 2023-03-27 19:38:49 +01:00
Budibase Release Bot a5b6635850 v2.4.36 2023-03-27 16:52:46 +00:00
Budibase Staging Release Bot 62d0a49761 v2.4.27-alpha.7 2023-03-27 16:40:48 +00:00
Budibase Staging Release Bot c93459ff4d v2.4.27-alpha.6 2023-03-27 13:54:21 +00:00
mike12345567 4b7446fb37 Merge branch 'develop' of github.com:Budibase/budibase into fix/budi-6657 2023-03-27 11:00:12 +01:00
Budibase Staging Release Bot c5eec07923 v2.4.27-alpha.5 2023-03-24 15:33:56 +00:00
Budibase Release Bot 32e1fd00d3 v2.4.35 2023-03-22 07:21:26 +00:00
mike12345567 82286d519f Fixing some issues with test cases. 2023-03-21 17:27:31 +00:00
Budibase Release Bot 775ae58003 v2.4.34 2023-03-20 10:42:57 +00:00
Michael Drury 34e8009f08 Merge pull request #9949 from Budibase/fix/blacklist
Blacklisting
2023-03-20 10:33:11 +00:00
Budibase Release Bot 1d6fa91249 v2.4.33 2023-03-20 09:22:52 +00:00
Budibase Staging Release Bot f57f2d3634 v2.4.27-alpha.4 2023-03-16 17:19:17 +00:00
mike12345567 39bfbdfac1 PR comments. 2023-03-16 16:49:31 +00:00
Budibase Release Bot 1d7abe7031 v2.4.32 2023-03-16 13:45:11 +00:00
mike12345567 c106c3291a Merge branch 'develop' of github.com:Budibase/budibase into fix/api-key-error 2023-03-16 13:39:24 +00:00
Budibase Release Bot ab6d95acc6 v2.4.31 2023-03-16 11:45:05 +00:00
Budibase Staging Release Bot 8b4b73c9f1 v2.4.27-alpha.3 2023-03-16 08:50:36 +00:00
Rory Powell de89b9112a Simplify errors framework (#10042)
* Simplify errors framework

* Use enum for ErrorCode

* Lint

* Update base BudibaseError type to use enum

* For for public error on UsageLimitError

* Build fix

* Build fix
2023-03-16 08:42:02 +00:00
mike12345567 29fc91d6d1 Making it obvious that API key is invalid - error otherwise is quite cryptic. 2023-03-15 17:26:21 +00:00
Budibase Staging Release Bot 08388311c9 v2.4.27-alpha.2 2023-03-15 16:53:36 +00:00
Budibase Staging Release Bot e5868c2b6d v2.4.27-alpha.1 2023-03-15 16:11:54 +00:00
Budibase Staging Release Bot b86bd34fff v2.4.27-alpha.0 2023-03-15 10:34:05 +00:00
Budibase Release Bot af55dd132e v2.4.30 2023-03-15 10:22:07 +00:00
Budibase Release Bot fe3a819b90 v2.4.29 2023-03-15 08:58:46 +00:00
Budibase Release Bot b11b1b447e v2.4.28 2023-03-14 14:47:54 +00:00
Budibase Release Bot 17cb6bc97d v2.4.27 2023-03-14 14:13:54 +00:00
mike12345567 63cf91218d Merge branch 'master' of github.com:Budibase/budibase into develop 2023-03-14 14:12:32 +00:00
Budibase Release Bot 10f1d1f142 v2.4.26 2023-03-14 10:17:02 +00:00
Budibase Release Bot c62c6badd5 v2.4.25 2023-03-14 09:50:17 +00:00
Budibase Staging Release Bot a7944f4ef8 v2.4.12-alpha.6 2023-03-14 09:11:22 +00:00
Budibase Release Bot c7fb06ef39 v2.4.24 2023-03-14 08:28:08 +00:00
Budibase Release Bot aa4c9f6fcb v2.4.23 2023-03-13 15:42:10 +00:00
Budibase Release Bot 3ad91ec018 v2.4.22 2023-03-13 15:30:10 +00:00
Budibase Release Bot 7227bb6a91 v2.4.21 2023-03-13 15:11:44 +00:00
Rory Powell e116941750 Rotatable secrets (#9982)
* Rotatable secrets

* Set new api encryption key var

* Lint

* Use fallback keys instead of array

* Point api encryption key to dedicated value

* Add API_ENCRYPTION_KEY to cli

* Lint + add api encryption key to env files
2023-03-13 15:02:59 +00:00
Budibase Staging Release Bot eabd4f3b79 v2.4.12-alpha.5 2023-03-13 13:22:50 +00:00
Budibase Staging Release Bot e6bd908a1b v2.4.12-alpha.4 2023-03-13 12:20:05 +00:00