1917 Commits

Author SHA1 Message Date
Convly
e76e7462b7 Merge branch 'releases/v4' into v4/graphql-schema-generation-refactor 2021-09-01 14:10:10 +02:00
Jean-Sébastien Herbaux
357fd163b0
V4/graphql customization (#10850)
* Add basic implementation for the graphql extension service

* Add createPolicyContext in @strapi/utils

* policiesMiddleware implementation for graphql

* wrapResolvers first implementation (authentication, middlewares, policies)

* move the content API schema build from /generators to /content-api. Extract types' register functions into a dedicated folder

* fix schema generation on bootstrap

* update the graphql service file to match new services arch

* fix single type queries

* simplify entity's resolver

* use apollo graphql conventions for resolver's args naming

* use the graphql extension system in i18n to add a locale arg to localized queries & mutations
2021-09-01 12:06:51 +02:00
soupette
54429517a9 Add tests
Signed-off-by: soupette <cyril@strapi.io>
2021-09-01 07:55:48 +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
soupette
3ef754a64b Upgrade parts
Signed-off-by: soupette <cyril@strapi.io>
2021-08-30 15:04:36 +02:00
soupette
a6e64e3c60 Add tests
Signed-off-by: soupette <cyril@strapi.io>
2021-08-30 11:32:36 +02:00
Pierre Noël
9362311924 add extend fn to controller registry 2021-08-30 11:00:30 +02:00
Alexandre Bodin
89b02e871e Org package to be consistent, complete package.json and add missing package files 2021-08-28 10:50:46 +02:00
soupette
f056bcfb72 Merge branch 'v4/ds-migration' of github.com:strapi/strapi into migration/providers-react-query 2021-08-27 12:30:08 +02:00
soupette
b7c70ac56c Fix PR feedback
Signed-off-by: soupette <cyril@strapi.io>
2021-08-27 12:25:19 +02:00
soupette
a560bce2fa Merge branch 'v4/ds-migration' of github.com:strapi/strapi into migration/providers-form 2021-08-27 09:45:10 +02:00
soupette
05b2db9ccb Fix tests
Signed-off-by: soupette <cyril@strapi.io>
2021-08-27 09:44:37 +02:00
soupette
79ff6adb7f Fix tests with react-query
Signed-off-by: soupette <cyril@strapi.io>
2021-08-27 09:29:37 +02:00
soupette
2e50afab2a Put with react-query
Signed-off-by: soupette <cyril@strapi.io>
2021-08-26 17:01:33 +02:00
ronronscelestes
36dd8dc7af temp 2021-08-26 16:45:49 +02:00
ronronscelestes
c0b039c3b9 replaced with axios 2021-08-26 16:22:29 +02:00
soupette
ae87bafccd Fix tests
Signed-off-by: soupette <cyril@strapi.io>
2021-08-26 15:40:17 +02:00
soupette
38b012f227 Put providers
Signed-off-by: soupette <cyril@strapi.io>
2021-08-26 15:25:10 +02:00
soupette
3e3080d5f4 Init onSubmit providers 2021-08-26 15:12:19 +02:00
soupette
c6c8bc4797 Init form with formik
Signed-off-by: soupette <cyril@strapi.io>
2021-08-26 15:04:47 +02:00
soupette
490a117826 Display form
Signed-off-by: soupette <cyril@strapi.io>
2021-08-26 12:59:56 +02:00
soupette
b1e2b4af78 Refacto providers form
Signed-off-by: soupette <cyril@strapi.io>
2021-08-26 12:08:07 +02:00
soupette
70738b0948 Init FormModal for providers
Signed-off-by: soupette <cyril@strapi.io>
2021-08-26 11:25:03 +02:00
Convly
88e63a5265 Fix mutation names 2021-08-25 17:50:27 +02:00
Convly
a50f93ff1c Merge branch 'releases/v4' into v4/graphql-schema-generation-refactor 2021-08-25 15:09:15 +02:00
Alexandre Bodin
7f30925161 Merge branch 'v4/backend' into releases/v4 2021-08-25 14:45:59 +02:00
Alexandre Bodin
1ee2d2c483 Merge branch 'master' into releases/v4 2021-08-25 14:44:32 +02:00
Convly
466161ca70 Merge branch 'v4/backend' into v4/graphql-schema-generation-refactor 2021-08-24 17:58:14 +02:00
Convly
b221633be5 Refactor graphql services architecture. Prefer using the strapi service API when possible 2021-08-24 17:56:44 +02:00
soupette
f22d20e61b Fix conflicts
Signed-off-by: soupette <cyril@strapi.io>
2021-08-24 16:13:02 +02:00
soupette
b5bfac5ab2 Fix tests
Signed-off-by: soupette <cyril@strapi.io>
2021-08-24 15:12:49 +02:00
soupette
3468cbfa35 Fix tests
Signed-off-by: soupette <cyril@strapi.io>
2021-08-24 15:12:48 +02:00
soupette
21e18660eb Fix CM hook api and temporarily display the cm in the admin panel
Signed-off-by: soupette <cyril@strapi.io>
2021-08-24 15:12:48 +02:00
soupette
8cc31618b3 Merge branch 'releases/v4' of github.com:strapi/strapi into improve-bundle 2021-08-24 15:08:34 +02:00
Alexandre Bodin
f4a4e2ce26 Move routes to js when possible and refactor policies to be objects 2021-08-24 13:59:43 +02:00
Convly
495a593cc4 Cleanup + move builders & generators to dedicated services 2021-08-24 12:10:47 +02:00
Convly
9c34f0b753 Register the destroy method for the graphql plugin 2021-08-24 11:01:54 +02:00
Alexandre Bodin
0b3c7392c6 Keep on migrating admin to new structure 2021-08-23 22:41:22 +02:00
Alexandre Bodin
47c3900c07 Update createContentType to expose a simpler object 2021-08-23 22:25:31 +02:00
Convly
4620c330b8 Use strapi.contentTypes[uid] instead of strapi.plugin().contentType() to keep the same data structure 2021-08-23 20:06:34 +02:00
Convly
d293ca52b1 Added warning about data structure discrepancy depending on which method we use to fetch the content types 2021-08-23 19:51:54 +02:00
Convly
21ac45bdfd Cleanup 2021-08-23 19:49:28 +02:00
Convly
2ea04f1cd4 First working version of graphql rework w/ the new plugin API 2021-08-23 19:47:27 +02:00
Pierre Noël
b592b855a3 fix bad reloading when UP JWT was written in .env 2021-08-23 19:26:13 +02:00
Convly
ffe82cad3e Merge the plugin API into reworked graphql 2021-08-23 19:04:19 +02:00
Convly
40c93fe6c6 Merge branch 'v4/backend' into v4/graphql-schema-generation-refactor 2021-08-23 16:11:57 +02:00
soupette
e5065a5139 Add tests
Signed-off-by: soupette <cyril@strapi.io>
2021-08-23 13:13:24 +02:00
soupette
8230d1aaec Fix conflicts and remove not migrated components
Signed-off-by: soupette <cyril@strapi.io>
2021-08-23 11:14:08 +02:00