160 Commits

Author SHA1 Message Date
Ben Irvin
205e5f9d55 Merge branch 'main' into features/data-transfer 2023-03-27 10:45:13 +02:00
Alexandre BODIN
aaeb988a0b
Expand nx usage and migrate logger to ts (#15957) 2023-03-22 11:21:33 +01:00
Convly
366eb8a0d0 Merge branch 'main' into features/data-transfer 2023-03-16 16:47:11 +01:00
Alexandre Bodin
18fbe664d7 Fix tests 2023-03-15 19:08:49 +01:00
Ben Irvin
801e3db415 add traverse query
fix single type

fix query

sanitize pagination count params

add comments

Cleanup the params/filters sanitize helpers

sanitize association resolver

Sanitize sort

fix graphql single type

fix graphql types

fix addFindQuery

Sanitize fields

Update sanitize sort to handle all the different formats

Update fields sanitize to handle regular strings & wildcard

Fix non scalar recursion

Add a traverse factory

Add visitor to remove dz & morph relations

Replace the old traverse utils (sort, filters) by one created using the traverse factory

add sanitize populate

await args

fix async and duplicate sanitization

sanitize u&p params

Add traverse fields

Fix traverse & sanitize fields

add traverse fields to nested populate

sanitize admin api filter queries

Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>

sanitize sort params in admin API

todo

make token fields unsearchable with _q

sanitize delete mutation

Update packages/core/admin/server/services/permission/permissions-manager/sanitize.js

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>

fix errors on queries without ctx

rename findParams to sanitizedParams

Sanitize queries everywhere in the content manager admin controllers

sanitize single type update and delete

Ignore non attribute keys in the sanitize sort

Fix the sanitize query sort for nested string sort

Fix permission check for the admin

typo

sanitize upload

sanitize admin media library

sanitize admin users

Add missing await

Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>

set U&P users fields to searchable:false

add token support to createContentAPIRequest

add searchable:false to getstarted U&P schema

remove comment

sanitize component resolver

remove await

add searchable false to the file's folder path

Fix admin query when the permission query is set to null

add basic tests for filtering private params

add tests for fields

add pagination tests

Fix admin user fields not being sanitized

Fix convert query params for the morph fragment on undefined value

Traverse dynamic zone on nested populate

Handle nested sort, filters & fields in populate queries + handle populate fragment for morphTo relations

Sanitize 'on' subpopulate

Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>

don't throw error on invalid attributes

check models for snake case column name instead of assuming they are operators

Add first batch of api tests for params sanitize

Fix sort traversal: handle object arrays

Put back removePassword for fields,sort,filters

Add schemas and fixtures for sanitize api tests

Add tests for relations (sanitize api tests)

Move constant to domain scope

Rename sanitize params to sanitize query

Fix typo

Cleanup fixtures file

Fix variable name conflict

Update packages/core/admin/server/services/permission/permissions-manager/sanitize.js

Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>

Update comment for array filters

Rename sanitize test

Test implicit & explicit array operator for filter

Remove unused code
2023-03-15 14:59:19 +01:00
Christian Capeans
674b13eb23 Merge branch 'features/data-transfer' of https://github.com/strapi/strapi into data-transfer/pull 2023-03-08 11:31:15 +01:00
Alexandre Bodin
6c36872dd2 Fix test 2023-03-06 22:17:56 +01:00
Alexandre Bodin
e0e2084422 Move RBAC into CE 2023-03-06 21:46:45 +01:00
Alexandre Bodin
e789cd81f3 Avoid local strapi conflicting with global 2023-03-03 17:17:02 +01:00
Christian Capeans
3093fa32f1 Refactor the push handler for the data transfer
Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
2023-03-03 17:16:24 +01:00
Alexandre Bodin
dee0e195c1 Fix invalid require using internal paths 2023-03-02 22:16:29 +01:00
Convly
478127d7c7 Merge branch 'main' of github.com:strapi/strapi into features/data-transfer 2023-02-20 16:58:46 +01:00
Rémi de Juvigny
cbfc5876c7 Delete install and uninstall plugin endpoints 2023-02-14 16:04:16 +01:00
Convly
9e4436b15a Add a verify util to the transfer runner handler 2023-02-08 10:46:16 +01:00
Jean-Sébastien Herbaux
ffb0b9497a
Update packages/core/admin/server/controllers/transfer/token.js
Co-authored-by: Ben Irvin <ben@innerdvations.com>
2023-02-06 10:12:36 +01:00
Jean-Sébastien Herbaux
9085b98717
Update packages/core/admin/server/controllers/transfer/token.js
Co-authored-by: Ben Irvin <ben@innerdvations.com>
2023-02-06 10:11:31 +01:00
Jean-Sébastien Herbaux
1d791e47ea
Update packages/core/admin/server/controllers/api-token.js
Co-authored-by: Ben Irvin <ben@innerdvations.com>
2023-02-03 16:21:55 +01:00
Jean-Sébastien Herbaux
b7ae385c7e
Update packages/core/admin/server/controllers/transfer/token.js
Co-authored-by: Ben Irvin <ben@innerdvations.com>
2023-02-03 16:19:02 +01:00
Convly
60c4103b8f Rename test files 2023-02-03 14:35:12 +01:00
Convly
5c327ad6ef Adds tests for the transfer token controllers 2023-02-03 11:15:12 +01:00
Convly
08d0d484cb Fix api token service, to use lodash fp insead of lodash 2023-02-03 11:14:50 +01:00
Christian Capeans
fe1bb44299 Create transfer tokens
Co-authored-by: Bassel Kanso <basselkanso82@gmail.com>
Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
Co-authored-by: Simone <simone.taeggi@strapi.io>
Co-authored-by: Ben Irvin <innerdvations@users.noreply.github.com>
2023-02-02 13:15:41 +01:00
Christian
c557588829
Merge branch 'main' into tracking-system-ct-components-dz 2023-02-01 12:50:25 +01:00
Christian Capeans
6f2e86e562 Add small changes to improve context 2023-01-30 17:59:37 +01:00
Christian Capeans
c7f048918e Add TODOs to rename properties in v5 2023-01-30 15:55:58 +01:00
fdel-car
f3550cea82 Add audit logs support & update the features API 2023-01-25 19:52:07 +01:00
Mark Kaylor
963f651b81 Merge branch 'main' of github.com:strapi/strapi into feature/audit-logs 2023-01-24 17:25:50 +01:00
Christian Capeans
e565648688 Merge branch 'main' into tracking-system-ct-components-dz 2023-01-16 12:10:07 +01:00
Nathan Pichon
f51778cf4f
Merge pull request #15051 from strapi/authLogo/backend
feat: added authLogo setting
2023-01-11 09:55:55 +01:00
Christian Capeans
14cf30e400 Rename number of content types 2023-01-09 18:15:38 +01:00
Christian Capeans
d006cddbee Refactor code to make it more readable 2022-12-28 18:27:07 +01:00
Rémi de Juvigny
70e88d2891 Add logout event to audit logs 2022-12-20 11:58:09 +01:00
Rémi de Juvigny
d8ae7ad98b Merge remote-tracking branch 'origin/main' into feature/audit-logs 2022-12-19 18:40:43 +01:00
Rémi de Juvigny
6c061e152b Sanitize emitted auth events 2022-12-16 12:18:07 +01:00
Vincent
51cb73f9ee feat: added authLogo setting 2022-12-01 11:39:23 +01:00
Christian Capeans
c0c8570c36 Track content types, dzs, and components per user 2022-11-16 17:08:51 +01:00
ivanThePleasant
de25284aac Merge branch 'main' into chore/user-level-data 2022-10-04 10:08:53 +03:00
Convly
706b8a5d56 Revert to STRAPI_HOSTING 2022-09-30 11:40:05 +02:00
Convly
340b17d6da Update wording 2022-09-29 18:12:05 +02:00
Convly
a1c7185252 Add hostedOnStrapiCloud property to the telemetry events 2022-09-29 17:35:18 +02:00
Jamie Howard
a742a5d6bc
Merge pull request #14458 from strapi/fix/13360/camel-case-email
Treat email as lowercase when creating a user
2022-09-29 13:48:55 +01:00
ivanThePleasant
01bb760793 Clean up unnecessary code 2022-09-29 14:15:07 +03:00
ivanThePleasant
5a4362faf7 Refactor changes to use request context 2022-09-29 11:24:11 +03:00
ivanThePleasant
c0588231a6 Merge branch 'main' into chore/user-level-data 2022-09-29 11:23:17 +03:00
Jamie Howard
bfbab082cf fix(admin): lowercase email when creating user 2022-09-26 15:52:08 +01:00
ivanThePleasant
d568592d5c Refactor 'didUpdateRolePermissions' calls 2022-09-05 12:19:31 +03:00
ivanThePleasant
a2ee4bb855 Change location of user creation analytics call, remove development console log, adjust tests accordingly 2022-09-02 16:21:48 +03:00
ivanThePleasant
b5c98ae0cd Refactor event calls to follow old format, encapsulate hashing in the sender, refactor the format of event payload to better correspond to the new api 2022-09-02 14:43:51 +03:00
Bassel Kanso
30e3a2ac70 Merge branch 'features/api-token-v2' into api-token-v2/get-action-bound-routes 2022-09-02 11:17:39 +03:00
Bassel Kanso
c842085fe3 move routes map service to content API coontainer 2022-09-02 11:06:55 +03:00