41 Commits

Author SHA1 Message Date
Marc-Roig
114d67a9f2 fix adjacentRelations query to look for joinColum name 2022-11-20 10:49:59 +01:00
Marc-Roig
5fad91721b add reordering in attachRelations 2022-11-20 10:49:24 +01:00
Marc-Roig
980624f176 add sorting 2022-11-17 10:08:59 +01:00
Marc-Roig
6df6c9487b remove sorting from orderer 2022-11-16 12:44:28 +01:00
Marc-Roig
ea5325b46c compact max order and adjacent sql queries into one 2022-11-11 17:08:52 +01:00
Marc-Roig
6e9424cf00 make relations sorter a pure function 2022-11-10 16:53:44 +01:00
Marc-Roig
5106ed251e test relation orderer 2022-10-24 15:18:38 +02:00
Marc-Roig
0f330d1410 Merge branch 'feature/relations-reordering' into relations-reordering/fractional-orderer 2022-10-24 14:48:10 +02:00
Marc-Roig
36ca8d7df6 max order default to 0 if no relations 2022-10-24 11:56:22 +02:00
Pierre Noël
05c93d44c5 add content api tests for connect relation format 2022-10-24 11:09:01 +02:00
Marc-Roig
2e7aa7c2a9 use position attribute for positional arguments 2022-10-24 10:21:29 +02:00
Marc-Roig
485355820f add connect disconnect format 2022-10-24 09:22:45 +02:00
Pierre Noël
95f3abfa6b remove TODO comments 2022-10-07 15:42:48 +02:00
Pierre Noël
6e67d82f5f add transaction in DB entity manager 2022-10-06 18:03:10 +02:00
Marc-Roig
9edb46c310 check if set is empty 2022-09-30 10:54:44 +02:00
Pierre Noël
3e60852fa0 fix partial update delete 2022-09-30 10:54:44 +02:00
Pierre Noël
bf16d07463 throw when deletePreviousAnyToOneRelations and deletePreviousOneToAnyRelations are called for non compatible relations 2022-09-30 10:54:43 +02:00
Pierre Noël
8e5543b21d fix cleanOrder + use hasOrderColumn and hasInverseOrderColumn 2022-09-30 10:54:41 +02:00
Pierre Noël
a56879e12b implement cleanOrder function 2022-09-30 10:54:41 +02:00
Pierre Noël
9830910312 fix morphToMany order 2022-09-30 10:54:40 +02:00
Pierre Noël
eb8d79e0c8 restructure updateRelations - connect 2022-09-30 10:54:40 +02:00
Pierre Noël
3ffc748b86 improve max query in updateRelations - connect 2022-09-30 10:54:39 +02:00
Pierre Noël
43106732a2 improve max query in insertRelations 2022-09-30 10:54:39 +02:00
Pierre Noël
a9819dc375 use onConflict in updateRelations 2022-09-30 10:54:38 +02:00
Pierre Noël
3b0d6b6e7f refactor deleteAllRelations 2022-09-30 10:54:37 +02:00
Pierre Noël
4ce09c5193 various fixes 2022-09-30 10:54:37 +02:00
Pierre Noël
4ef5e1fa48 fix set issues 2022-09-30 10:54:36 +02:00
Pierre Noël
c1d82b6f9e use set format 2022-09-30 10:54:36 +02:00
Pierre Noël
5d0eb61fae start factorizing code 2022-09-30 10:54:35 +02:00
Pierre Noël
e7428cdf83 fix tests 2022-09-30 10:54:35 +02:00
Pierre Noël
e2d4cb483c fix delete previous relations for anyToOne 2022-09-30 10:54:34 +02:00
Pierre Noël
eaf0d84224 add decrements to queryBuilder + use it 2022-09-30 10:54:34 +02:00
Pierre Noël
59417498ab use NULL as default order + better handle migration 2022-09-30 10:54:33 +02:00
Pierre Noël
83c29436ca adapt all entity-manager with 2 order columns 2022-09-30 10:54:33 +02:00
Pierre Noël
c4031449fb implement 2 columns + adapt attachRelations 2022-09-30 10:54:32 +02:00
Pierre Noël
a1d1879ffb fix create entity with relations in connect 2022-09-30 10:54:32 +02:00
Pierre Noël
b7a1e312b4 implement simple partial update 2022-09-30 10:54:31 +02:00
Pierre Noël
e29c069e2a add first base for reordering 2022-09-30 10:54:31 +02:00
Pierre Noël
72eec1fb7c Merge branch 'main' into fix/upload-new-file-to-entity 2022-09-13 16:00:05 +02:00
Pierre Noël
b68aa8fcc6 fix conflict 2022-09-05 16:31:05 +02:00
Pierre Noël
23657b7b5a factorize code 2022-09-05 16:18:37 +02:00