Commit Graph

46 Commits

Author SHA1 Message Date
mike12345567 6282582bb0 PR comments. 2023-11-10 11:02:50 +00:00
mike12345567 77f0eebdfd Removing stray console.log. 2023-11-09 17:30:40 +00:00
Peter Clement 419c5ced70 fix issue with relationship selection 2023-11-09 15:31:20 +00:00
Peter Clement 82c0e3d450 Fix issue with directional relationship being swapped 2023-10-31 13:43:54 +00:00
Peter Clement eca0089cb9 Merge remote-tracking branch 'origin/develop' into feat/relationship-configuration 2023-10-03 08:44:27 +01:00
Adria Navarro 3546dfc0cf Validate 2023-10-02 15:18:28 +02:00
Adria Navarro aa0ec1c7cb Fix validating on relationshipType change 2023-10-02 15:12:35 +02:00
Peter Clement c6442efcab tidy up 2023-09-28 16:29:45 +01:00
Peter Clement ac2c63f9ed use Relationship selector for external datasource relationships 2023-09-28 16:02:37 +01:00
mike12345567 fef5c2a003 Quick fix for relationship toast. 2023-09-05 15:37:18 +01:00
mike12345567 7673673db2 Updating RelationshipTypes -> RelationshipType. 2023-07-21 12:57:47 +01:00
Gerard Burns 1f59986a87 Use constant for keeping modal open (#11067) 2023-07-05 13:49:39 +01:00
mike12345567 5373b867e1 Fix for #10949 - the relationship types were always locked to be the same, which means that the foreign key wasn't being updated correctly as the backend was not aware of which side was the one-to-many side. 2023-06-22 12:32:39 +01:00
mike12345567 488b542ac1 Fix for #9654 - the error checking was looking at the through fields flipped, which caused many to many relationships to throw an error. Also I've updated the dev compose file on master so that switching between develop and master is smoother. 2023-02-14 14:38:55 +00:00
mike12345567 90c2e69efe Final fix - making sure relationships can be built from table UI. 2023-02-02 17:37:41 +00:00
mike12345567 01edfba90e Some final fixes based on comments, adding foreign key type checking for through tables. 2023-02-02 17:25:02 +00:00
mike12345567 2807fbd4b6 Updating reactivity to fix issues with occasionally incorrect errors. 2023-02-02 16:59:12 +00:00
mike12345567 21556c215a PR comments. 2023-02-02 16:19:50 +00:00
mike12345567 ab66378fbf Some final updates, clean up some code that could be causing reactive issues. 2023-02-01 19:26:26 +00:00
mike12345567 049d4a0363 Removing console log. 2023-02-01 19:10:41 +00:00
mike12345567 3a51933801 Re-working the error handling for the SQL relationship modal, as well as adding some better defaults for the majority of the options to make the UI a bit easier to use. 2023-02-01 19:09:36 +00:00
melohagan 49e79bfeec Prevent many-many relationships with same tables (#9421)
* Prevent many-many relationships with same tables

* Don't check relationship if original tables

* Refactor
2023-01-25 13:09:20 +00:00
melohagan 455db2e5a2 Create edit relationship modal (#9400)
* Flip from to fields the correct way

* Do not allow through table foreign keys to match
2023-01-20 15:36:31 +00:00
Mel O'Hagan 738e0f28d7 lint 2023-01-19 22:54:46 +00:00
Mel O'Hagan 8a4c0c6acd Overhaul of CreateEditRelationship modal 2023-01-19 22:54:06 +00:00
Mel O'Hagan a6e7ef3985 Remove console log 2023-01-19 14:38:26 +00:00
Mel O'Hagan 50e571c1de Ignore primary touched if isMany 2023-01-19 14:29:47 +00:00
Mel O'Hagan b4dcdfa84f Update through table error message 2023-01-19 14:14:29 +00:00
Mel O'Hagan 30905d35ef Remove existing relationships if table changed 2023-01-13 18:14:34 +00:00
Mel O'Hagan db29b131eb Delete original relationship if table changes 2023-01-13 17:22:04 +00:00
Mel O'Hagan 5be6c241b7 Use original table names in delete 2023-01-13 16:42:29 +00:00
Mel O'Hagan 889376003d Use original relationship names on delete 2023-01-13 16:18:46 +00:00
Mel O'Hagan dfd6575aea Validation improvements 2023-01-13 15:01:21 +00:00
Mel O'Hagan d7ae20ce21 Use foreign key instead of parimary[0] 2023-01-13 12:41:41 +00:00
Mel O'Hagan 66c13a2a77 Try to match primary key or take first 2023-01-13 11:47:09 +00:00
melohagan 5477cf420a Allow primary keys to be foreign key (#9331) 2023-01-13 11:22:59 +00:00
mike12345567 3a31981778 Updating error message. 2022-12-05 11:48:27 +00:00
mike12345567 0ca1c359a5 Final fix for #8882 - adding text to show the error - as well as fixing an issue with many to many updating correctly. 2022-12-02 17:28:37 +00:00
Mel O'Hagan 48f8013492 Refactor 2022-09-23 16:54:39 +01:00
Mel O'Hagan f11e56547f Do not allow non-match type primary foreign keys 2022-09-21 09:10:31 +01:00
Andrew Kingston a3eef9f534 Merge branch 'develop' of github.com:Budibase/budibase into frontend-core 2022-02-04 09:23:32 +00:00
mike12345567 168a126e2a Updating the SQL core to allow it to handle multiple relationships between the same two tables. 2022-02-02 18:15:17 +00:00
Andrew Kingston 1ec3a91cae Update usages of utils and helpers in the builder 2022-01-20 11:19:37 +00:00
mike12345567 e3e8b538f5 Review comments. 2021-11-24 13:15:44 +00:00
mike12345567 8be84e5602 Quick fix for #3485 - default the key to the primary key but allow another field to be selected. 2021-11-23 12:10:40 +00:00
mike12345567 c82cf534d8 Updating external table UI a bit, adding the concept of defining an existing relationship, updating the data sources UI to make it a bit less cluttered and make the creation of tables more obvious. 2021-11-01 21:15:46 +00:00