223 Commits

Author SHA1 Message Date
Convly
c38b1a0de9 integrate with new entity service params 2021-09-22 15:15:03 +02:00
Convly
f23d375e2d Merge branch 'releases/v4' into v4/graphql-schema-generation-refactor 2021-09-22 15:01:56 +02:00
Convly
6415624168 Use format services for return types in queries & mutationsé 2021-09-22 14:39:36 +02:00
Convly
8b139ec162 Merge branch 'releases/v4' into v4/graphql-schema-generation-refactor 2021-09-22 10:48:29 +02:00
Jean-Sébastien Herbaux
22a9cdb9e0
[V4] Fix GraphQL e2e tests (#11034) 2021-09-21 19:38:15 +02:00
Alexandre Bodin
9f337272f1 Refacto entity service API to be more consistent with the DB layer 2021-09-21 17:22:17 +02:00
Alexandre Bodin
5b0ac47435 Merge branch 'releases/v4' into v4/db-migrations 2021-09-21 15:17:02 +02:00
Rémi de Juvigny
b6e1e7a9a1 Add display name to sentry plugin 2021-09-15 16:44:19 +02:00
Rémi de Juvigny
8064e468a0 Format Sentry plugin name in kebab-case 2021-09-15 16:44:19 +02:00
Jean-Sébastien Herbaux
5a7a5dc987
[V4] GraphQL - Migrate Users & Permissions GraphQL config to V4 (#10979)
* Migrate UsersPermissions's GQL configuration to V4

* Remove old graphql configuration
2021-09-15 15:44:42 +02:00
Alexandre Bodin
0f3f984ea7 Init migration v4
- Hooks registry
- D&P CT migrations
- i18N CT migrations
- Umzug with js / sql migrations
- Eslint updates
2021-09-13 12:03:12 +02:00
Convly
9c48580991 Handle authorization for GraphQL queries & mutations 2021-09-13 10:48:26 +02:00
Convly
ee5e7a026f Merge branch 'releases/v4' into v4/graphql-schema-generation-refactor 2021-09-10 15:55:35 +02:00
Convly
64e5a70c64 Migrate upload plugin's graphql config to new extension API 2021-09-10 15:54:19 +02:00
Convly
58294cce6c Fix cases where the type isn't registered in the type registry (i18n) 2021-09-10 15:52:19 +02:00
Jean-Sébastien Herbaux
8e6de48dc6
Declare a new load method in the entity service (#10930) 2021-09-10 10:24:33 +02:00
Jean-Sébastien Herbaux
37311b2757
[V4] GQL - Handle empty dynamic zone (#10926)
* Add an Error object type

* Fix typo in collection-type queries definition

* Add dynamic zone resolver

* Handle empty dynamic zone (no component attached)
2021-09-09 16:45:38 +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
Convly
b330e315d4 Merge branch 'releases/v4' into v4/graphql-schema-generation-refactor 2021-09-08 16:50:42 +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
a14b16af51 Move admin auth to global auth system 2021-09-08 16:16:16 +02:00
Alexandre Bodin
88752d361f Fix tests 2021-09-07 21:54:27 +02:00
Alexandre Bodin
37bacdb691 Start fixing tests 2021-09-07 21:03:30 +02:00
Alexandre Bodin
c6c4a62d2d Cleanup layout not needed 2021-09-07 16:03:54 +02:00
Alexandre Bodin
caee87bc10 Move U&P permissions to new auth system 2021-09-07 15:11:12 +02:00
Alexandre Bodin
b0609c0d96 Make new format compatible with old permissions format in u&p 2021-09-07 15:11:11 +02:00
Alexandre Bodin
33adde77f6 Cleanup create/update role 2021-09-07 15:11:11 +02:00
Alexandre Bodin
733b5d8690 Cleanup u-p plugin 2021-09-07 15:11:10 +02:00
Alexandre Bodin
561235e7cf Refactor u-p permission syntax 2021-09-07 15:11:10 +02:00
Alexandre Bodin
7aa012da32 Init auth 2021-09-07 15:11:10 +02:00
Alexandre Bodin
3b41a627a4 split server code and init content api auth policy 2021-09-07 15:11:09 +02:00
Alexandre Bodin
0ff3269c3a Use the right api 2021-09-07 15:11:08 +02:00
Alexandre Bodin
9b268b9956 Split users-permissions routes 2021-09-07 15:11:08 +02:00
Alexandre Bodin
9aa9837a4c split i18n routes 2021-09-07 15:11:07 +02:00
Alexandre Bodin
fe5776258d Fix get routes u&p 2021-09-07 15:11:06 +02:00
Alexandre Bodin
13110994f9 Use router middleware to add i18n middlewares 2021-09-07 15:11:06 +02:00
Alexandre Bodin
d4eef8ea75 Add some lazy loading 2021-09-07 15:11:05 +02:00
Alexandre Bodin
4349d6b822 Init new routing layer 2021-09-07 15:11:04 +02:00
Jean-Sébastien Herbaux
2b715a6ee9
V4/graphql configuration (#10896)
* Use a scalar to register the i18n locale arg

* Remove useless files & comments

* Use custom config for apollo server & the pagination (better handling of pagination)

* Fix missing strapi variable being transmitted to wrapResolvers/parseMiddlewares

* PR review comments
2021-09-07 11:23:49 +02:00
Convly
e2be869d3b Merge branch 'releases/v4' into v4/graphql-schema-generation-refactor 2021-09-07 11:22:43 +02:00
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
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
89b02e871e Org package to be consistent, complete package.json and add missing package files 2021-08-28 10:50:46 +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