1
0
Fork 0
mirror of synced 2024-06-22 04:10:54 +12:00
Commit graph

245 commits

Author SHA1 Message Date
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 1af47003c5 Updating test cases - trying to get everything in order for merge. 2022-11-14 20:25: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
mike12345567 0478d9b154 Fetching a list of backup/restore events includes the full user object. 2022-10-20 15:05:50 +01:00
Rory Powell 9af16738e5 Merge develop 2022-09-28 08:56:45 +01:00
mike12345567 62bc2f2be3 Moving table, datasource and datasource plus document types into the backend core. 2022-05-25 10:52:19 +01:00
mike12345567 7b461c03dd Fixing issue #5778 - making sure to only remove the first app_ element of the app ID. 2022-05-09 12:29:44 +01:00
mike12345567 6880e7bde9 Fix for #5269 - the sub type was being lost in some scenarios related to the user table being updated - making sure it is consistently kept when dealing with either of the related tables. 2022-04-26 14:24:51 +01:00
mike12345567 7792a07899 Some updates, making sure databases will always close directly using finally checks around the actual tasks, updating how replication works to have a close statement (to make sure it is controlled correctly) and then updating to PouchDB 7.3.0 for one of the memory leak fixes. 2022-04-20 17:33:42 +01:00
mike12345567 ea6f580501 Initial version of memory leak protection, making sure that PouchDB databases are closed correctly after use, using a combination of closures wrapping DB gets (this replaces the getDB, leaving only a dangerousGetDB function which can be used in very very specific scenarios) and then closing the DB as part of CLS hooked functions finishing. Also moving the GlobalDB init to the tenancy middleware as this is used everywhere in the worker/app services - means that not all getGlobalDB calls require an async closure around them. 2022-04-19 19:42:52 +01:00
Rory Powell 769f48f935 Remove remaining direct usage of CouchDB. Add common pouch config to backend-core 2022-04-19 16:45:27 +01:00
Rory Powell 70c54e983d Add typescript linting at the top level 2022-03-25 11:17:58 +00:00
mike12345567 172850ae87 Switching the basic single row read to use the enrich endpoint. 2022-02-28 12:54:32 +00:00
Rory Powell d9ead48c59 Deprovision and local couch db url fix 2022-02-18 17:36:23 +00:00
Andrew Kingston d6e568dbe3 Replace all spaces with underscores in column names rather than just the first one 2022-02-14 10:21:31 +00:00
Michael Drury 91c2a40c89 Final pass refactoring - need to test but all code in server converted. 2022-01-28 00:05:39 +00:00
mike12345567 40c6eb2007 Main body of work, refactoring most usages. 2022-01-27 18:18:31 +00:00
mike12345567 836a2f5863 Switching out @budibase/auth to @budibase/backend-core. 2022-01-10 19:33:00 +00:00
mike12345567 b0ef15684b Adding query save, fixing routing to handle existing rest queries, adding in full saving of enabled headers functionality, fixing various issues discovered while testing. 2021-12-07 18:24:10 +00:00
mike12345567 4794a5374e Fixing an issue with user metadata not always being present when user accessing app, causing weird issues. 2021-10-21 17:23:10 +01:00
mike12345567 ccd2913857 Final cleanup, just need to handle view migration (to self host from cloud). 2021-09-29 17:43:16 +01:00
mike12345567 8f70ad9cdc Performance improvements after testing - switching to temporary in memory queries for cloud views. 2021-09-21 15:59:50 +01:00
mike12345567 0651b874ac Fixing issues with automation steps found during testing. 2021-09-20 19:21:04 +01:00
mike12345567 ac944e532b Moving views into a different location so they don't trigger tree creation and attempting to use in memory pouchDB to run views on the fly. 2021-09-20 18:24:09 +01:00
mike12345567 a5ce11d3ca Fixing issue #2412 - making sure full enriched records are passed along to automations. 2021-09-13 16:28:52 +01:00
mike12345567 01ca02ea9c Merge branch 'develop' of github.com:Budibase/budibase into feature/automation-rework 2021-09-09 16:33:41 +01:00
Michael Drury 1b77d1ce90
Merge pull request #2575 from Budibase/fix/public-multi-tenancy
Issue with public apps and multi-tenancy
2021-09-09 14:42:12 +01:00
mike12345567 0117c1498f Fixing issue with multi-tenancy and public apps, when the tenant isn't necessarily known, it can be found in the app ID, building a middleware to manage this. 2021-09-09 13:27:18 +01:00
mike12345567 4e294fbcd9 Adding metadata system and re-writing how Cron works, previously cron only worked in dev because it would never be enabled for the production app ID, this makes it so that it is never enabled for the dev app and when the production app is deployed it runs through all the automations and checks if any need cron jobs setup/disabled. 2021-09-08 19:29:28 +01:00
mike12345567 d05c60d470 Adding slack integration. 2021-09-07 13:58:53 +01:00
mike12345567 2dd1e7f45e Fixing an issue that occurs when the table name and the primary display column are the same name. 2021-09-03 14:49:56 +01:00
Michael Drury 8a1173eabf
Merge pull request #2531 from Budibase/fix/sql-relationship-issues
Relationship bug fixes (SQL and internal) and a few other bits
2021-09-03 11:47:36 +01:00
mike12345567 c64fb81749 Fixing issues after upgrading to node 14 and circular dependencies causing issues. 2021-09-02 18:33:41 +01:00
mike12345567 4ff9de1b6c Fixing issues with search endpoint not handling users fully. 2021-09-02 17:13:00 +01:00
Andrew Kingston 60f81014df Fix indexing of rows with arrays of objects 2021-09-02 12:00:18 +01:00
Peter Clement bb5971bd82 change index definition 2021-08-27 14:10:19 +01:00
Peter Clement 974e264f50 fix indexing of arrays 2021-08-26 14:22:52 +01:00
Peter Clement c681330793 Add more validation options for array field 2021-08-25 15:49:04 +01:00
Peter Clement d55218e813 Add contains option to lucene query builder 2021-08-24 16:14:38 +01:00
Martin McKeaveney acff289940 simplify couchDB configuration 2021-08-18 11:23:28 +01:00
Martin McKeaveney bcbd40764f conditionally apply username and password to couchdb auth 2021-08-17 16:48:02 +01:00
Martin McKeaveney c66f5ab6ff couchDB auth options 2021-08-17 14:11:03 +01:00
Keviin Åberg Kultalahti 97498b0778 Merge branch 'master' into develop 2021-08-13 14:41:49 +02:00
Martin McKeaveney e6019bf3c7 linting 2021-08-11 20:34:45 +01:00
Martin McKeaveney da67de5c8b lint 2021-08-10 17:46:28 +01:00
Martin McKeaveney 8c6460ddb1 ensure user metadata is created before link documents are created 2021-08-10 13:00:15 +01:00
mike12345567 88396b77ed Merge branch 'fix/apps-2195-2282-2283' of github.com:Budibase/budibase into develop 2021-08-06 17:14:31 +01:00
mike12345567 c4f8d17a6e Fixes for a lot of issues generated by the use of the pouchdb allDbs call, which is not designed for multi-client DB setups like ours, using CouchDB method instead. 2021-08-06 16:38:07 +01:00
mike12345567 34397c2e14 Merge branch 'master' of github.com:Budibase/budibase into develop 2021-08-06 13:04:54 +01:00