Commit Graph

58 Commits

Author SHA1 Message Date
Adria Navarro 3cb653eb01 Fix initial setup 2024-11-05 11:54:09 +01:00
Adria Navarro 6505f518c8 Don't allow same foreign keys 2024-11-05 11:31:46 +01:00
Adria Navarro 94d3466113 Allow setting multiple many-to-many relationships 2024-11-05 11:24:23 +01:00
Peter Clement df5a435696 Fix issue with being able to select one to one relationship 2024-03-07 09:27:31 +00:00
Dean a5dfbe3c89 Merge remote-tracking branch 'origin/master' into feature/monolith-js-refactor 2024-02-07 14:45:06 +00:00
mike12345567 51aeda26ce Fix for #12909 - the relationship modal was too small, cutting table names and making it hard to use, expanding the modal to be easier to use on normal screens. 2024-01-30 12:53:51 +00:00
Dean 1bd08b6879 Merge remote-tracking branch 'origin/master' into feature/monolith-js-refactor 2024-01-30 11:49:32 +00:00
Peter Clement 827508816e Fix for relationship save button being enabled when table was missing 2024-01-25 12:14:55 +00:00
Dean 30db237071 Merge remote-tracking branch 'origin/master' into feature/monolith-js-refactor 2024-01-17 17:17:01 +00:00
Adria Navarro 92f411bf77 Prettier 2023-11-20 21:48:49 +01:00
Adria Navarro 4d27ff1dc0 eslint import/no-duplicates 2023-11-20 21:48:49 +01:00
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
Dean c96fefdba7 Consolidated all stores into stores/builder. Store refactoring and added store console debug flag 2023-11-06 11:22:00 +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