19 Commits

Author SHA1 Message Date
Alexandre Bodin
cf49ddbbfc Prettier and backend fix 2022-08-11 10:20:49 +02:00
Pierre Noël
14651530cc remove todos that are already done 2021-11-30 14:47:45 +01:00
Alexandre Bodin
f4507e1cb0 Init factories for controllers 2021-11-16 18:23:28 +01:00
Pierre Noël
c6a5a047d6 Merge branch 'releases/v4' into v4/error-handling 2021-11-05 10:40:11 +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
ebb124de4b change graphql error handling with originalError 2021-11-04 11:42:44 +01:00
Pierre Noël
b58274aecb refactor error handling 2021-11-04 11:41:29 +01:00
Convly
3da1acebf4 Fix createLocalization mutations 2021-09-27 10:56:43 +02:00
Jean-Sébastien Herbaux
8d9ea0f13e
[V4] GraphQL - Single types mutations implementation (#10923)
* Use new path for Strapi app attribute

* Add 'uid' to the list of existing Strapi scalars

* Fix single types queries definitions

* Remove ID from single types args

* Remove useless comments

* Fix typos

* Fix localizations populate in i18n core-api createLocalization handler

* Single type custom mutations implementation
2021-09-09 11:31:29 +02:00
Jean-Sébastien Herbaux
8276240a2f
Add the create{Type}Localization mutation to every localized content type, refactor the i18n core-api's create localization handler creation (#10909) 2021-09-08 16:38:46 +02:00
Alexandre Bodin
960578133f Cleanup parse multipart 2021-08-31 19:31:28 +02:00
Alexandre Bodin
8522ef7dfd Add Api load with modules container 2021-08-30 17:02:40 +02:00
Alexandre Bodin
4be69e8bde Init new API loading 2021-08-30 17:02:40 +02:00
Pierre Noël
9362311924 add extend fn to controller registry 2021-08-30 11:00:30 +02:00
Alexandre Bodin
575cbbdc7c Migrate plugin getters 2021-08-19 23:30:49 +02:00
Pierre Noël
c547e64571 fix e2e tests 2021-08-18 11:58:17 +02:00
Pierre Noël
2d7454553a add extension system for content-types 2021-08-13 15:35:19 +02:00
Pierre Noël
eabe72f92e WIP 2021-07-26 16:59:59 +02:00
Pierre Noël
323bf21f43 wip 2021-06-09 18:10:44 +02:00