Marc-Roig
39d2988c52
fix: use regular join table name in mysql
2023-08-11 09:43:38 +02:00
Marc-Roig
814b6f01bd
fix: use correct table schema
2023-08-10 09:39:27 +02:00
Marc-Roig
fd59fcea30
fix: use getConnection for raw query
2023-08-09 12:15:25 +02:00
Marc-Roig
ec9ae96d83
test: revert raw connection to test CI
2023-08-09 10:20:25 +02:00
Marc-Roig
5a7bc5aa02
fix: use get connection to execute raw query
2023-08-09 09:25:07 +02:00
Gustav Hansen
20937a7464
Chore: Apply lint autofixable rules
2023-07-31 08:18:00 +02:00
Marc-Roig
43f56d426e
fix: two separate queries to update order and inverse order
2023-07-11 13:22:16 +02:00
Marc-Roig
f6246c145d
fix: relations are not returned in the correct order
...
When removing or adding a relation in an entity, other entities from the same Content Type were seeing that same relation reordered.
Cause: We were updating the order of the other entities when we should only be updating the inverse order.
2023-07-11 10:17:06 +02:00
Marc
28252dfa94
chore: remove todo
2023-06-22 08:00:14 +01:00
Marc
a6f4afeda6
refactor: change cloneRelations cloneAttrs format
2023-06-22 08:00:14 +01:00
Marc-Roig
4d79a359bd
feat: compute omitIds
2023-06-22 07:59:49 +01:00
Marc-Roig
49f290ff97
feat: add omitIds
2023-06-22 07:59:49 +01:00
Marc-Roig
460099408b
remove todos
2023-06-22 07:59:49 +01:00
Marc-Roig
292ae24aea
update relations inside clone relations
2023-06-22 07:59:48 +01:00
Marc-Roig
a8af01763c
rename merge with customizer variables
2023-06-22 07:59:48 +01:00
Marc-Roig
76eb559466
clone entity
2023-06-22 07:59:48 +01:00
Marc-Roig
b5f1d6842c
rename targetId to id
2023-06-22 07:59:48 +01:00
Marc-Roig
2e7e8b6813
rename id cloneId to targetId sourceId
2023-06-22 07:59:48 +01:00
Marc-Roig
e970451c9e
update clone relation jsdoc
2023-06-22 07:59:48 +01:00
Marc-Roig
8241f4ae3a
mention future support for join columns
2023-06-22 07:59:48 +01:00
Marc-Roig
2faed39cbb
remove todos
2023-06-22 07:59:48 +01:00
Marc-Roig
8cf615583d
clone and replace regular relations db queries
2023-06-22 07:59:48 +01:00
Marc-Roig
e817c74b25
clean inverse order column
2023-06-22 07:59:48 +01:00
Marc-Roig
c4386ef013
add entity-repository cloneRelations method
2023-06-22 07:59:48 +01:00
Marc-Roig
49cc9cfb89
add entity-repository cloneRelations method
2023-06-22 07:59:48 +01:00
Gustav Hansen
e386aff3d5
Merge branch 'main' into feature/review-workflow
2023-04-24 13:59:41 +02:00
Michael Olund
975a3ca03d
Fix knex error when removing existing relations as a batch
...
Added a fallback of 0 after null coalesce
2023-04-21 12:11:16 -07:00
Marc-Roig
e845fc95a0
Merge branch 'main' into feature/review-workflow
2023-04-14 17:20:14 +02:00
Marc
041ba710a3
Update relations-orderer.test.js
2023-04-13 13:29:50 +02:00
Jamie Howard
05cee5cbd7
Merge remote-tracking branch 'origin/main' into feature/review-workflow
2023-04-11 14:15:43 +01:00
Marc
b4374e1a59
fix: transform null order values to 1 by default
2023-04-04 16:29:38 +02:00
Kevin Antonio Rateni Iatauro
0895e36738
Return newly created IDs when using createMany ( #14269 )
...
Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
2023-03-22 08:43:52 +01:00
nathan-pichon
da43693018
feat(review-workflows): add migration when activating rw on content-type (wip)
...
There is performance problems in this code. We will need to fine tune the query to update relations on stages join table instead of rely on `updateRelations()` method
2023-03-01 17:53:37 +01:00
Pierre Noël
64cf2c26c8
add SQL request as a comment
2023-01-25 14:28:28 +01:00
Pierre Noël
6d92bbca8a
use window function for mariaDB and MySQL 8
2023-01-25 14:28:28 +01:00
Pierre Noël
c9df9b7497
fix ambiguous column name
2023-01-25 14:28:28 +01:00
Pierre Noël
c505a62f7e
change WHERE clause to avoid deadlock
2023-01-25 14:28:27 +01:00
Pierre Noël
aad60aab38
change SQL request logic
2023-01-25 14:28:27 +01:00
Bassel Kanso
c08e0afda6
Merge branch 'main' into chore/transactions
2023-01-18 11:04:32 +02:00
Josh
fb358ef030
Merge branch 'main' into feature/relations-reordering
2023-01-16 17:51:52 +00:00
Bassel
faf4d728cd
Merge branch 'main' into chore/transactions
2023-01-13 12:26:20 +02:00
Bassel
12dd68f4a7
Improve transaction API:
...
- make it possible to have nested transactions
- wrap the knex transaction api and apply changes everywhere it was used
2023-01-13 12:23:30 +02:00
Marc-Roig
dd98293a55
better filtering in inverse order column
2023-01-13 10:53:30 +01:00
Marc-Roig
cf01fb8db6
make strict connect explicit when inserting relation
2023-01-11 16:40:06 +01:00
Marc-Roig
51cd3ddc85
rename arr to computedRelations
2023-01-11 16:36:36 +01:00
Marc-Roig
610ce2aadf
simplify marking relation as computed
2023-01-10 11:20:16 +01:00
Marc-Roig
5a185f1e00
delete duplicate relation in connect array
2023-01-10 10:58:56 +01:00
Marc-Roig
b81cfb0055
do not allow to connect same relation more than once
2023-01-10 10:45:31 +01:00
Marc-Roig
a05bdd83ae
change firstSeen to mappedRelationsIndex
2023-01-05 16:44:18 +01:00
Marc-Roig
8bf254faac
move computeRelation outside for each
2023-01-05 09:31:51 +01:00