Commit Graph

5957 Commits

Author SHA1 Message Date
adrinr 18a0675545 Fix jest.setup 2023-01-30 18:18:23 +00:00
mike12345567 2314ede068 Adding context update to test case since it used to rely on the context update functionality. 2023-01-30 10:59:54 +00:00
mike12345567 86f670fabe Adding test case for secret-value replacement, to confirm that datasources API correctly replaces secret values with the actual secret. 2023-01-27 18:27:03 +00:00
mike12345567 93a8b0583c Fixes for tests, allow any handlebars for datasources (dynamic vars). 2023-01-27 18:06:39 +00:00
Dean 5538938c4f Expanding mime check for cloud tarball import 2023-01-27 18:01:12 +00:00
mike12345567 7ca5c877a1 Updating datasources to use new onlyFound option. 2023-01-27 15:21:04 +00:00
mike12345567 dd67f106ed Adding a onlyFound option to our handlebars system so that we can enrich only the parts we have and leave other components for further enrichment. 2023-01-27 15:15:07 +00:00
mike12345567 abe17e6c0e Fixing issue with apps not being created correctly due to the recent update to context. 2023-01-27 13:37:36 +00:00
Rory Powell be5b8347ef Merge branch 'develop' into feature/environment-variables 2023-01-27 11:27:11 +00:00
adrinr 79c48bf6bc Remove wrong createApp 2023-01-26 18:24:20 +00:00
adrinr e11f1d1d44 Fix issues with parallel tests and self/cloud modes 2023-01-26 18:20:21 +00:00
mike12345567 d189fc82f8 Adding test cases as per PR comments. 2023-01-26 18:20:21 +00:00
mike12345567 2e099a7029 Quick updates for #8989 - this issue appeared to be fixed already but just adding a few extra bits of security to make sure that looping only occurs when valid data is found in the binding. 2023-01-26 18:20:21 +00:00
Adria Navarro Redo bf0f7d5bab Fix user test 2023-01-26 18:20:21 +00:00
Adria Navarro Redo 48ee427178 Fix issues with parallel tests and self/cloud modes 2023-01-26 18:20:21 +00:00
Adria Navarro Redo 5933422a79 Fix date related tests 2023-01-26 18:20:21 +00:00
Adria Navarro Redo 4ac3102f2a Fix automation test 2023-01-26 18:20:21 +00:00
Adria Navarro Redo 498d1776e0 Fix snapshots test 2023-01-26 18:20:21 +00:00
Adria Navarro Redo 7b935d8476 Set expected id 2023-01-26 18:20:21 +00:00
Adria Navarro Redo d46ef8e68c Fix application delete tests 2023-01-26 18:20:21 +00:00
Adria Navarro Redo 5abb095f58 Use multitenancy for tests 2023-01-26 18:20:21 +00:00
adrinr 9bcb33285c Fix timespan issues 2023-01-26 18:20:05 +00:00
mike12345567 c99b4ae3a3 Adding test cases as per PR comments. 2023-01-25 18:27:58 +00:00
Adria Navarro be24db0a9b Don't create the apps on test 2023-01-25 10:13:35 +00:00
mike12345567 b138d86318 Quick updates for #8989 - this issue appeared to be fixed already but just adding a few extra bits of security to make sure that looping only occurs when valid data is found in the binding. 2023-01-24 19:09:36 +00:00
mike12345567 f82e8f1f20 Don't check whether or not a datasource uses env vars when the function specifically includes the env vars, always fetch them so that they can be returned and put into context for queries to use. 2023-01-24 18:56:19 +00:00
Adria Navarro 1b3c7bb6f8 Wipe db before tests 2023-01-24 18:51:15 +00:00
Adria Navarro 9bdc54f0aa Remove mocks 2023-01-24 17:48:49 +00:00
Adria Navarro 730c40e6b9 tweak tests 2023-01-24 15:46:50 +00:00
Peter Clement 8cf63278d8 ensure object is passed to processObjectSync 2023-01-24 15:44:34 +00:00
Adria Navarro dbdc3e89d9 Merge branch 'feature/test-image' into feature/dependencies-image 2023-01-23 18:43:36 +00:00
Adria Navarro 286e6f4123 Merge branch 'develop' into feature/test-image
# Conflicts:
#	packages/worker/yarn.lock
2023-01-23 18:40:44 +00:00
Adria Navarro b0ffdc079d Merge branch 'feature/test-image' into feature/dependencies-image 2023-01-23 18:08:19 +00:00
Adria Navarro 359e2d1d1f Move more stuff to .env.test 2023-01-23 18:02:28 +00:00
Adria Navarro e9cd0984d9 Dry, moving env variables to a .env.test file 2023-01-23 17:41:32 +00:00
Adria Navarro 30830503c9 Set parameters 2023-01-23 16:53:34 +00:00
melohagan c72bce9e4a
Add fields for MongoDB SSL cert file paths (#8260)
* Added fields for tls certificate files

* lint

* Only include cert fields if SELF_HOSTED

* lint

* Refactor getSchema function

* Add datasource field group with accordion

* Handle no display column on fieldGroup field

* Override text transform accordian header

* Renamed from TLS to SSL in UI config

* readable flag

* Add accordion component

* Refactor
2023-01-23 16:46:02 +00:00
Adria Navarro 9225b658ae Use couchdb from docker container 2023-01-23 16:45:06 +00:00
Dean a1faeece3c Merge remote-tracking branch 'origin/develop' into feature/configurable-data-export 2023-01-23 11:43:15 +00:00
melohagan cdcd00ac20
Treat bigint as string (#8877)
* Make bigint string type

* Handle BigInt relationships

* remove unused var

* Revert CreateEditRelationship modal changes
2023-01-22 19:19:16 +00:00
mike12345567 8a7922110d Merge branch 'develop' of github.com:Budibase/budibase into feature/test-image 2023-01-20 19:55:11 +00:00
melohagan d274f3af1e
SQL filtering: Always escape key in LIKE statements (#9278)
* Always escape key in like statements

* lint
2023-01-20 14:03:14 +00:00
Adria Navarro a531f2edba Update openapi specs 2023-01-20 12:12:59 +00:00
Adria Navarro e9ea2290c6 Fix types 2023-01-20 12:03:00 +00:00
Adria Navarro f19b68e5ee Extra typings 2023-01-20 11:48:11 +00:00
Adria Navarro 616c5d7d59 Fix broken tests 2023-01-20 10:29:11 +00:00
Adria Navarro ae748d78d2 Fix old tests 2023-01-20 10:12:52 +00:00
Adria Navarro 6d5a8bba84 Fix types 2023-01-20 09:58:59 +00:00
Adria Navarro 82035f0114 Add enrich test 2023-01-19 20:09:39 +00:00
mike12345567 e7e6e3419e Some minor updates after reviewing. 2023-01-19 19:10:41 +00:00
Adria Navarro 0cd647f142 Test delete multiple 2023-01-19 17:28:42 +00:00
Adria Navarro 2cd4d106e1 Change tests to use internal apis 2023-01-19 17:23:48 +00:00
Adria Navarro 63c6728825 Add get all rows tests 2023-01-19 16:46:05 +00:00
Adria Navarro f685ad6af7 Fix validate schema 2023-01-19 16:43:39 +00:00
Adria Navarro a900a47e49 Rename file 2023-01-19 16:21:37 +00:00
Adria Navarro b1894fac48 Use right tableid 2023-01-19 16:10:29 +00:00
Adria Navarro 0862dfe2eb Merge remote-tracking branch 'origin/develop' into test/9339-sqlpostgres-row-api-test-suite 2023-01-19 15:25:46 +00:00
Mateus Badan de Pieri 6e5c126d5a adding validation for envvar bindings
adding validation for envvar bindings
2023-01-19 15:07:56 +00:00
melohagan e35bb2db3d
Do not set sort column if display is formula (#9378)
* Unset sort column if it is formula

* Null safety
2023-01-19 13:32:45 +00:00
Adria Navarro 39f3cc57eb Add "get" tests 2023-01-19 11:44:48 +00:00
Adria Navarro df418daf40 Add pagination and sort tests 2023-01-19 11:35:00 +00:00
Adria Navarro eba811787f Add search query tests 2023-01-19 11:20:20 +00:00
Adria Navarro cb0f45e47c Improve tests 2023-01-19 11:06:41 +00:00
Adria Navarro 2a0217abe2 Add search test 2023-01-19 11:00:51 +00:00
Adria Navarro 6c0adb2e31 Merge branch 'develop' into test/9339-sqlpostgres-row-api-test-suite 2023-01-19 10:05:58 +00:00
mike12345567 f8a2c9e169 Updating datasource API to remove secrets when returning datasources. 2023-01-18 19:16:19 +00:00
Adria Navarro 0c6731c2ed Test delete 2023-01-18 17:21:17 +00:00
Adria Navarro a024a1e577 Add update test 2023-01-18 17:11:52 +00:00
Adria Navarro 18df47b1f4 Dry tests 2023-01-18 17:07:09 +00:00
Adria Navarro b15ce4f4e4 Adding more tests 2023-01-18 16:48:18 +00:00
Adria Navarro 029453eab5 Retrieve row test 2023-01-18 16:46:40 +00:00
Adria Navarro 0bfef72480 Create an app before each test 2023-01-18 16:06:45 +00:00
Andrew Kingston c3f5e33b29
Portal redesign (#9336)
* Update BB logo to black

* Update top nav bar and core layout

* Add redesign for apps pages

* Update user and groups pages

* More WIP portal redesign!

* Fix top nav colours and fix selected tab not updating

* Remove log

* Update copy on settings pages

* Update and standardise page headers and subtitles, and remove side nav titles

* Update font styles to allow for easy customisation

* Update button styles to always use newStyles, update auth page styles

* Update settings pages to new designs

* Update structure for account pages

* Add initial rewrite of app overview section

* Update config checklist to properly center

* Update app overview version and name/url screens

* Add tooltip to explain why URL cannot be changed until unpublishing

* Update overview automation history tab

* Update overview backups page

* Rewrite app overview access tab

* Update table hover colours

* Remove scrolling from tables when not required and stop selects from updating their own state locally

* Update table styles to support flexible column widths much better

* Fix extremely long strings in breadcrumbs not wrapping

* Fix multiple issues with long text overflow

* Fix flashing in version settings page

* Fix loading bugs in app backups page

* Add sidebar for portal and use it for automation history. Fix multiple overflow and scrolling issues

* Tidy up

* Update user details page to use tables and match designs

* Update users detail page

* Update user and group details pages with new tables

* Fix automation error linking from apps page and improve automation fetching logic in automation history

* Move theme and API key into user profile dropdown instead of settings

* Move settings before account and show plugins for devs

* Convert plugins page to table and update components and modals

* Update links when going back from the builder

* Update plugin search placeholder

* Fix URLs in app overview

* Properly handle text overflow in plugins table

* Remove getting started checklist

* Fix checklist removal and fix profile modal

* Update email details page to match new designs

* Cleanup

* Add licensing and env logic to determine which account links to show

* Update upgrade button URL for cloud accounts

* Update app list to use a more compact style

* Make core page layout responsive and update apps list to be responsive

* Update mobile design of apps page

* Update more pages to be responsive and add mobile specific components

* Refactor main portal page into multiple components

* Update multiple pages to be responsive and improve loading experience

* Make automation history page responsive

* Update backups page to be responsive

* Update pickers to use absolutely positioned root popover so that overflow does not matter

* Fix some responsive styles

* Fix update link in app overview

* Improve dropdown logic

* Lint

* Update click outside handler to handle modals properly

* Remove log

* Fix mobile menu upgrade button not closing menu

* Hide groups page if disabled at tenant level

* Centralise menu logic and show full menu on mobile

* Update app access assignment and fix backups table

* Ensure avatars cannot be squished

* Standardise disabled field text colour

* Allow developer users to access users, groups and usage pages

* Allow readonly access to users and groups for developer users

* Remove logs

* Improve users page loading experience

* Improve responsiveness on apps list page and fix discussions link styles

* Update spacing on user and group detail page and fix usage page showing wrong copy

* Fix logo override not working

* Pin minio version to an old one that supports the fs backend in dev

* Shrink upgrade button

* Shrink user dropdown

* Update assignment modal text

* Remove clickable visual styles from plugins

* Always show groups section in app access page

* Update app overview button styles to include more CTAs

* Hide edit and view links in more menu on overview page unless on mobile

* Make usage stats responsive and fix layout issues

* Add comment to docker-compose config
2023-01-18 13:56:53 +00:00
Adria Navarro b47b693098 Clean code 2023-01-18 13:55:24 +00:00
Adria Navarro 45b1e9fee3 Add test for multiple rows 2023-01-18 12:26:26 +00:00
Adria Navarro 0beb6d97b1 Use postgres as datasource 2023-01-18 12:19:40 +00:00
Adria Navarro d91634b6d0 Fix types 2023-01-18 11:50:00 +00:00
Adria Navarro d40aef8830 More typings 2023-01-18 10:45:42 +00:00
Adria Navarro ac3905c195 Implement test 2023-01-17 17:39:59 +00:00
Adria Navarro 153eb392c2 Add basic test 2023-01-17 17:22:31 +00:00
Adria Navarro 36c3cfc27d Type tests utils 2023-01-17 17:19:39 +00:00
Adria Navarro 19ab0ceb40 Prevent killing tests when stopping the server 2023-01-17 16:07:26 +00:00
Adria Navarro 39b33aaf5c Treat new tests are "no tests" 2023-01-17 16:05:02 +00:00
Adria Navarro 1ce8807dfd Merge remote-tracking branch 'origin/develop' into test/9339-sqlpostgres-row-api-test-suite 2023-01-17 15:25:25 +00:00
mike12345567 20a677e510 Merge branch 'develop' of github.com:Budibase/budibase into feature/environment-variables 2023-01-17 15:25:17 +00:00
Gerard Burns 36f9bd8d71
JSON import changes (#9288)
* JSON import changes

* Fix lockfiles

* PR Feedback, fix tests

* fix tests

* pr feedback
2023-01-17 15:07:52 +00:00
Adria Navarro bbad666004 Delete apps on end 2023-01-17 10:28:51 +00:00
mike12345567 4bc47c1563 Minor updates to the context system and also adding env vars to automation context. 2023-01-16 16:47:59 +00:00
Adria Navarro e694fa4dcf Typing supertest parameters 2023-01-16 15:35:41 +00:00
mike12345567 94203b3a2c Merge branch 'develop' of github.com:Budibase/budibase into feature/environment-variables 2023-01-16 14:26:26 +00:00
Martin McKeaveney 47b6dc86da
allow all user bindings in SQL queries (#9354) 2023-01-16 12:24:32 +00:00
Adria Navarro 2ebabbe0e7
Merge pull request #9337 from Budibase/bug/#7220-removing-user-from-auth-does-not-remove-from-app
Bug - #7220 removing user from auth does not remove from app
2023-01-16 10:49:27 +00:00
Adria Navarro 46e8986566 Add test 2023-01-16 10:19:05 +00:00
Adria Navarro 17b7e18fe6 Type request and body 2023-01-16 10:15:00 +00:00
mike12345567 186aeeec2d Adding the ability to store environment variables to context, to make them more easily available/re-usable, as well as exposing them to queries. 2023-01-13 19:53:46 +00:00
Adria Navarro ce104b2bc9 Fix undefineds 2023-01-13 14:48:01 +00:00
Adria Navarro a183c85f8c Unify endpoints 2023-01-13 14:45:04 +00:00
Adria Navarro 8e8b0f9b4e Fix copy on reponse message 2023-01-13 13:33:40 +00:00
Adria Navarro fe0b70d843 Replace BBContext for Ctx 2023-01-13 13:31:48 +00:00
Adria Navarro bc833ecf71 Delete instead of deactivating 2023-01-13 10:26:05 +00:00