54 Commits

Author SHA1 Message Date
Pierre Noël
c6a5a047d6 Merge branch 'releases/v4' into v4/error-handling 2021-11-05 10:40:11 +01:00
Pierre Noël
db1cb3040c refactor error-handling PR 2021-11-05 10:13:43 +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
cb098ec280 clean yup validations 2021-11-04 11:42:45 +01:00
Pierre Noël
b4c9ad0440 refacto graphql errors 2021-11-04 11:42:43 +01:00
Pierre Noël
a58d15407a fix unit:test 2021-11-04 11:42:09 +01:00
Pierre Noël
1b18aa971c fix error handling on upload plugin 2021-11-04 11:41:32 +01:00
Pierre Noël
b58274aecb refactor error handling 2021-11-04 11:41:29 +01:00
Alexandre Bodin
b26baee106 Cleanup paths used in strapi and prefix for apis 2021-10-26 11:18:36 +02:00
Dieter Stinglhamber
7e89f091da remove count route from the upload plugin 2021-10-21 14:33:22 +02:00
Marvin Frachet
4b311e777c Add Delete an asset call to the ML (#11186) 2021-10-19 11:26:35 +02:00
Alexandre Bodin
5f5895e8b5 Make sure the results are sanitized 2021-10-07 18:05:06 +02:00
Alexandre Bodin
7676bf8890 Move ML find many to find page 2021-10-07 17:23:42 +02:00
Alexandre Bodin
c1aa57f436 Harmonize and make policies and middlwares more consistent 2021-10-05 10:43:24 +02:00
Alexandre Bodin
c697050358 Fix typo 2021-09-29 16:34:37 +02:00
Alexandre Bodin
010294813d Apply feedbacks 2021-09-29 12:25:06 +02:00
Alexandre Bodin
c7a94ed081 Migrate middlwares to programmatic for plugin that do not need to export them 2021-09-29 10:47:10 +02:00
Alexandre Bodin
43c7e47f2b Merge branch 'releases/v4' into v4/middlewares 2021-09-29 09:52:15 +02:00
Pierre Noël
947981200b use { strapi } as params in all lifecycle functions 2021-09-28 16:54:07 +02:00
Alexandre Bodin
cfc2a7f650 Move upload middleware too programmatic middleware 2021-09-28 15:17:13 +02:00
Convly
667c29bd3a Fix upload & gql-crud e2e tests 2021-09-28 11:11:03 +02:00
Convly
10be2a5e65 Merge branch 'releases/v4' into v4/graphql-schema-generation-refactor 2021-09-27 17:19:22 +02:00
Pierre Noël
6fe8c51df2 remove search admin route for upload plugin 2021-09-27 11:08:48 +02:00
Pierre Noël
0f123ceb39 fix RBAC 2021-09-27 11:08:48 +02:00
Pierre Noël
d02c7ab741 Use new filters format in the upload plugin 2021-09-27 11:08:47 +02:00
Alexandre Bodin
036ade211b Throw in case of other error types 2021-09-27 10:36:21 +02:00
Alexandre Bodin
bf5a4fd1ee Load email and upload providers without naming convention 2021-09-27 10:01:46 +02:00
Convly
033d3274d2 Merge branch 'releases/v4' into v4/graphql-schema-generation-refactor 2021-09-23 10:05:31 +02:00
Convly
a303b0e5c4 Don't run shadowCRUD related operations if it's disabled 2021-09-22 18:17:51 +02:00
Alexandre Bodin
c5f9d16105 Rename creator fields 2021-09-22 17:06:16 +02:00
Convly
8b139ec162 Merge branch 'releases/v4' into v4/graphql-schema-generation-refactor 2021-09-22 10:48:29 +02:00
Alexandre Bodin
5b0ac47435 Merge branch 'releases/v4' into v4/db-migrations 2021-09-21 15:17:02 +02:00
Pierre Noël
b3f22bac5d use of strapi.dirs 2021-09-17 14:10:48 +02:00
Convly
620cbc809a Merge branch 'v4/graphql-schema-generation-refactor' of github.com:strapi/strapi into v4/graphql-schema-generation-refactor 2021-09-15 15:50:55 +02:00
Convly
7e765de7cd Remove useless schema.graphql.js file for the upload plugin 2021-09-15 15:50:37 +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
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
Alexandre Bodin
a14b16af51 Move admin auth to global auth system 2021-09-08 16:16:16 +02:00
Alexandre Bodin
566805c8ae Update test on /api 2021-09-07 21:29:34 +02:00
Alexandre Bodin
0ff3269c3a Use the right api 2021-09-07 15:11:08 +02:00
Alexandre Bodin
f402731adf split upload routes 2021-09-07 15:11:07 +02:00
Alexandre Bodin
4349d6b822 Init new routing layer 2021-09-07 15:11:04 +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
Pierre Noël
bc56be3560 Merge branch 'pluginAPI/loadPlugin' of github.com:strapi/strapi into pluginAPI/loadPlugin 2021-08-20 16:32:14 +02:00
Pierre Noël
09945a46df fixes 2021-08-20 15:23:02 +02:00
Alexandre Bodin
575cbbdc7c Migrate plugin getters 2021-08-19 23:30:49 +02:00
Pierre Noël
98719b6c64 migrate plugin structures to V4 2021-08-19 16:49:33 +02:00
Pierre Noël
face75bcba Merge branch 'pluginAPI/loadPlugin' into v4/plugin-api/extensions 2021-08-13 15:43:25 +02:00