28 Commits

Author SHA1 Message Date
Alexandre Bodin
1edc581864 Remove lifecycles from connectors
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-05-04 10:55:08 +02:00
Alexandre Bodin
4f3c4ab340 Merge branch 'develop' into features/media-lib
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-04-15 10:23:46 +02:00
Convly
b88092966c Remove auto-sync indexes for mongodb from production envs
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-04-09 15:29:07 +02:00
Alexandre Bodin
50df7365d6 Merge branch 'develop' into features/media-lib
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-30 12:04:04 +02:00
Jean-Sébastien Herbaux
4a8de29100
Fix ability to update unique constraints in mongoose (#5612)
* Sync indexes on model mount with mongoose

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Use Mongoose.Model.syncIndexes callback arg to subscribe to Model's indexes messages. Get rid off errors-pron-promises.

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-03-27 11:39:53 +01:00
Alexandre Bodin
be24f640d9 some cleanup
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-20 11:06:47 +01:00
Alexandre Bodin
c7f10bfede Update populate to keep array order
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-20 11:04:24 +01:00
Alexandre Bodin
c8de166051 Add deleteRelations logic in connectors
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-20 11:04:23 +01:00
Alexandre Bodin
7a8c865051 Merge branch 'develop' into features/media-lib
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-02 15:18:08 +01:00
Alexandre Bodin
77b1a2944b Add mongoose uid type
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-13 16:46:37 +01:00
HichamELBSI
98871fcb46 Merge branch 'develop' into features/single-types 2020-02-05 16:41:30 +01:00
Jelmer Visser
66d9971d1b Check if ref is set before checking toJSON
Signed-off-by: Jelmer Visser <jelmer@weflycheap.nl>
2020-01-30 15:08:22 +01:00
Alexandre Bodin
4f039b2df8 Clean lint
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-01-17 10:43:17 +01:00
Alexandre BODIN
cccf256bf7
Merge branch 'master' into fix/enumeration 2020-01-06 12:18:37 +01:00
Alexandre Bodin
27e6975c4a Do not overwritten morphAssoc populates 2020-01-06 11:51:03 +01:00
Alexandre Bodin
252941d589 Allow null value in mongo enums 2020-01-06 11:15:00 +01:00
Alexandre Bodin
eda218d37b Populate component relations 2019-12-19 11:05:54 +01:00
Alexandre Bodin
5b01448dac Return __contentType field in morph related fields 2019-12-10 17:24:55 +01:00
Alexandre Bodin
c66fe82c41 Handle time and date in mongo 2019-12-05 15:26:01 +01:00
Alexandre Bodin
06b0cc22c8 parse date types 2019-12-04 17:49:13 +01:00
Alexandre Bodin
c2a0829811 Fix remove and add morph relation 2019-11-27 15:30:38 +01:00
Alexandre Bodin
62237bcd08 Mongoose fix populate and support dynamic zone populate 2019-11-26 17:01:58 +01:00
Alexandre Bodin
50e35f1026 Support updates 2019-11-26 11:24:00 +01:00
Alexandre Bodin
f82b05dc94 Support creation 2019-11-26 09:53:18 +01:00
Alexandre Bodin
a34f117a4a Init mongo dynamic zone support 2019-11-25 19:19:41 +01:00
Alexandre Bodin
b9122edf0d Rename groups to components 2019-11-13 18:49:02 +01:00
Alexandre Bodin
1fcc8d00fa Merge branch 'master' into develop 2019-10-29 23:04:57 +01:00
Alexandre Bodin
66b2d4f5c3 Init 2019-10-23 17:02:23 +02:00