52 Commits

Author SHA1 Message Date
Marc-Roig
4ef8732caf Merge branch 'main' into feature/private-s3-bucket 2023-03-08 10:56:03 +01:00
Marc
c942ca2564
Update entity-manager.js 2023-03-03 14:02:56 +01:00
Marc
8c1ec39e8d
Update entity-manager.js 2023-03-03 14:02:44 +01:00
Jamie Howard
f2346222fa chore(content-manager): fix typos 2023-03-01 11:31:52 +00:00
Marc-Roig
37e980fc7e send entity with updates in it in publish webhook 2023-02-28 09:19:26 +01:00
Jamie Howard
7da22885ad chore(content-manager): PR feedback 2023-02-27 11:50:49 +00:00
Jamie Howard
de5d6b5a8c refactor(content-manager): entity manager support single types 2023-02-23 11:50:01 +00:00
Marc-Roig
9a948e7f7e fix 2023-02-14 18:20:16 +01:00
Marc-Roig
37ef6e7cd6 fix mapping entity when relations are populated 2023-02-14 09:11:10 +01:00
Marc-Roig
bbafe2b01d fix conflicts 2023-02-13 17:39:51 +01:00
Jamie Howard
5b0ccf64da refactor(content-manager): add mapEntity to the entity manager 2023-02-13 11:06:57 +00:00
Marc-Roig
d340110b9f refactor wrapEmitEvent to emitEvent 2023-01-30 16:35:45 +01:00
Marc-Roig
34935bdb17 fix unpublish publish 2023-01-27 10:39:33 +01:00
Marc-Roig
3e95ff78d3 remove getDeepCountPopulate 2023-01-26 17:25:56 +01:00
Marc-Roig
15a723cca7 remove deprecation messages 2023-01-23 10:49:31 +01:00
Marc-Roig
69b9ee42a2 move warning to bootstrap 2023-01-20 09:41:26 +01:00
Marc-Roig
30fa5bd2c3 fix comment 2023-01-19 15:14:48 +01:00
Marc-Roig
ef71bdfd20 display warning if webhooks have populated relations 2023-01-19 14:54:22 +01:00
Marc-Roig
85e7476178 V5 TODO comment to standardize webhooks payload 2023-01-18 16:06:53 +01:00
Marc-Roig
cf814fc1da move config to admin 2023-01-17 09:27:33 +01:00
Marc-Roig
8ac9ddc627 remove unnecessary database query 2023-01-16 18:26:21 +01:00
Marc-Roig
27b8b5b353 introduce getDeepCount for relations performance 2023-01-16 18:20:42 +01:00
Marc-Roig
25e1435173 Revert "remove relations populate configuration"
This reverts commit cea950fd9657df6434d22ecd29c1bbfd8d9a0912.
2023-01-13 15:35:21 +01:00
Marc-Roig
cea950fd96 remove relations populate configuration 2023-01-12 14:31:04 +01:00
Marc-Roig
64bf4b8f1d return entities without loaded relations 2023-01-10 15:15:01 +01:00
Marc-Roig
19ff38b7db relations performance enabled by default 2023-01-05 17:14:39 +01:00
Marc-Roig
8806f5eeb1 add admin config variable to enable relations performance 2023-01-05 15:55:47 +01:00
nathan-pichon
773adcccc0
refactor(entity-manager): getDeepPopulate 2022-11-24 10:16:36 +01:00
Pierre Noël
4ee9757ec3 also count xToOne relations in CM findOne 2022-10-17 18:44:33 +02:00
Pierre Noël
0415f5d677 add getNumberOfDraftRelations route 2022-10-10 14:28:54 +02:00
Pierre Noël
5021f99392 add and use utils isXtoX 2022-10-03 18:54:13 +02:00
Pierre Noël
5c8bac1a40 change populate params for all CM actions responses 2022-09-07 11:43:01 +02:00
Pierre Noël
d29aed4530 fix deepPopulate 2022-09-06 12:17:37 +02:00
Pierre Noël
60a7fb082f count many relations on CM findOne 2022-09-06 12:17:37 +02:00
Alexandre Bodin
cf49ddbbfc Prettier and backend fix 2022-08-11 10:20:49 +02:00
Pierre Noël
b307069465 Populate folder for media for findOne in CM 2022-08-09 17:53:47 +02:00
Pierre Noël
0f7c73243f Merge branch 'master' into features/ML-folder 2022-06-01 18:00:51 +02:00
Pierre Noël
b7e82614f6 remove pagination on GET /folders 2022-05-20 10:25:58 +02:00
Pierre Noël
2982fa781e remove limit on deep populate on components 2022-05-16 14:47:58 +02:00
Pierre Noël
9d59305b0f Fix loading time when opening an entity with many related entities 2022-03-04 16:49:22 +01:00
Alexandre Bodin
95935bbd2c Pass entity down to the validatCreation for publish and handle undefined value 2021-11-29 19:22:49 +01:00
Alexandre Bodin
58e4deadb6 Update updatedBy on publish / unpublish actions in the CM 2021-11-18 16:13:28 +01:00
Convly
25e62db93a use 'sanitizers' instead of 'utils' 2021-11-10 17:08:54 +01:00
Convly
16ab717fb2 Merge branch 'releases/v4' of github.com:strapi/strapi into v4/new-sanitize-fixes 2021-11-08 15:53:58 +01:00
Convly
8d4f8ddd57 Simplify & abstract common sanitize logic 2021-11-08 15:52:42 +01:00
Pierre Noël
c6a5a047d6 Merge branch 'releases/v4' into v4/error-handling 2021-11-05 10:40:11 +01:00
Convly
7c560e3b94 Move the eventHub sanitize logic to the eventHub declaration 2021-11-05 10:36:10 +01:00
Jean-Sébastien Herbaux
7f285fb755
[V4] Enhanced sanitize & remove restricted relations from content API's payloads (#11411)
* Rework sanitizeEntity, first iteration

* remove console.log

* Remove useless comments

* Fix e2e tests

* Fix up user e2e test

* Fix remove-restricted-relations visitor

* Handle grapqhql resolver, prevent access to restricted relations

* Handle polymorphic relation in the related visitor

* Remove morph attribute if empty

* Use only the find action to check if the relation is allowed
2021-11-04 15:47:53 +01:00
Pierre Noël
b58274aecb refactor error handling 2021-11-04 11:41:29 +01:00
Pierre Noël
d35e381f6f fix localizations counted in CM 2021-09-27 11:08:49 +02:00