Marc-Roig
|
a6993feab4
|
Merge branch 'feature/relations-reordering' into relations-reordering/database-logic-refactor
|
2022-11-18 09:29:13 +01:00 |
|
Marc-Roig
|
c568197c45
|
Merge branch 'main' into feature/relations-reordering
|
2022-11-18 09:28:57 +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 |
|
Jamie Howard
|
04295573f1
|
chore(entity-manager): revert to not handle multiple pg schemas
|
2022-11-16 11:22:22 +00:00 |
|
Jamie Howard
|
4b1f8101e6
|
fix(entity-manager): use db.connection for .raw()
chore(database): revert getConnection()
|
2022-11-16 09:34:08 +00:00 |
|
Jamie Howard
|
5553538c18
|
chore
|
2022-11-15 13:37:18 +00:00 |
|
Jamie Howard
|
0f7eb70fd2
|
fix(database): refactor getConnection to not use schemas
|
2022-11-15 13:28:35 +00:00 |
|
Jamie Howard
|
cad6a8da1c
|
fix(entity-manager): knex withSchema.raw error
|
2022-11-14 16:39:57 +00:00 |
|
Marc-Roig
|
ea5325b46c
|
compact max order and adjacent sql queries into one
|
2022-11-11 17:08:52 +01:00 |
|
Marc-Roig
|
e151df5da6
|
add get method
|
2022-11-10 17:15:58 +01:00 |
|
Marc-Roig
|
6e9424cf00
|
make relations sorter a pure function
|
2022-11-10 16:53:44 +01:00 |
|
Marc-Roig
|
70595ae790
|
access array last element without at
|
2022-10-26 17:30:22 +02:00 |
|
Marc-Roig
|
7a9f43a027
|
log relation reorderer error
|
2022-10-25 16:12:10 +02: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
|
b8cf3a13d7
|
document relations orderer
|
2022-10-24 14:47:15 +02:00 |
|
Marc-Roig
|
36ca8d7df6
|
max order default to 0 if no relations
|
2022-10-24 11:56:22 +02:00 |
|
Marc-Roig
|
640adedd73
|
fractional orderer error management
|
2022-10-24 11:21:44 +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 |
|
Pierre Noël
|
a17b3a0ba2
|
add and use loadPages
|
2022-10-03 17:52:12 +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
|
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 |
|