1
0
Fork 0
mirror of synced 2024-07-02 04:50:44 +12:00
Commit graph

482 commits

Author SHA1 Message Date
mike12345567 8f0b25879a Merge branch 'fix/builder-roles' of github.com:Budibase/budibase into feature/opinionated-sql 2021-06-04 13:10:57 +01:00
mike12345567 9d3c28ecbf Fixing issue with builder not always having the correct roles to view an app - global builders are now admins in all apps. 2021-06-04 12:13:29 +01:00
Martin McKeaveney 7ecdb60cc6 Joi schema validation for plus datasources 2021-06-04 10:50:02 +01:00
Martin McKeaveney 2ab9d5e31c endpoint for plus datasources 2021-06-03 17:56:04 +01:00
mike12345567 2057985631 Fixing issue with roles not being added correctly to global users and cleaning up roles when an app is deleted. 2021-06-01 15:58:40 +01:00
mike12345567 397a4d883f Fixing server test cases. 2021-05-27 15:40:55 +01:00
mike12345567 24b3635b9b Linting. 2021-05-27 14:55:48 +01:00
mike12345567 853f519f92 Formatting. 2021-05-27 14:53:47 +01:00
mike12345567 bc6660fd0e Updating permissions to allow roles other than builder/admin to use apps properly. 2021-05-27 14:53:41 +01:00
mike12345567 c311bae7b9 Fixing an issue with redirect loop in auth, 2021-05-27 12:05:31 +01:00
Martin McKeaveney 38e6790146 fix test 2021-05-24 22:50:58 +01:00
Martin McKeaveney 5c60629545 removing electron config 2021-05-24 22:39:13 +01:00
mike12345567 8c8ac18ac0 Fixing broken server test cases. 2021-05-21 16:02:21 +01:00
mike12345567 f56250824c Adding a debounced updated at timestamp to applications. 2021-05-21 13:07:10 +01:00
mike12345567 fba63134d1 Fixing some issues found when testing. 2021-05-20 20:48:24 +01:00
mike12345567 69a54aad83 Fixing test cases. 2021-05-20 16:18:09 +01:00
mike12345567 ed63d1d8f2 Updating user test cases. 2021-05-19 16:24:20 +01:00
mike12345567 ecc1527833 Merge branch 'next' of github.com:Budibase/budibase into user-app-list 2021-05-19 15:58:17 +01:00
mike12345567 6d6eee2a93 Adding the ability to get all apps, with the status attached. 2021-05-19 15:09:57 +01:00
mike12345567 1956d9765e Adding admin only endpoint, removing the ability to create/delete global users from the app server and adding a global self user update. 2021-05-19 13:17:50 +01:00
mike12345567 ed4455b450 Fixing test cases. 2021-05-19 11:27:19 +01:00
Martin McKeaveney dbabe0afaf
Merge pull request #1496 from Budibase/feature/draft-apps
Feature/draft apps
2021-05-18 11:25:51 +01:00
Martin McKeaveney 6dc288fcc3 merge 2021-05-16 21:29:07 +01:00
Martin McKeaveney 0ed0550e73 revert functionality working 2021-05-16 21:25:37 +01:00
mike12345567 ac0f620b38 Formatting. 2021-05-14 16:32:51 +01:00
mike12345567 2d0122f7d6 A general re-work of some parts of the auth lib, as well as moving roles/permissions around to make it possible to build an admin API which has role knowledge. 2021-05-14 15:43:41 +01:00
mike12345567 e560390d8a Fixing an issue with portal calls causing the app to be re-locked. 2021-05-13 15:32:03 +01:00
Andrew Kingston da40086c0b Allow multipage searches and implement optional pagination to data providers 2021-05-13 12:26:18 +01:00
mike12345567 2fa7ee5bcb Formatting. 2021-05-12 17:43:29 +01:00
mike12345567 3811acbaec Adding dev endpoint to clear lock. 2021-05-12 17:43:01 +01:00
mike12345567 c9d903a92f General cleanup, doing away with the concept of hosting in the builder and the generally confusing difference between cloud, self hosting and running locally - server is simply always a server now. 2021-05-11 17:49:26 +01:00
Andrew Kingston 3eabaea42f Merge branch 'next' of github.com:Budibase/budibase into lab-day-search 2021-05-11 10:47:52 +01:00
mike12345567 96f036b720 Updating testing system across the board after playing around with it, having the worker tests run when top level test is ran, fixing environment in worker when testing, removing the use of redis (replacing with ioredis-mock) when in test. 2021-05-05 17:49:34 +01:00
Martin McKeaveney a4cc4191b4 merge with next 2021-05-04 11:40:59 +01:00
Andrew Kingston 556236ebce Add explicit prettier options 2021-05-04 11:32:22 +01:00
Martin McKeaveney 4618dfd2d1 merge 2021-05-04 09:55:14 +01:00
Keviin Åberg Kultalahti 4ec2e7d01f lint:fix 2021-05-03 09:31:09 +02:00
Martin McKeaveney da25d8b6e5 tidy up 2021-04-30 15:44:37 +01:00
Andrew Kingston 717b0b0af6 Expose search API endpoint 2021-04-29 14:55:33 +01:00
Martin McKeaveney b4051dfed6 merge with next 2021-04-29 11:45:47 +01:00
mike12345567 d985d338ec Updating test cases and some re-work of the email system. 2021-04-23 18:07:39 +01:00
mike12345567 bb5dbf27aa Some re-work of the auth package, making it a bit easier to use/less likely to make a mistake. 2021-04-21 16:42:44 +01:00
mike12345567 ebaf8c3a2f Updating cypress tests to work with the new user ID system. 2021-04-21 11:33:12 +01:00
mike12345567 f6425524a4 Updating test cases now that login has changed a bit. 2021-04-20 17:27:23 +01:00
mike12345567 7612b5ed16 Swapping over everything to use the new user ID and updating everything after some end to end testing. 2021-04-20 17:17:44 +01:00
mike12345567 ade007482c Updating the server to remove use of the email in the user ID. 2021-04-19 16:26:33 +01:00
mike12345567 fb4e52baff Updating worker/server to run in cypress properly. 2021-04-15 16:25:48 +01:00
mike12345567 cfbd75b36d Some changes to initial login form, improvements based on testing and attempts to fix cypress test failures. 2021-04-15 15:57:55 +01:00
mike12345567 20a16e07a1 Removing test case that isn't valid anymore. 2021-04-14 17:27:58 +01:00
mike12345567 e9767eabc5 Adding some controls around cookies, expiring them when a 403 is hit. 2021-04-14 15:43:34 +01:00
mike12345567 76608fcdcd Fixing up tests, need to mock most of the worker functionality so that worker doesn't need to run during tests. 2021-04-13 20:25:43 +01:00
Martin McKeaveney 654a53fc0a Authentication working on builder homepage, integration with currentapp middleware 2021-04-13 11:56:57 +01:00
mike12345567 46b975186c Merge branch 'next' of github.com:Budibase/budibase into feature/global-user-management 2021-04-13 10:26:40 +01:00
mike12345567 698c983056 Updating fetch self to get the global user as well as local metadata. 2021-04-12 15:54:14 +01:00
Martin McKeaveney d8a0f0f747 merge 2021-04-12 13:41:46 +01:00
Martin McKeaveney 9eb6b541e9 merge 2021-04-12 13:39:53 +01:00
mike12345567 e2762e046d Removing test case which was no longer needed. 2021-04-12 12:19:45 +01:00
Martin McKeaveney b5a5df7f60 login page 2021-04-11 11:35:55 +01:00
mike12345567 792114ef46 First pass of global user configuration through existing user API with role mappings. 2021-04-08 16:58:33 +01:00
Martin McKeaveney 2d7823f314 Merge branch 'dev-experience' of https://github.com/Budibase/budibase into feature/global-user-management 2021-04-07 17:17:00 +01:00
mike12345567 29787032f0 Fixing an issue with builder auth, adding a temporary endpoint which the server can set builder token on. 2021-04-07 16:08:29 +01:00
mike12345567 fed4910ac8 Merge branch 'dev-experience' of github.com:Budibase/budibase into feature/global-user-management 2021-04-07 15:22:22 +01:00
mike12345567 62360b1025 Fixing component definition test cases and fixing an issue found by authorized test case. 2021-04-07 11:27:15 +01:00
mike12345567 73e97e50f4 Updating some route middleware security. 2021-04-01 14:38:31 +01:00
mike12345567 3672188f4e Some refactoring of utilities and constants, as well as documenting work carried out here. 2021-04-01 14:11:58 +01:00
mike12345567 8ea12c30a6 Updating how the client library is served in development. 2021-04-01 12:48:38 +01:00
mike12345567 bdb751a8ff Adding a nuke stack option at top of repo and then setting up proxy for dev experience through envoy. 2021-04-01 12:02:31 +01:00
Andrew Kingston 96e8dfc68f Support serving vite-bundled builder from server 2021-03-31 19:55:55 +01:00
mike12345567 865baf6d16 Removing use of the , replacing to ctx.appId to make it clear appId not part of the auth. 2021-03-29 17:32:05 +01:00
Martin McKeaveney 33fe760959 scripting block 2021-03-26 14:56:34 +00:00
mike12345567 3916b9a29a Some minor updates to make search test cases pass. 2021-03-26 14:11:24 +00:00
mike12345567 a5fd8d0e33 Rewriting search to use the new couchdb 3.0 search functionality. 2021-03-25 23:42:50 +00:00
mike12345567 f16fe2d8d2 Quick change to make sure the client lib always served correctly in test. 2021-03-25 16:08:09 +00:00
mike12345567 1cf0027c6e Some cleanup fixes for tests that makes sure temp directory isn't getting out of control. 2021-03-25 14:46:32 +00:00
Martin McKeaveney 28c544490c script block 2021-03-25 11:17:04 +00:00
Martin McKeaveney f4c7455936 merge 2021-03-24 20:44:52 +00:00
mike12345567 73cf53d149 Getting rid of the CLOUD environment variable, this makes no sense anymore, now there is isDev() and isProd() which will work out the current state of the cluster. 2021-03-24 18:21:23 +00:00
mike12345567 e9ee49cce1 Removing test case that didn't make sense anymore. 2021-03-23 18:06:36 +00:00
mike12345567 e715423544 Fixing some test cases that were affected by file system refactor. 2021-03-23 18:04:53 +00:00
mike12345567 19b5b41953 Main work of file system refactor now complete, ready to test more fully - most test cases passing, need to look through them more thoroughly and make sure everything still makes sense. 2021-03-23 17:54:02 +00:00
Martin McKeaveney afaa706e07 simplify try catch in manage script 2021-03-23 11:01:33 +00:00
mike12345567 94fa07bd18 Removing FS from templates. 2021-03-22 16:39:57 +00:00
mike12345567 bf2adb0458 Updating API keys and changing over system to allow use of builder endpoints when running in cloud. 2021-03-22 16:39:11 +00:00
mike12345567 95ee615006 Work in progress, have refactored the templating system to remove local templates, application and template system now work through minio with no file access. 2021-03-19 19:07:47 +00:00
mike12345567 8821eba634 Working on moving file system access around, starting by centralising it then working out what needs to be moved to object store and how. 2021-03-19 14:43:41 +00:00
mike12345567 298eb7f444 Merge branch 'next' of github.com:Budibase/budibase into browser-compat 2021-03-16 13:50:31 +00:00
mike12345567 2f608b3320 Merge branch 'master' of github.com:Budibase/budibase into tests/automation-tests 2021-03-15 20:44:54 +00:00
mike12345567 e8c000dd51 Adding more test cases for the controllers, tables and views weren't as well covered as required. 2021-03-15 16:36:38 +00:00
Andrew Kingston 973cbb5a75 Remove electron specific attachment uploads inside the builder 2021-03-15 12:10:21 +00:00
Martin McKeaveney 7da92451d6 adding correct path delimiter for windows 2021-03-14 18:10:38 +00:00
Martin McKeaveney 8f6538f33a make path windows friendly 2021-03-14 17:57:28 +00:00
mike12345567 571ac3cf06 Testing some of the automation actions (still a few to complete) and adding quick test case for the self host stuff. 2021-03-11 18:29:48 +00:00
mike12345567 40b9743c3c Fixing an issue with tmp directory filling up with different test apps. 2021-03-11 12:09:47 +00:00
mike12345567 d9217b1148 Updating row tests, reducing console logging during tests for speed and clarity, testing some misc endpoints and updating search functionality to use a starts with operator when working with strings on rows. 2021-03-10 17:55:42 +00:00
mike12345567 e78f73a76d Updating application tests to run a lot deeper, which required updating some other tests to account for creation of empty screens and layouts. 2021-03-10 12:56:30 +00:00
mike12345567 08d15f9d03 Adding auth tests. 2021-03-10 12:20:07 +00:00
mike12345567 2b7f445787 Fixing issue with datasource find endpoint, removing un-used code and updating data source test. 2021-03-10 11:56:52 +00:00
mike12345567 63f081930f Upping automation coverage by adding webhook testing and increasing screen coverage. 2021-03-10 11:47:39 +00:00
mike12345567 3f88ed391f Upping user test cases to cover all of controller. 2021-03-09 17:09:18 +00:00
mike12345567 61110be9d0 Adding test cases for backup and integration. 2021-03-09 16:28:41 +00:00
mike12345567 daaf352b89 Adding test cases for component, templates and hosting as well as updating some existing test cases. 2021-03-09 16:07:44 +00:00
mike12345567 0c51bb7275 Updating query test to include mocked preview/execute and adding layout tests. 2021-03-09 11:56:32 +00:00
mike12345567 f1abb9194f Adding API key tests. 2021-03-08 18:18:53 +00:00
mike12345567 8a0a0dabdb Adding a query find and planning to tackle mocking out the preview and execute functionality. 2021-03-08 18:03:26 +00:00
mike12345567 039de61de3 Some fixes after testing webhooks as well as adding test cases for all webhook endpoints. 2021-03-08 15:57:19 +00:00
mike12345567 a3257d37e6 Updating routing test cases. 2021-03-08 14:49:19 +00:00
mike12345567 28a644958f linting. 2021-03-05 12:55:52 +00:00
mike12345567 67f47df718 Reducing the boilerplate needed around setting up a test case. 2021-03-05 12:11:44 +00:00
mike12345567 af3d84a1d9 Some more quick modifications to test re-factor before PR. 2021-03-05 11:24:15 +00:00
Martin McKeaveney 78c550ff30 remove variable 2021-03-04 17:55:58 +00:00
Martin McKeaveney e2a6bb935e refactor view tests 2021-03-04 17:55:24 +00:00
mike12345567 0be5eb0b98 Moving comment. 2021-03-04 17:12:44 +00:00
mike12345567 06e95e11ea Small amount more user refactoring, removing use of couchTestUtils. 2021-03-04 17:06:33 +00:00
Martin McKeaveney 41043ee6ff Merge branch 'feature/test-refactor' of https://github.com/Budibase/budibase into feature/test-refactor 2021-03-04 16:54:50 +00:00
Martin McKeaveney 50f1535f2c refactor user test 2021-03-04 16:54:44 +00:00
mike12345567 2a962b1c03 Refactoring table testcases. 2021-03-04 14:36:59 +00:00
mike12345567 eacf3387de Refactoring row test cases. 2021-03-04 13:07:33 +00:00
mike12345567 678423300d Refactoring to remove the use of the supertest, making this part of the test config. 2021-03-04 12:32:31 +00:00
mike12345567 26c63c7d9b Refactoring query tests. 2021-03-04 10:57:41 +00:00
mike12345567 f7cdced688 Switching out how headers are handled, and updating the permissions test. 2021-03-04 10:40:27 +00:00
mike12345567 f10ac0a178 Refactoring data source test cases. 2021-03-04 10:05:50 +00:00
mike12345567 79818122fd Re-writing automation tests. 2021-03-03 18:41:49 +00:00
mike12345567 f55c5dec00 Initial work on test refactoring, laying the utilities down which will be the basis of new testing framework, interacting directly with the controllers. 2021-03-03 17:52:41 +00:00
mike12345567 554b5a27c6 Linting. 2021-02-27 10:45:01 +00:00
mike12345567 0c3e287fa8 Very minor change due to issue #1204 - wasn't allowing unauthenticated requests through. 2021-02-27 10:15:05 +00:00
mike12345567 d34a9e12e2 Having the server send out _id and primaryDisplay in an object for relationships, also accepting objects and coercing them on way in. 2021-02-25 09:41:04 +00:00
Martin McKeaveney 3c3677a88e allow empty params 2021-02-23 10:06:55 +00:00
mike12345567 24a07bae41 Some major performance optimisations, found that db.find is not fast unless its indexed, there is also no point in indexing for our internal relationship searching, however we can use the allDocs call. This will likely be slow for very large calls (say 100K records) but for these sort of calls we really need to paginate anyway. 2021-02-18 13:38:57 +00:00
mike12345567 f572bc836e work in progress, enriching in the display names. 2021-02-17 18:04:21 +00:00
mike12345567 cecc8e4306 Starting with some work towards a deeper enrichment of rows. 2021-02-17 17:09:59 +00:00
mike12345567 1c66a6f2e2 Fixing test case. 2021-02-16 16:46:18 +00:00
mike12345567 c812823c3f Merge branch 'develop' of github.com:Budibase/budibase into feature/autocolumns 2021-02-12 18:03:52 +00:00
mike12345567 da59ca30e6 Merge branch 'develop' of github.com:Budibase/budibase into feature/autocolumns 2021-02-12 13:40:27 +00:00
mike12345567 3fd557bf08 Flipping RBAC implementation to use levels -> role for resource perms API and resource -> level -> role for full fetch (please note full fetch will only work for resources that have a custom permission in the system somewhere, everything else simply defaults to standard. 2021-02-11 18:13:09 +00:00
mike12345567 a3ae17be8e Merge branch 'master' of github.com:Budibase/budibase into rbac-ui 2021-02-11 13:01:07 +00:00
Andrew Kingston aec4939b93 Merge branch 'master' of github.com:Budibase/budibase into form-builder 2021-02-10 18:34:45 +00:00
Martin McKeaveney 63e0e187a6 control RBAC from data section 2021-02-10 18:18:31 +00:00
mike12345567 7a2405c756 First lot of work to update the auto fields into schema. 2021-02-10 17:55:19 +00:00
mike12345567 fa921951a3 Merge branch 'master' of github.com:Budibase/budibase into feature/autocolumns 2021-02-10 16:10:55 +00:00
mike12345567 f4a503d015 WIP - start of auto columns like autonumber, createdBy, createdAt, updatedBy etc. 2021-02-10 16:10:39 +00:00
Martin McKeaveney 933969ce55 code review 2021-02-10 14:24:42 +00:00
Martin McKeaveney 1a945da513 Merge branch 'master' of https://github.com/Budibase/budibase into internal-search 2021-02-10 14:02:57 +00:00
Martin McKeaveney e599854b14 primary and secondary index fields 2021-02-09 18:49:12 +00:00
mike12345567 31d7a7a378 Adding basic permissions test which proves a public user can read from a table, but cannot write. 2021-02-09 17:24:36 +00:00
mike12345567 fee073fcfe Some more fixes after testing permissions a bit further. 2021-02-09 16:01:02 +00:00
Andrew Kingston 4c53e4bcec Fix server query tests 2021-02-09 15:24:56 +00:00
mike12345567 2103378e5c Fixing minor bug with permission add. 2021-02-09 13:14:23 +00:00
mike12345567 c8ef404560 Fixing issues with builtin roles living in the database as well as in code (easier to change in the future this way) - discovered by basic test case. 2021-02-09 13:01:45 +00:00
Martin McKeaveney d2bd2209eb indexable fields 2021-02-08 20:54:55 +00:00
mike12345567 d9ca4f0eed Some more work and start of a test case towards resource permissions. 2021-02-08 18:30:30 +00:00