Alexandre Bodin
996341f5d5
Move to many way & add populate option on assoc
2021-03-05 15:44:23 +01:00
Alexandre Bodin
e9b4bf5616
Merge branch 'master' into features/i18n
2021-03-05 12:22:18 +01:00
Alexandre BODIN
d5049777ea
Stop populating component when populating relation to avoid infinitie loop but allow any component depth ( #9464 )
2021-02-22 11:09:36 +01:00
Alexandre Bodin
469991f9f2
Merge branch 'master' into features/i18n
2021-02-18 14:36:32 +01:00
Alexandre Bodin
cefdde18f4
Init db lifecycles manager
2021-02-16 16:48:16 +01:00
Alexandre Bodin
02782076d0
Update migrations to be more extensible
2021-02-15 08:45:20 +01:00
Alexandre BODIN
a53d2dbaca
Fix mongoose autopopulate recursively looping to infinity when cycles appear ( #9367 )
2021-02-11 15:52:59 +01:00
Pierre Noël
b3a9b5ad76
add pluginOptions
2021-02-10 14:29:54 +01:00
Convly
823070df9d
Fix mongoose destroy function & re-add strapi.stop calls
...
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2021-01-08 10:09:07 +01:00
soupette
61a3740c06
Fix conflicts
...
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-11-23 14:43:07 +01:00
Deepak
9508a31c4c
fix : #8342 ignore dynamic zone component if its not in data ( #8366 )
...
Signed-off-by: Deepak Thukral <iapain@gmail.com>
2020-11-10 09:43:12 +01:00
Alexandre Bodin
0df69c30ce
Allow setting the published_at field in the API
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-10-05 14:07:17 +02:00
Alexandre Bodin
c98089ff65
Merge branch 'master' into releases/3.2
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-10-05 12:00:03 +02:00
Jean-Sébastien Herbaux
e55ea1d6b5
Hide creator fields from public api by default ( #8052 )
...
* Add model option to hide/show creators fields in public API response
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Add content-types util, rework sanitize-entity's private handling
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Update search e2e tests, fix an issue on empty search for the core-api controller (find)
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Fix GraphQL plugin (handle privates attributes on typeDefs + resolver builds)
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Fix sanitizeEntity import
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Move doc update from beta to stable
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Fix e2e test
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Fix pr comments
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Remove creator's field from upload controller routes
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Fix typedef build for graphql association
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Fix pr (comments + several issues)
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Add tests for search behavior in content-manager
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Rename files variables to meaningful names (upload controllers)
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Fix test with search id matching serialNumber
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
* Add toHasBeenCalledWith check for config.get (utils/content-types.test.js)
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-10-01 17:47:08 +02:00
Jean-Sébastien Herbaux
c4716d5668
[D&P] Return published content by default from get apis ( #7657 )
...
* Add _publicationState request param / Returns live by default for CT that have D&P activated
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-09-22 17:39:46 +02:00
Pierre Noël
74a85c1127
Add migration d&p
2020-09-22 17:39:40 +02:00
Pierre Noël
38216554d5
Draft publish/remove some validators for drafts ( #7537 )
...
* remove required + minLength validator for drafts
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-09-22 17:39:24 +02:00
Pierre Noël
e29c1b7de9
add published_at ( #7374 )
...
* add published_at
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-09-22 17:39:18 +02:00
Alexandre Bodin
1cc74ca6a0
Fix virtual mongoose remove _v char
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-08-10 15:19:28 +02:00
Alexandre Bodin
38d67fc873
Fix mongo issues
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 16:07:11 +02:00
Convly
20f80b2361
Better permissions-manager.sanitize behavior
...
Forbid empty arrays as fields for permissions (on ability creation)
Differentiate input from output sanitizing
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:38 +02:00
Alexandre Bodin
4edad86029
Add basic created_by updated_by
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:16 +02:00
Alexandre Bodin
8ce56f3517
Fix typos
...
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:25:11 +02:00
atlmtw
66637e0101
Update mount-models.js ( #6916 )
...
This is to ensure custom mongoose queries that exclude dynamic zone fields don't fail.
Referring to this issue:
https://github.com/strapi/strapi/issues/6016
2020-07-06 09:35:55 +02:00
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