345 Commits

Author SHA1 Message Date
Pierre Noël
bd82249ab6 fix xToOne relations + finish e2e tests 2022-10-10 14:28:57 +02:00
Pierre Noël
541f4b6a40
Merge pull request #14574 from strapi/relations-main-view/fix-order
Use transformLoadParamsToQuery instead of transformParamsToQuery to f…
2022-10-10 14:28:18 +02:00
Pierre Noël
da70af1294 remove offset & limit when counting in populate 2022-10-07 20:21:15 +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
Pierre Noël
a17b3a0ba2 add and use loadPages 2022-10-03 17:52:12 +02:00
Alexandre Bodin
15cb9900b4 Add ordering option to populate 2022-09-30 23:38:05 +02:00
Alexandre Bodin
7c4b7e02c8 Refactor populate 2022-09-30 23:38:05 +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
8248458a1f fix cleanOrder query for mysql 2022-09-30 10:54:43 +02:00
Pierre Noël
3acb08cd5b fix onConflict for components 2022-09-30 10:54:42 +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
2cebbc2de4 fix unique index 2022-09-30 10:54:38 +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
8d36a07fc4 Merge branch 'main' into feature/relations-main-view 2022-09-22 17:46:04 +02:00
Alexandre Bodin
8ebf58d9ed v4.3.9 2022-09-21 14:17:36 +02:00
Pierre Noël
b601daa36b Merge branch 'main' into feature/relations-main-view 2022-09-14 11:36:44 +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
3f72ff3a73 Merge branch 'main' into feature/relations-main-view 2022-09-08 15:41:31 +02:00
Alexandre BODIN
59b83c5953
Merge pull request #14320 from strapi/chore/eslint
chore/eslint
2022-09-08 14:45:12 +02:00
Pierre Noël
79e0671e61
Merge branch 'main' into fix/upload-new-file-to-entity 2022-09-08 11:49:27 +02:00
Alexandre Bodin
6654ad3528 Add node 18 2022-09-08 08:44:27 +02:00
Alexandre Bodin
c44f21d5ba v4.3.8 2022-09-07 16:47:41 +02:00
Alexandre Bodin
886fcc015d Create id column as nullable to avoid conflict with default null values 2022-09-07 15:59:07 +02:00
Alexandre Bodin
73f523b983 v4.3.7 2022-09-07 14:24:30 +02:00
Alexandre BODIN
c84fe78a13
Merge pull request #14332 from strapi/chore/increments-updates
Improve pk management in schema builder
2022-09-07 11:11:15 +02:00
Alexandre Bodin
019e13d8e9 Improve pk management in schema builder 2022-09-07 09:11:50 +02:00
Pierre Noël
1850264b3c
Merge pull request #14262 from strapi/relations-main-view/get-relations
Add "get relations" route and remove "preview relations"
2022-09-06 16:56:49 +02:00
Gustav Hansen
931f6cdc8f Merge branch 'main' into feature/relations-main-view 2022-09-06 14:39:03 +02:00