Commit Graph

5852 Commits

Author SHA1 Message Date
Andrew Kingston bc33af13f9 Fix types in table migration tests 2022-11-29 16:27:06 +00:00
Andrew Kingston a3cb7e9516 Add basic component type 2022-11-29 16:21:59 +00:00
Dean 2de437aaa7 Fix to ensure only the budibase datasource type is altered on save 2022-11-29 16:08:31 +00:00
Michael Drury de0b163971 Adding test case for char encoding and being explicit about utf8 export. 2022-11-29 16:03:22 +00:00
Michael Drury 903d259fc4 Removing old JS file. 2022-11-29 15:23:01 +00:00
Dean d6e88ae6b4 Merge remote-tracking branch 'origin/develop' into fix/sample-data-edit-removed-delete-fixed 2022-11-29 12:54:22 +00:00
Andrew Kingston 02ef58c7fc Merge branch 'develop' of github.com:Budibase/budibase into side-panel 2022-11-29 12:22:56 +00:00
Andrew Kingston 4279d3687e Update table migration test to use imports, and update TestConfiguration to work with type parameters 2022-11-29 12:19:37 +00:00
Michael Drury ecfff5cdbe Merge branch 'develop' of github.com:Budibase/budibase into fix/charset-encoding 2022-11-29 11:57:45 +00:00
Michael Drury 1f0570907a Merge branch 'master' of github.com:Budibase/budibase into develop 2022-11-29 11:13:54 +00:00
mike12345567 ab914bcca2 Final fixes after re-running all test suites. 2022-11-28 19:12:23 +00:00
mike12345567 482c130a2e Some fixes after re-running server tests. 2022-11-28 18:14:10 +00:00
mike12345567 b5b74b9cad General work after running some tests in CI - general refactoring as well. 2022-11-28 17:54:04 +00:00
Dean c1e1ba51f3 Disabled the ability to rename the Sample Data datasource. Updated the backend to ensure that renaming doesn't alter its structure and block deletion 2022-11-28 17:25:10 +00:00
mike12345567 ce1b626f68 Updates to fix build. 2022-11-28 13:24:39 +00:00
Andrew Kingston 3c3c2325e7 Add tests for table settings migration 2022-11-28 12:20:49 +00:00
Mel O'Hagan cde3c2e8ff lint 2022-11-28 12:05:19 +00:00
Mel O'Hagan 38210cebe5 Don't parse number arrays as date 2022-11-28 12:04:44 +00:00
mike12345567 93cb1c52de Final typescript conversions for server. 2022-11-26 16:24:37 +00:00
mike12345567 3aed49778f One file left in the server, some fixes after converting the internal row controller. 2022-11-26 15:42:53 +00:00
mike12345567 4868083208 Fixes based on server build so far. 2022-11-26 15:10:41 +00:00
mike12345567 0a32126c5b Automation overhaul to Typescript, plus type updates. 2022-11-25 19:57:07 +00:00
mike12345567 17865a5ef4 Typescript conversion of linked row controller. 2022-11-25 18:54:57 +00:00
mike12345567 0c73662f32 Some server typescript re-writes, only automations left and some controllers. 2022-11-25 15:01:46 +00:00
Andrew Kingston 2a6ba0536f Merge branch 'develop' of github.com:Budibase/budibase into side-panel 2022-11-25 11:24:57 +00:00
mike12345567 a38d617138 Complete conversion of backend-core to Typescript. 2022-11-24 18:48:51 +00:00
Andrew Kingston fa68773b3e Refactor table settings migration slightly and add missing await keyword 2022-11-24 14:23:27 +00:00
Andrew Kingston 0016899459 Rename table settings migration and only run on dev apps 2022-11-24 14:23:04 +00:00
deanhannigan 30160a5fc1
Merge pull request #8795 from Budibase/fix/pass-request-context-to-dynamic-var-retry
User/Auth context now being passed to dynamic variable request updates
2022-11-24 13:42:51 +00:00
Mel O'Hagan 29de393a2f Allow tables to be created even if no fetch 2022-11-24 11:45:58 +00:00
Dean 821cff392c User/Auth context now being passed to dynamic variable request updates 2022-11-24 10:16:05 +00:00
mike12345567 37410e041a Some fixes based on test runs. 2022-11-23 11:44:15 +00:00
mike12345567 6f6d000cb8 Finally removing all usages of backend-core/ type imports from server, including some further typescript conversions. 2022-11-22 19:49:59 +00:00
mike12345567 ed6a6ab8ce Updating all of the route files to typescript, as well as some controllers. 2022-11-22 18:49:19 +00:00
mike12345567 a620791d13 More controller typescript conversions. 2022-11-22 16:52:25 +00:00
Andrew Kingston cac780eb50 Merge branch 'develop' of github.com:Budibase/budibase into side-panel 2022-11-22 16:52:09 +00:00
mike12345567 7ab2029b5d Typescript conversion of the table controllers. 2022-11-22 13:56:01 +00:00
mike12345567 a74225cd1e More Typescript conversion, as part of backend-core importing improvements. 2022-11-22 12:41:36 +00:00
mike12345567 51471449fc Merge branch 'develop' of github.com:Budibase/budibase into refactor/backend-core-import 2022-11-22 12:03:31 +00:00
mike12345567 ee4ebbfb56 Some typescript conversions, moving a few imports around. 2022-11-21 18:33:34 +00:00
Dean ce1ddb4458 Import refactoring and some review updates. 2022-11-21 15:53:47 +00:00
Dean 7fe99448f7 Merge remote-tracking branch 'origin/develop' into feature/default-internal-datasource 2022-11-21 15:40:11 +00:00
mike12345567 5aa1f94cfe Merge branch 'master' of github.com:Budibase/budibase into develop 2022-11-21 15:05:48 +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
Dean 4a94ef8bf9 Merge remote-tracking branch 'origin/develop' into feature/default-internal-datasource 2022-11-21 11:10:29 +00:00
Andrew Kingston 8d8e33a19e Merge branch 'develop' of github.com:Budibase/budibase into side-panel 2022-11-21 10:30:25 +00:00
Rory Powell 626576dbee Require params on db.remove 2022-11-21 10:07:51 +00:00
Mel O'Hagan 0fddf09cdc Break if any column is static formula 2022-11-18 12:32:04 +00:00
mike12345567 318233d812 Some minor updates after running qa-core tests, found some issues that likely exists before context update. 2022-11-17 16:30:38 +00:00
Dean 2d81f516e0 Shifted the budibase datasource constant to backend-core 2022-11-17 16:28:48 +00:00
Dean 5845a17511 Merge remote-tracking branch 'origin/develop' into feature/default-internal-datasource 2022-11-17 15:39:40 +00:00
mike12345567 fcb6f985a6 Updating some enums, plural to single. 2022-11-17 14:59:18 +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
Andrew Kingston f47ae91ce1 Update table settings migration to handle new behaviour settings for table blocks 2022-11-17 10:11:25 +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
mike12345567 cca1b59c76 Final server test fixes, after all updates to context/removal of context faking. 2022-11-15 19:04:39 +00:00
mike12345567 8b2cfd9dfa Converting further DB layers to TS - fixing mocks. 2022-11-15 18:33:24 +00:00
mike12345567 3faac89c7a Some updates for currentapp.spec.js test case. 2022-11-15 17:35:17 +00:00
Dean eb57c6604d Merge remote-tracking branch 'origin/develop' into feature/default-internal-datasource 2022-11-15 17:11:19 +00:00
Dean f082e4596c Review updates 2022-11-15 17:03:35 +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
Andrew Kingston 0935738fbd Add migration to automatically convert legacy table settings into new action setting 2022-11-15 11:54:45 +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
mike12345567 1af47003c5 Updating test cases - trying to get everything in order for merge. 2022-11-14 20:25:05 +00:00
Dean 355419a722 Fixed imports 2022-11-13 22:34:01 +00:00
Dean 00545ee884 Default Datasource and sample row data 2022-11-13 21:37:50 +00:00
Dean 15a96fb496 Fix for attachment cleanup on internal row delete. 2022-11-13 18:08:48 +00:00
mike12345567 3035c3a3a1 Typescript conversions - trying to get all of context/db layer into TS. 2022-11-11 11:57:50 +00:00
mike12345567 fd624e097a Typescript conversions, as well as updating context to just use an object map. 2022-11-10 17:38:26 +00:00
mike12345567 c356e0d152 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
melohagan 8bb7230655
Merge pull request #8635 from Budibase/bug/sev3/app-import-automations
App import automations - null pointer fix
2022-11-10 15:35:24 +00:00
melohagan b13723b1a3
Merge pull request #8593 from Budibase/bug/sev2/mongodb-aggregate-readable
MongoDB aggregate readable
2022-11-10 15:27:08 +00:00
Mel O'Hagan 531e30fa3d Null pointer fix 2022-11-10 15:22:05 +00:00
mike12345567 bbc8965d55 Major update - removing the use of context for PouchDB instances, swapping knowledge of PouchDB to the PouchLike structure that replaces it. 2022-11-09 16:53:42 +00:00
Rory Powell ada0eb79bc Update tenancy detection to honour any subdomain pattern according to platform url 2022-11-09 16:35:16 +00:00
mike12345567 e0cf213ad5 Merge branch 'master' of github.com:Budibase/budibase into develop 2022-11-09 13:41:51 +00:00
Michael Drury 53b5cd1e1c Removing timeout for export apps - #8589. 2022-11-08 20:12:32 +00:00
Mel O'Hagan f518cd8572 Added readable prop to aggregate function 2022-11-08 14:31:36 +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
mike12345567 b8253ce37b Merge branch 'master' of github.com:Budibase/budibase into develop 2022-11-02 20:12:01 +00:00
melohagan 494ce6e9f3
Merge pull request #8472 from Budibase/bug/sev3/validation-error-attachments
Validation error attachments
2022-11-02 09:56:28 +00:00
Rory Powell 7e99cd3c85 Fix attachments upload path 2022-11-01 21:17:39 +00:00
Mel O'Hagan 194da4bee1 Map attachment string to array if needed 2022-11-01 15:59:04 +00:00
mike12345567 da9eaca82a Fixing issue with self host build - import of backend-core changes mean that loading the public API files can require setup of backend-core, making it so that the JWT Strategy doesn't need to be setup to load backend-core. 2022-11-01 12:59:10 +00:00
Mel O'Hagan 31c6ec49bb Remove ! from error message 2022-11-01 12:37:42 +00:00
Mel O'Hagan b130f90f3e Merge branch 'develop' into bug/sev3/automation-mysql-id-relationship-uri-decode 2022-11-01 12:36:27 +00:00
melohagan 5d7748bba6
Merge pull request #7521 from Budibase/feature/s3-bucket-connector
S3 bucket connector improvements
2022-11-01 09:56:47 +00:00
Rory Powell 73c39ca4b8
Merge pull request #8386 from chaoticefx/elasticsearch-rejectUnauthorized
Custom ssl config for Elasticsearch datasource
2022-11-01 08:47:27 +00:00
Mel O'Hagan 3f8ad9caa2 Merge branch 'develop' into bug/sev3/automation-mysql-id-relationship-uri-decode 2022-11-01 08:10:03 +00:00
chaoticefx 255c594d04
Cleaned up config declaration in constructor 2022-11-01 09:08:17 +08:00
Martin McKeaveney c2966025b4 merge with master 2022-10-31 13:44:23 +00:00
Martin McKeaveney 19a515ffbd
Merge pull request #8382 from Budibase/feature/meta-tag
adding opengraph metatags for better shareable links
2022-10-31 10:36:50 +00:00
Martin McKeaveney 011bb990b8
Merge pull request #8422 from Budibase/bug/sev5/public-api-404
Public rows API: Return correct status codes
2022-10-31 10:36:32 +00:00
mike12345567 1c012ee7f7 Fixing an issue with some browsers sending the gzip type as x-gzip rather than gzip, which caused the processing to fail. 2022-10-27 19:14:31 +01:00
Mel O'Hagan 5941b3d64b Check for string type before decode 2022-10-27 17:55:46 +01:00
Mel O'Hagan 5fc8299390 Patch: Throw 404 if row not found 2022-10-27 17:52:28 +01:00
Mel O'Hagan 7f1b81dd7a Merge branch 'develop' into bug/sev3/automation-mysql-id-relationship-uri-decode 2022-10-27 17:35:47 +01:00
mike12345567 d3ed3f34bd Fixing issue with pro import. 2022-10-27 17:31:39 +01:00
Mel O'Hagan 4403b2fb22 Decode id if needed 2022-10-27 16:28:26 +01:00
mike12345567 a12045917e Minor test rework after improving startup, a lot of mocks weren't being used correctly. 2022-10-27 15:15:08 +01:00
Mel O'Hagan e5b6a777da Throw 400 when validation fails 2022-10-27 15:10:22 +01:00
Mel O'Hagan e8cd6facfd lint 2022-10-27 13:49:59 +01:00
Mel O'Hagan 4ec5ce1bbd Remove try catch from rows. Correct status codes. 2022-10-27 13:49:19 +01:00
chaoticefx 20a231b842
Ran npx prettier against elasticsearch.ts 2022-10-27 16:24:01 +08:00
chaoticefx b41cffab7b
Fixed code styling 2022-10-27 15:52:49 +08:00
mike12345567 80d4220cb5 Adding backup queue to bullboard if enabled. 2022-10-26 18:50:40 +01:00
Mel O'Hagan f240f5ffbf lint 2022-10-26 16:44:25 +01:00
Mel O'Hagan 4661c083e2 Merge branch 'develop' into feature/s3-bucket-connector 2022-10-26 16:37:11 +01:00
Martin McKeaveney 1a27cc9c47 merge 2022-10-26 11:47:25 +01:00
Martin McKeaveney a6841cd1de fix typo 2022-10-26 11:45:52 +01:00
mike12345567 d32e4586c2 Refactoring a lot of content around webhooks to Typescript, as well as fixing webhooks and automation app IDs on import of new app. 2022-10-25 18:19:18 +01:00
Mel O'Hagan aceb7f7107 Unused import 2022-10-25 15:19:46 +01:00
Mel O'Hagan b21919f9b0 Handle multiple automation loop bindings 2022-10-25 15:19:07 +01:00
Rory Powell 5c80b2ca06 Startup fixes 2022-10-25 13:37:26 +01:00
Rory Powell 0b7ca49418 Fix build failure around PouchDB type 2022-10-25 09:02:55 +01:00
chaoticefx 0744e00814
Implemented custom ssl config in elasticsearch.ts 2022-10-25 11:59:34 +08:00
Martin McKeaveney 82934e11f1 update OG title 2022-10-24 18:04:14 +01:00
Martin McKeaveney 28a0392b11 adding opengraph metatags for better shareable links 2022-10-24 17:53:18 +01:00
Rory Powell 27cde2c3cf Move backup processing into pro 2022-10-24 15:28:43 +01:00
Rory Powell 20dffc0a07 Remove pro mock and invert if condition on backups enabled 2022-10-24 14:23:16 +01:00
mike12345567 4d0f5f22ac Merge branch 'feature/app-backups' of github.com:Budibase/budibase into feature/app-backups 2022-10-24 13:37:53 +01:00
mike12345567 12d0187211 Adding a check to see if app backups feature is enabled. 2022-10-24 13:33:36 +01:00
Rory Powell 0274b6755a Replace isTest check with mock for triggering app backup 2022-10-24 13:05:40 +01:00
mike12345567 147799ba0a Moving statistics under backups sdk subfolder. 2022-10-24 10:14:35 +01:00
mike12345567 6edffb0d5e Addressing majority of PR comments. 2022-10-24 10:04:14 +01:00
mike12345567 49e103e8ef Fixing test case. 2022-10-21 18:52:39 +01:00
mike12345567 a191989fdf Merge branch 'develop' of github.com:Budibase/budibase into feature/app-backups 2022-10-21 18:41:25 +01:00
mike12345567 ba2c387d9c Update with PR comments. 2022-10-21 18:25:35 +01:00
mike12345567 1e190886fb Fixing issue discovered by tests. 2022-10-21 16:02:13 +01:00
Martin McKeaveney f9f971cb1a
Merge pull request #8295 from weslien/patch-8294
Fix arangoDB connector
2022-10-20 22:01:07 +01:00
mike12345567 4716eaaab5 Getting the import system to carry out a backup of the app before the restore. 2022-10-20 19:07:10 +01:00
mike12345567 0478d9b154 Fetching a list of backup/restore events includes the full user object. 2022-10-20 15:05:50 +01:00
mike12345567 6112d097af Some type updates and processor handling for backup document being created before backup/restore occurs. 2022-10-19 19:19:36 +01:00
mike12345567 e5ebd97ecc Fixing issue with using templates. 2022-10-19 16:57:14 +01:00
mike12345567 0ca72f99d1 Adding statistics output for backups. 2022-10-19 16:48:32 +01:00
mike12345567 2eebd077e7 Fixing issue with metadata name not being provided for uploaded backup on publish. 2022-10-19 13:52:56 +01:00
mike12345567 a1065cc143 Protection for real app IDs. 2022-10-19 11:47:07 +01:00
mike12345567 0cf5bf26a0 Finishing import processor - download backup, delete dev DB and then import over the top of this. Also includes a rollback feature if the backup fails to restore for whatever reason. 2022-10-18 19:43:19 +01:00
mike12345567 ed35a8281f Removing attachment dir constant - no longer needed. 2022-10-18 17:04:18 +01:00
mike12345567 bd1300b82a Updating export/import to include the budibase client and manifest. 2022-10-18 16:42:25 +01:00
Gustav Weslien 8c3617d89c
Fix arangoDB connector :
https://github.com/Budibase/budibase/issues/8294#issue-1412041907
2022-10-17 20:56:30 +02:00
mike12345567 07d4d9ee4d Reformatting types to allow queue to be used for import and export. 2022-10-17 19:42:36 +01:00
mike12345567 5e802ceb10 Merge branch 'develop' of github.com:Budibase/budibase into feature/app-backups 2022-10-17 14:49:31 +01:00
mike12345567 758c46ce83 Minor fixes after testing manual backup system. 2022-10-14 20:10:44 +01:00