1
0
Fork 0
mirror of synced 2024-07-02 13:01:09 +12:00
Commit graph

237 commits

Author SHA1 Message Date
Martin McKeaveney 2852a739a4 basic single stack dev setup 2021-03-22 15:43:26 +00:00
mike12345567 b1e443f581 Upping relationship coverage overall to 98% - looking over utilities which are barely ever used. 2021-03-16 23:25:18 +00:00
mike12345567 d6b23b3a79 Adding test cases which bring the link controller coverage to 100%. 2021-03-16 18:13:00 +00:00
mike12345567 fbbb3d12a1 starting into relationship testing. 2021-03-16 13:24:44 +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
mike12345567 2467ae2a2e Updating package.json to include an option for coverage, had to re-write some stuff to make sure that views were not getting coverage statements inserted (breaking things). 2021-03-02 17:13:11 +00:00
mike12345567 a21ca8fb62 First version, still playing around with styling. 2021-03-01 17:06:08 +00:00
mike12345567 20b44c9dbd Minor update to fix an issue when updating a row that it would throw an error with 1->to->many relationships on existing relationships for that row, as well as cleaning up how relationshipType is put onto the linked table. 2021-02-25 17:07:32 +00:00
Martin McKeaveney 0cfbe2357b bugfixes 2021-02-25 16:21:41 +00:00
mike12345567 9a49252ae7 Updating link controller to manage existing column comparison a bit better. 2021-02-25 15:21:08 +00:00
mike12345567 5733255cc8 Merge branch 'master' of github.com:Budibase/budibase into bug/relationship-display-id 2021-02-25 12:36:16 +00:00
Martin McKeaveney b179418767 relationship type constant 2021-02-25 12:21:24 +00:00
mike12345567 66b488dc46 Wrapping throws in new errors. 2021-02-25 12:10:18 +00:00
mike12345567 8612782610 Found some issues with relationship columns being doubled up, this isn't validated client side, best to make sure it doesn't happen server-side (can really break your data structure if columns overwrite each other). 2021-02-25 12:06:13 +00:00
Martin McKeaveney 62c5069528 refactor 2021-02-25 11:59:31 +00:00
Martin McKeaveney 5bc8b5da4c Server side data integrity for 1:N 2021-02-25 11:55:23 +00:00
Martin McKeaveney d5e411e985 1-n-data-integrity 2021-02-25 11:05:15 +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
mike12345567 edbef7ec97 Minor change, making sure each link is definitely unique by combining each of its three unique properties into a uniqueness hash, was missing one of the components. 2021-02-24 13:55:48 +00:00
mike12345567 887d883f3d Fixing some issues with enrichment, making sure display column can always be worked out. 2021-02-19 13:21:38 +00:00
mike12345567 a6d82f8c95 Updating the self auth endpoint to use the row processor. 2021-02-19 10:32:24 +00:00
mike12345567 619f68fc3b Fixing an issue found by Andrew K - relationship lookup needs to work on both sides of relationship. 2021-02-19 10:17:11 +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 8b0f99b0b1 Updating where utilities are held in builder and then making user table relationships autocolumn aware too. 2021-02-16 15:41:50 +00:00
mike12345567 87f0a2cd67 Fixing issue with linked rows not handling uniqueness correctly when links between tables are using fieldnames for uniqueness. 2021-02-15 19:01:15 +00:00
mike12345567 734d3fe496 Fixing issue with relationships. 2021-02-15 18:53:20 +00:00
mike12345567 10aa830d05 Work in progress, getting the server backend mostly ready for this work. 2021-02-15 17:47:14 +00:00
mike12345567 da59ca30e6 Merge branch 'develop' of github.com:Budibase/budibase into feature/autocolumns 2021-02-12 13:40:27 +00:00
Andrew Kingston aec4939b93 Merge branch 'master' of github.com:Budibase/budibase into form-builder 2021-02-10 18:34:45 +00:00
mike12345567 7a2405c756 First lot of work to update the auto fields into schema. 2021-02-10 17:55:19 +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
Andrew Kingston 9b21eb78b6 Fix relationships not being saved for new rows 2021-02-09 14:50:02 +00:00
mike12345567 a1de336db9 Make sure both directions exist. 2021-02-09 13:20:53 +00:00
mike12345567 383c2a6c0a Quick fix to make sure all relationships link to a valid, existing doc. 2021-02-09 13:18:59 +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 5b1a2f99d6 merge 2021-02-05 11:18:37 +00:00
mike12345567 f182a65547 Adding a check to the link utils which should make sure the correct link doc is always picked. 2021-02-03 17:19:41 +00:00
mike12345567 e0ea434f27 Added some unit tests for the enrichment process of rows, in the process found some issues with linking a table to itself, so fixed those so that we can do that in the future if desired. 2021-02-02 11:46:10 +00:00
Martin McKeaveney 4b5e572da3 internal search working 2021-02-01 21:02:54 +00:00
mike12345567 28ddffb862 Fixing an issue that aptkingston found with relationships were links on the way out would be multiplied (due to the bi-directional nature). 2021-01-28 14:03:19 +00:00
Martin McKeaveney 70a49088d0 merge 2021-01-18 14:43:26 +00:00
mike12345567 0c66d9fca4 When self hosting it is now possible to use a pretty URL to access the app rather than the normal appId. 2021-01-14 17:01:31 +00:00
Martin McKeaveney 04eca5b663 further syntax highlighting updates 2021-01-12 16:49:11 +00:00
Martin McKeaveney 98a7085bbc Allow dynamic query execution from front end components 2021-01-08 12:06:37 +00:00
Martin McKeaveney 37ef32a173 switching between queries 2021-01-06 12:28:51 +00:00
Martin McKeaveney 63ad74b660 separation of datasources and queries 2020-12-18 18:19:43 +00:00
Andrew Kingston 9054a8014a Merge branch 'master' of github.com:Budibase/budibase into feature/security-update 2020-12-08 13:16:53 +00:00
Martin McKeaveney d8aa699bfa merge 2020-12-07 21:20:35 +00:00
mike12345567 e4ef92555c Merge branch 'username-email' of github.com:Budibase/budibase into feature/security-update 2020-12-07 18:08:20 +00:00
Martin McKeaveney 81fe27f8f3 component store refactor - remove concept of currentPreviewItem and currentComponentInfo 2020-12-07 15:27:46 +00:00
mike12345567 c56bdd0751 Updating role constraints and making sure roles can't be deleted if they are in use. 2020-12-07 15:21:06 +00:00
Martin McKeaveney 84434741d1 allow creation of custom layouts, moving layoutId prop to top level of screen 2020-12-04 23:16:07 +00:00
Martin McKeaveney 87af1f916f update user id generation 2020-12-04 13:28:19 +00:00
Martin McKeaveney d6b00d5ebe email as default user identifier 2020-12-04 12:22:45 +00:00
Martin McKeaveney af24967c88 accommodate login layout 2020-12-03 17:31:38 +00:00
mike12345567 c832ed36d4 Merge branch 'feature/security-update' of github.com:Budibase/budibase into feature/page-refactor 2020-12-02 13:26:57 +00:00
mike12345567 05d5feb9fd Changing the naming of access levels to be roles. 2020-12-02 13:20:56 +00:00
mike12345567 9b5734b1de Merge branch 'master' of github.com:Budibase/budibase into feature/page-refactor 2020-11-30 11:47:08 +00:00
Martin McKeaveney 61a9d954e5 fix users test, remove superfluous files 2020-11-25 15:30:10 +00:00
Martin McKeaveney 9f2832af94 tidy up 2020-11-24 17:02:58 +00:00
Martin McKeaveney 327f77dbb3 user table and relationships complete 2020-11-24 14:04:14 +00:00
mike12345567 90a8435641 Storing some work in commit, currently broken, further work needed - application needs cleaned up. 2020-11-23 14:07:18 +00:00
mike12345567 6a2812f4f4 initial work towards page refactor. 2020-11-20 17:47:13 +00:00
mike12345567 11369ceed5 Merge branch 'master' of github.com:Budibase/budibase into feature/backend-routing 2020-11-12 15:08:50 +00:00
Martin McKeaveney ff66ed35c6 tidy up 2020-11-12 10:41:49 +00:00
Martin McKeaveney c2aa9eebfc remove squirrelly, compile a single bundle.css for each page, svelte and hbs server rendering 2020-11-12 10:25:25 +00:00
mike12345567 65078861a2 Starting work off towards routing of screens in backend, getting view ready and a bit of cleanup to make internal views easier to create. 2020-11-10 17:22:41 +00:00
mike12345567 f508822008 Quick change, we had a replication statement for testing, should be removed for production and uncommented when needed. 2020-11-06 15:47:12 +00:00
Michael Drury c9a1bf1940 Main work to get screens into the DB, fixing up issue with async page updates not being handled in order. 2020-11-04 12:36:38 +00:00
Michael Drury 0665e28ca3 Updates to pages so that they are written to DB and retrieved correctly. 2020-11-03 17:42:54 +00:00
Martin McKeaveney 3725a1782b screens in DB 2020-11-03 16:27:28 +00:00
Martin McKeaveney 74890b13c9 pages being stored in couch on initialisation and page save 2020-11-02 14:56:48 +00:00
mike12345567 d587bad363 Renaming instanceId -> appId to reduce confusion through the system, there only is one ID now. 2020-10-29 10:28:27 +00:00
mike12345567 d79be3c854 Initial work into multi-tenancy removal, experiencing issues with test cases at this point. 2020-10-28 20:35:06 +00:00
mike12345567 a967645a21 Some initial work towards webhooks, that generates schema similar to integromat. 2020-10-22 17:48:32 +01:00
mike12345567 c5dc50e8bf Fixing some issues found with deleting tables and relationships not getting cleaned up fully + builder not updating - also making sure builder store initial state of screens is accurate. 2020-10-16 13:48:59 +01:00
mike12345567 a21a3f817e Linting. 2020-10-16 12:13:27 +01:00
mike12345567 e87d9afbaf Fixing an issue whereby in some enrichment calls the count of links would be doubled (counting both sides). 2020-10-16 11:59:59 +01:00
mike12345567 4e000a8904 Updating formatting. 2020-10-12 17:56:40 +01:00
mike12345567 408eda81ff Merge branch 'master' of github.com:Budibase/budibase into endpoint-renaming 2020-10-12 17:45:11 +01:00
mike12345567 1955c73685 Handling empty relationship column the same way other columns are handled, it won't do anything until it is valid - but doesn't error. 2020-10-12 17:02:52 +01:00
mike12345567 47b97225a8 Improving consistency of model saving, making sure that any validation which could fail happens before any updates are carried out. 2020-10-12 16:51:41 +01:00
mike12345567 9bf568ecb1 Fixes for deleting records when a table is deleted. 2020-10-12 16:37:08 +01:00
mike12345567 94f966631c Merge branch 'master' of github.com:Budibase/budibase into endpoint-renaming 2020-10-12 15:25:27 +01:00
mike12345567 6362c5ffdc Fixes the link doc ID so that they do not start with automation ID and fixes an error that was occurring when creating tables. 2020-10-12 14:31:17 +01:00
mike12345567 53d765b849 Merge branch 'master' of github.com:Budibase/budibase into endpoint-renaming 2020-10-12 13:34:32 +01:00
Michael Drury f2929bcc7d
Merge pull request #684 from Budibase/link-record-performance
Small change that drastically improves the performance of linked records
2020-10-12 10:47:57 +01:00
mike12345567 2a2dad3ca4 Formatting code - was causing PR to fail. 2020-10-12 10:41:25 +01:00
mike12345567 ba83cad43c Using lodash flatten rather than pure JS. 2020-10-12 10:28:53 +01:00
mike12345567 3f0d205846 Merge branch 'master' of github.com:Budibase/budibase into endpoint-renaming 2020-10-12 09:41:42 +01:00
mike12345567 4d3308b216 Merge branch 'link-record-performance' of github.com:Budibase/budibase into endpoint-renaming 2020-10-09 20:18:46 +01:00
mike12345567 ec6717468b Major performance boost to attachLinks -> makes CSV upload much more snappy. 2020-10-09 20:06:54 +01:00
mike12345567 4147e8872b Updating tests and re-formatting. 2020-10-09 19:30:50 +01:00
mike12345567 ed778d15e2 Updating ID to use ro rather than re for rows. 2020-10-09 19:16:33 +01:00
mike12345567 d90c1e3dd3 Changing record -> row in this update, completing the update of renaming in the builder, this release needs further testing. 2020-10-09 19:10:28 +01:00
mike12345567 bb3370e742 Renaming Model -> Table across the entire system, this is an unstable update and has not been tested fully yet. 2020-10-09 18:49:23 +01:00
mike12345567 844383631e Merge branch 'master' of github.com:Budibase/budibase into api-usage-tracking 2020-10-09 11:21:26 +01:00
Martin McKeaveney dbd0382d05 Merge branch 'api-usage-tracking' of github.com:Budibase/budibase into deployment-api-usage 2020-10-09 11:21:03 +01:00
Martin McKeaveney 4abc54380d use centralised document types and separators 2020-10-09 10:50:44 +01:00
Martin McKeaveney c885382225 code review 2020-10-09 10:46:38 +01:00
mike12345567 ba758905cc Removing sanisation, instead just using it as a central path system. 2020-10-09 10:00:57 +01:00
mike12345567 334b4b1696 Update to IDs as has been discussed, to change them from colons (:) to underscores (_) as this is more URL, S3 and file system safe. Also shortening most prefixes down to two characters. 2020-10-09 09:47:37 +01:00
Martin McKeaveney 954f6ad47b use underscores instead of colons, shorten id entity names 2020-10-08 21:50:49 +01:00
mike12345567 b400a06027 Updates for API usage after testing against local Dynamo. 2020-10-08 17:34:41 +01:00
mike12345567 3a6a03403f Merge branch 'linked-records' of github.com:Budibase/budibase into api-usage-tracking 2020-10-07 15:41:39 +01:00
mike12345567 17a4b058b5 Merge branch 'master' of github.com:Budibase/budibase into linked-records 2020-10-07 14:48:20 +01:00
mike12345567 1f8f0a0444 Sanitising the paths to the couchDB data directories. 2020-10-07 11:42:28 +01:00
mike12345567 fc2e2a8804 First work towards implementing Dynamo usage in the server when running in the cloud; this is for tracking usage against API keys. 2020-10-06 19:13:41 +01:00
mike12345567 e0dad53ad3 Merge branch 'master' of github.com:Budibase/budibase into linked-records 2020-10-05 10:52:35 +01:00
mike12345567 672f5f8301 Merge branch 'master' of github.com:Budibase/budibase into remove-views 2020-10-05 10:04:23 +01:00
mike12345567 5540fa226c Fixing an issue with linked records showing up as models after id changes. 2020-10-02 16:49:36 +01:00
mike12345567 e24668253f Some quick fixes after merge. 2020-10-02 15:49:13 +01:00
mike12345567 6b222ffbf0 Merge branch 'remove-views' of github.com:Budibase/budibase into linked-records 2020-10-02 14:49:23 +01:00
mike12345567 c69081f390 Changing the function that all get params builder functions are composed of to be better named. 2020-10-02 14:19:39 +01:00
mike12345567 2aff68b245 Adding jsdoc to the db utils and removing the views, this is a breaking change for existing apps. 2020-10-02 12:37:46 +01:00
Michael Drury 0a80abfd0e Purging the use of views where possible, this update should remove the use of by_type and all model views. 2020-10-01 17:22:08 +01:00
Michael Drury a891149b5b Fixing issues when adding and deleting records from the input record linking list. 2020-10-01 12:30:14 +01:00
Michael Drury 58ff985a35 Resolving issues with deleting a linked column, should now be possible. 2020-10-01 11:33:37 +01:00
mike12345567 aa59c9d41c Minor update to fully handle field deletion which is a linked field; from a model. 2020-09-30 23:14:39 +01:00
mike12345567 962ed5aaa6 Work towards handling linked record field updates, like the column being deleted from the model. 2020-09-30 17:52:57 +01:00
mike12345567 709cdb5ea9 Changing relationship system around a little, to not work with fieldNames anymore in the view and simplifying quite a few of the update systems. 2020-09-30 15:37:38 +01:00
mike12345567 cf4b5a6fbf Fixing some missues with linked records after testing with the new UI. 2020-09-30 12:00:56 +01:00
mike12345567 ac7374662c A small performance enhancement, storing in the record that it does have links, so that when retrieving info for records it can exit the process early if a record has no mention of links. 2020-09-29 17:22:04 +01:00
mike12345567 31943cc66b Major update to linked record backend, now handling adding info about record links to all responses. 2020-09-29 16:40:59 +01:00
mike12345567 a76a7525e3 Update to make sure all linked record updates occur in sync with the API call. 2020-09-29 11:55:18 +01:00
mike12345567 eca5fad478 Adding main work to handle creating, deleting and managing the link docs between different linked records. 2020-09-28 17:36:59 +01:00
mike12345567 b24ff486d8 Some groundwork for the linked records, building up a much more in-depth emitter for models and records to drive the record cleanup. 2020-09-25 18:05:26 +01:00
Martin McKeaveney db2d9af545 template export v1 2020-09-25 14:47:42 +01:00
Michael Shanks 2b48a92013 id generation in utilities module 2020-05-18 16:22:09 +01:00
Martin McKeaveney c8dd48b507 formatting 2020-05-18 11:01:17 +01:00
Martin McKeaveney 815a539863 test and couchDB init code 2020-05-18 10:55:35 +01:00
Michael Shanks b62449bf96 removing clientId from frontend, fixing invalid database name 2020-05-18 06:40:29 +01:00
Michael Shanks 18375a6d19 server tests in-memory and passing 2020-05-14 15:12:30 +01:00
Michael Shanks a004aa5838 allow bb home folder to bem anywhere 2020-05-11 15:42:42 +01:00
Martin McKeaveney 94b2e0f134 further tidy up and removal 2020-05-07 13:52:24 +01:00