1
0
Fork 0
mirror of synced 2024-09-16 09:17:40 +12:00
Commit graph

216 commits

Author SHA1 Message Date
mike12345567
474796baea 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
f080fa6537 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
5fab1529ec work in progress, enriching in the display names. 2021-02-17 18:04:21 +00:00
mike12345567
a93eb180ce Starting with some work towards a deeper enrichment of rows. 2021-02-17 17:09:59 +00:00
mike12345567
1a9d16c8c7 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
23cac6a9ac 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
245cd0a791 Fixing issue with relationships. 2021-02-15 18:53:20 +00:00
mike12345567
4b1855974c Work in progress, getting the server backend mostly ready for this work. 2021-02-15 17:47:14 +00:00
mike12345567
f266129489 Merge branch 'develop' of github.com:Budibase/budibase into feature/autocolumns 2021-02-12 13:40:27 +00:00
Andrew Kingston
56d8a27286 Merge branch 'master' of github.com:Budibase/budibase into form-builder 2021-02-10 18:34:45 +00:00
mike12345567
ca20cbeeca First lot of work to update the auto fields into schema. 2021-02-10 17:55:19 +00:00
Martin McKeaveney
587d20b611 Merge branch 'master' of https://github.com/Budibase/budibase into internal-search 2021-02-10 14:02:57 +00:00
Andrew Kingston
10a9b8034a Fix relationships not being saved for new rows 2021-02-09 14:50:02 +00:00
mike12345567
3712de65ee Make sure both directions exist. 2021-02-09 13:20:53 +00:00
mike12345567
04035a24e9 Quick fix to make sure all relationships link to a valid, existing doc. 2021-02-09 13:18:59 +00:00
mike12345567
cc02397b01 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
b4628a43d0 merge 2021-02-05 11:18:37 +00:00
mike12345567
8656ef3465 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
c9690f730c 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
27c7f5697b internal search working 2021-02-01 21:02:54 +00:00
mike12345567
561ce349f9 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
53db6e05f9 merge 2021-01-18 14:43:26 +00:00
mike12345567
16a25a7cff 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
d05f1666fc further syntax highlighting updates 2021-01-12 16:49:11 +00:00
Martin McKeaveney
8e40f4b5f8 Allow dynamic query execution from front end components 2021-01-08 12:06:37 +00:00
Martin McKeaveney
d7a0d29b03 switching between queries 2021-01-06 12:28:51 +00:00
Martin McKeaveney
29b51bc6c2 separation of datasources and queries 2020-12-18 18:19:43 +00:00
Andrew Kingston
77f049d1bd Merge branch 'master' of github.com:Budibase/budibase into feature/security-update 2020-12-08 13:16:53 +00:00
Martin McKeaveney
39473cb029 merge 2020-12-07 21:20:35 +00:00
mike12345567
74f5197865 Merge branch 'username-email' of github.com:Budibase/budibase into feature/security-update 2020-12-07 18:08:20 +00:00
Martin McKeaveney
a9d0c68a60 component store refactor - remove concept of currentPreviewItem and currentComponentInfo 2020-12-07 15:27:46 +00:00
mike12345567
3339f364b6 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
3b049bc286 allow creation of custom layouts, moving layoutId prop to top level of screen 2020-12-04 23:16:07 +00:00
Martin McKeaveney
ad4e4e4679 update user id generation 2020-12-04 13:28:19 +00:00
Martin McKeaveney
f05d696ef7 email as default user identifier 2020-12-04 12:22:45 +00:00
Martin McKeaveney
277524b86e accommodate login layout 2020-12-03 17:31:38 +00:00
mike12345567
1a9f1aed9b Merge branch 'feature/security-update' of github.com:Budibase/budibase into feature/page-refactor 2020-12-02 13:26:57 +00:00
mike12345567
05225f7787 Changing the naming of access levels to be roles. 2020-12-02 13:20:56 +00:00
mike12345567
b55c4bc9c0 Merge branch 'master' of github.com:Budibase/budibase into feature/page-refactor 2020-11-30 11:47:08 +00:00
Martin McKeaveney
ce4bf552f1 fix users test, remove superfluous files 2020-11-25 15:30:10 +00:00
Martin McKeaveney
eb9cfcb8bd tidy up 2020-11-24 17:02:58 +00:00
Martin McKeaveney
a92d54f9a7 user table and relationships complete 2020-11-24 14:04:14 +00:00
mike12345567
8ae24a4b30 Storing some work in commit, currently broken, further work needed - application needs cleaned up. 2020-11-23 14:07:18 +00:00
mike12345567
b2da94c490 initial work towards page refactor. 2020-11-20 17:47:13 +00:00
mike12345567
7fcdf9c675 Merge branch 'master' of github.com:Budibase/budibase into feature/backend-routing 2020-11-12 15:08:50 +00:00
Martin McKeaveney
9e190ac1ec tidy up 2020-11-12 10:41:49 +00:00
Martin McKeaveney
9b914e0395 remove squirrelly, compile a single bundle.css for each page, svelte and hbs server rendering 2020-11-12 10:25:25 +00:00
mike12345567
5b26fce1ea 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
6d41a30440 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
8c6a97198f 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
7f3410204a Updates to pages so that they are written to DB and retrieved correctly. 2020-11-03 17:42:54 +00:00
Martin McKeaveney
ea3162f329 screens in DB 2020-11-03 16:27:28 +00:00
Martin McKeaveney
4d388987c4 pages being stored in couch on initialisation and page save 2020-11-02 14:56:48 +00:00
mike12345567
5b2be03bc3 Renaming instanceId -> appId to reduce confusion through the system, there only is one ID now. 2020-10-29 10:28:27 +00:00
mike12345567
ea03d099b3 Initial work into multi-tenancy removal, experiencing issues with test cases at this point. 2020-10-28 20:35:06 +00:00
mike12345567
0d8ec8e03a Some initial work towards webhooks, that generates schema similar to integromat. 2020-10-22 17:48:32 +01:00
mike12345567
ebffeeb998 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
8e3e12f234 Linting. 2020-10-16 12:13:27 +01:00
mike12345567
312c5fc437 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
b0cea4c091 Updating formatting. 2020-10-12 17:56:40 +01:00
mike12345567
51ed75978b Merge branch 'master' of github.com:Budibase/budibase into endpoint-renaming 2020-10-12 17:45:11 +01:00
mike12345567
1dea4f24b7 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
352ff82885 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
8df3a3f8de Fixes for deleting records when a table is deleted. 2020-10-12 16:37:08 +01:00
mike12345567
12242cf6b2 Merge branch 'master' of github.com:Budibase/budibase into endpoint-renaming 2020-10-12 15:25:27 +01:00
mike12345567
9841aab689 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
cfd4d9d34d Merge branch 'master' of github.com:Budibase/budibase into endpoint-renaming 2020-10-12 13:34:32 +01:00
Michael Drury
058149981e 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
512b7e78c0 Formatting code - was causing PR to fail. 2020-10-12 10:41:25 +01:00
mike12345567
03584cacb2 Using lodash flatten rather than pure JS. 2020-10-12 10:28:53 +01:00
mike12345567
d8f3a2ef17 Merge branch 'master' of github.com:Budibase/budibase into endpoint-renaming 2020-10-12 09:41:42 +01:00
mike12345567
abbf7fcc02 Merge branch 'link-record-performance' of github.com:Budibase/budibase into endpoint-renaming 2020-10-09 20:18:46 +01:00
mike12345567
efce1c839e Major performance boost to attachLinks -> makes CSV upload much more snappy. 2020-10-09 20:06:54 +01:00
mike12345567
dc9552dbad Updating tests and re-formatting. 2020-10-09 19:30:50 +01:00
mike12345567
763f7b3321 Updating ID to use ro rather than re for rows. 2020-10-09 19:16:33 +01:00
mike12345567
5d49d529e3 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
fdaa69ee7f 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
c280586b9b Merge branch 'master' of github.com:Budibase/budibase into api-usage-tracking 2020-10-09 11:21:26 +01:00
Martin McKeaveney
05206b6049 Merge branch 'api-usage-tracking' of github.com:Budibase/budibase into deployment-api-usage 2020-10-09 11:21:03 +01:00
Martin McKeaveney
f54062575b use centralised document types and separators 2020-10-09 10:50:44 +01:00
Martin McKeaveney
aef74c937e code review 2020-10-09 10:46:38 +01:00
mike12345567
325e291222 Removing sanisation, instead just using it as a central path system. 2020-10-09 10:00:57 +01:00
mike12345567
eea0bc5fb9 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
3080dc0658 use underscores instead of colons, shorten id entity names 2020-10-08 21:50:49 +01:00
mike12345567
552c31a53e Updates for API usage after testing against local Dynamo. 2020-10-08 17:34:41 +01:00
mike12345567
106badc9c6 Merge branch 'linked-records' of github.com:Budibase/budibase into api-usage-tracking 2020-10-07 15:41:39 +01:00
mike12345567
25cc60aa94 Merge branch 'master' of github.com:Budibase/budibase into linked-records 2020-10-07 14:48:20 +01:00
mike12345567
a72d8e42ad Sanitising the paths to the couchDB data directories. 2020-10-07 11:42:28 +01:00
mike12345567
72de4dcab4 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
3ad58c2aa7 Merge branch 'master' of github.com:Budibase/budibase into linked-records 2020-10-05 10:52:35 +01:00
mike12345567
03b9b3cec2 Merge branch 'master' of github.com:Budibase/budibase into remove-views 2020-10-05 10:04:23 +01:00
mike12345567
cb89f1199b Fixing an issue with linked records showing up as models after id changes. 2020-10-02 16:49:36 +01:00
mike12345567
a32ec9ece0 Some quick fixes after merge. 2020-10-02 15:49:13 +01:00
mike12345567
4d8b1ecc10 Merge branch 'remove-views' of github.com:Budibase/budibase into linked-records 2020-10-02 14:49:23 +01:00
mike12345567
7594b17ec7 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
0db7768e5d 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
c7693d6e86 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
8ebc444c34 Fixing issues when adding and deleting records from the input record linking list. 2020-10-01 12:30:14 +01:00
Michael Drury
3c8c5461d7 Resolving issues with deleting a linked column, should now be possible. 2020-10-01 11:33:37 +01:00
mike12345567
5cf845335c Minor update to fully handle field deletion which is a linked field; from a model. 2020-09-30 23:14:39 +01:00
mike12345567
3de8c86c4d Work towards handling linked record field updates, like the column being deleted from the model. 2020-09-30 17:52:57 +01:00
mike12345567
2bb349a381 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
9c6490f0f2 Fixing some missues with linked records after testing with the new UI. 2020-09-30 12:00:56 +01:00
mike12345567
672094b177 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
dee763a952 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
bfe2bb5a23 Update to make sure all linked record updates occur in sync with the API call. 2020-09-29 11:55:18 +01:00
mike12345567
7f0686380c 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
7e3715d88a 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
892ce699ce template export v1 2020-09-25 14:47:42 +01:00
Michael Shanks
c49710c3ff id generation in utilities module 2020-05-18 16:22:09 +01:00
Martin McKeaveney
3c9af5336e formatting 2020-05-18 11:01:17 +01:00
Martin McKeaveney
d6b3f9c219 test and couchDB init code 2020-05-18 10:55:35 +01:00
Michael Shanks
1dc32a05e3 removing clientId from frontend, fixing invalid database name 2020-05-18 06:40:29 +01:00
Michael Shanks
97db4f1765 server tests in-memory and passing 2020-05-14 15:12:30 +01:00
Michael Shanks
7d6046d021 allow bb home folder to bem anywhere 2020-05-11 15:42:42 +01:00
Martin McKeaveney
87ad6647df further tidy up and removal 2020-05-07 13:52:24 +01:00