Rory Powell
fba7ef26ad
Replace ts-jest with swc/jest ( #9289 )
...
- Add swc dependencies
- Add transform change to jest.config.ts
- Replace `export =` with `export default` in src code to enable code coverage to work with swc transformer
- Restructure backend-core errors package to allow for exporting error classes with ESM syntax
- Update backend-core to no longer use `export =`, export individual packages instead of replacing with `export default` for backwards compatibility
- Update event publishers to use `export default` - this was required for the `jest.spyOn` usage inside backend-core common mocks
- Restructure some jest.mock usages where declaring the jest.fn as a variable outside of the package mock threw an error
2023-01-11 09:37:37 +00:00
mike12345567
658f12281d
Fixes based on server build so far.
2022-11-26 15:10:41 +00:00
mike12345567
eeebd0fe70
Typescript conversion of linked row controller.
2022-11-25 18:54:57 +00:00
mike12345567
02ede5d067
Finally removing all usages of backend-core/ type imports from server, including some further typescript conversions.
2022-11-22 19:49:59 +00:00
Dean
ff7a3b8cef
Default Datasource and sample row data
2022-11-13 21:37:50 +00:00
mike12345567
fc6111272e
Fixing viewname enumeration.
2022-08-11 14:40:17 +01:00
mike12345567
f86f6c3b1c
Shifting the title of the flow item header into separate component so that it can be used by the run history flow as well.
2022-05-12 18:14:38 +01:00
mike12345567
194b76985c
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
Michael Drury
d3a90acc55
Final pass refactoring - need to test but all code in server converted.
2022-01-28 00:05:39 +00:00
mike12345567
d2fe119d90
Main body of work, refactoring most usages.
2022-01-27 18:18:31 +00:00
mike12345567
23071993c6
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
c8dbf02acf
Performance improvements after testing - switching to temporary in memory queries for cloud views.
2021-09-21 15:59:50 +01:00
mike12345567
a92530f170
Fixing issue #2412 - making sure full enriched records are passed along to automations.
2021-09-13 16:28:52 +01:00
mike12345567
3f960e4f13
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
mike12345567
8c3eb30ab1
Fixing issues after upgrading to node 14 and circular dependencies causing issues.
2021-09-02 18:33:41 +01:00
mike12345567
2148bf6da4
Fixing issues with search endpoint not handling users fully.
2021-09-02 17:13:00 +01:00
Keviin Åberg Kultalahti
f6218d8e0b
Merge branch 'master' into develop
2021-08-13 14:41:49 +02:00
Martin McKeaveney
83b99be1d6
linting ✨
2021-08-11 20:34:45 +01:00
Martin McKeaveney
1678c86bf4
lint
2021-08-10 17:46:28 +01:00
Martin McKeaveney
ccb7f67458
ensure user metadata is created before link documents are created
2021-08-10 13:00:15 +01:00
mike12345567
bc84bab52c
Merge branch 'master' of github.com:Budibase/budibase into develop
2021-08-06 13:04:54 +01:00
mike12345567
7624390f0b
Fixing a variety of issues with internal relationships and external SQL relationships.
2021-08-05 19:24:29 +01:00
mike12345567
46ea3f3e9e
Revert "Merge pull request #2253 from Budibase/revert-2076-feature/multi-tenants"
...
This reverts commit 4834b765be
, reversing
changes made to 2456e69483
.
2021-08-05 09:59:08 +01:00
Michael Drury
b86a6fddc9
Revert "Multi-tenancy/organisations"
2021-08-04 10:02:24 +01:00
mike12345567
912659a8ad
First version of multi-tenancy, work still to be done.
2021-07-15 17:57:02 +01:00
mike12345567
1568702a6d
Linting + formatting.
2021-06-25 17:21:36 +01:00
mike12345567
5462ca5930
Removing use of the arguments[0] as they don't mesh well with TS.
2021-06-25 17:14:23 +01:00
mike12345567
c531a02725
Allowing formula fields to be display columns.
2021-06-22 11:49:35 +01:00
mike12345567
47fb67ebfc
Linting.
2021-06-20 10:55:12 +01:00
mike12345567
052d14ad38
Fixing issue with 1:N relationships and multiple fields, issue #1753 .
2021-06-20 10:53:55 +01:00
mike12345567
b05c67e8b5
Formatting.
2021-06-08 16:11:46 +01:00
mike12345567
33184be064
Re-writing how global users are handled in server, specifically how they are retrieved, so that for relationships it can handle the global user.
2021-06-08 16:06:30 +01:00
mike12345567
e5f3b3956c
Merge branch 'next' of github.com:Budibase/budibase into labday/mike-formulas
2021-05-04 13:24:14 +01:00
Andrew Kingston
797e8a8b67
Add explicit prettier options
2021-05-04 11:32:22 +01:00
mike12345567
dcf69b2181
Merge branch 'next' of github.com:Budibase/budibase into labday/mike-formulas
2021-05-04 10:34:30 +01:00
Keviin Åberg Kultalahti
0afbf1649e
lint:fix
2021-05-03 09:31:09 +02:00
mike12345567
a14c80bf6c
Adding handlebars formulas to the system, it is now possible to set a formula at a column level which will always be applied on the way out with a relationship depth of one.
2021-04-29 19:06:58 +01:00
mike12345567
97f8d34947
Some final changes to search system so that the new indexing system is used instead of mango to achieve exactly the same result.
2021-03-26 13:46:20 +00:00
mike12345567
d28737da34
Upping relationship coverage overall to 98% - looking over utilities which are barely ever used.
2021-03-16 23:25:18 +00:00
mike12345567
d6329e2409
Adding test cases which bring the link controller coverage to 100%.
2021-03-16 18:13:00 +00:00
mike12345567
47cf63bb16
starting into relationship testing.
2021-03-16 13:24:44 +00:00
mike12345567
68bb5d5062
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
0c8026c5ce
First version, still playing around with styling.
2021-03-01 17:06:08 +00:00
mike12345567
78286ae514
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
c73c77448c
bugfixes
2021-02-25 16:21:41 +00:00
mike12345567
51ed23d0a7
Updating link controller to manage existing column comparison a bit better.
2021-02-25 15:21:08 +00:00
mike12345567
cd36739c23
Merge branch 'master' of github.com:Budibase/budibase into bug/relationship-display-id
2021-02-25 12:36:16 +00:00
Martin McKeaveney
2d75bc750b
relationship type constant
2021-02-25 12:21:24 +00:00
mike12345567
429811ec8b
Wrapping throws in new errors.
2021-02-25 12:10:18 +00:00
mike12345567
a311002632
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
89350c91d1
refactor
2021-02-25 11:59:31 +00:00
Martin McKeaveney
bcaed4f4e4
Server side data integrity for 1:N
2021-02-25 11:55:23 +00:00
Martin McKeaveney
19fb11e69d
1-n-data-integrity
2021-02-25 11:05:15 +00:00
mike12345567
91878ed2ce
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
8f9ea1cd8a
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
780b6e0956
Fixing some issues with enrichment, making sure display column can always be worked out.
2021-02-19 13:21:38 +00:00
mike12345567
fa6d3e5e63
Updating the self auth endpoint to use the row processor.
2021-02-19 10:32:24 +00:00
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
mike12345567
ca20cbeeca
First lot of work to update the auto fields into schema.
2021-02-10 17:55:19 +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
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
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
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
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
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
51ed75978b
Merge branch 'master' of github.com:Budibase/budibase into endpoint-renaming
2020-10-12 17:45:11 +01:00
mike12345567
cfd4d9d34d
Merge branch 'master' of github.com:Budibase/budibase into endpoint-renaming
2020-10-12 13:34:32 +01:00
mike12345567
512b7e78c0
Formatting code - was causing PR to fail.
2020-10-12 10:41:25 +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
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