72 Commits

Author SHA1 Message Date
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
Nathan Pichon
fa8a108af9
Merge branch 'main' into fix/issue-9308-File_upload_related_fields_returning_null 2023-02-02 16:16:48 +01:00
Marc-Roig
e0e2d28f02 Merge branch 'main' into feature/provider-size-limit 2023-02-01 15:56:39 +01:00
nathan-pichon
69ff2710fc
test(upload): remove file created for the test 2023-01-23 16:54:57 +01:00
nathan-pichon
fef44b507b
test(upload): fix find one file test 2023-01-20 10:05:19 +01:00
nathan-pichon
2f1b44db8a
fix(upload): add populate query to findOne method 2023-01-18 17:23:14 +01:00
Jamie Howard
892f9963e8 chore(upload): pr feedback 2022-12-13 14:33:05 +00:00
Jamie Howard
12eb6ceb69 Merge remote-tracking branch 'origin/main' into feature/media-library-ctv 2022-12-12 10:07:23 +00:00
Pierre Noël
78b8319070 remove unecessary checks in tests breaking with mysql 5 2022-11-28 10:45:30 +01:00
nathan-pichon
3c1de7565e
test(upload): add test on file inside components 2022-11-16 16:10:11 +01:00
Jamie Howard
3f105b724d chore(upload): rename api tests 2022-11-15 11:40:27 +00:00
Jamie Howard
5c50587d64 Merge remote-tracking branch 'origin/main' into feature/media-library-ctv 2022-11-15 11:20:33 +00:00
Jamie Howard
6add2542e9 Merge branch 'main' into fix/relations/rel-error-handling 2022-11-09 16:11:07 +00:00
Jamie Howard
c8c1678006 feat(upload): configure the view
test: e2e
chore: naming
2022-10-31 17:21:51 +00:00
Alexandre Bodin
57e1eb5ee8 Move e2e to api tests and unify test command 2022-10-27 19:49:37 +02:00
Jamie Howard
f6be2e2b66 fix(content-manager): detect non existant relation on entity update 2022-09-30 11:02:59 +01:00
Marc-Roig
18d925a2dd add tests 2022-09-19 16:31:29 +02:00
Pierre Noël
f681c064c4 Fix relation not correctly set when uploadinga new file to an entity 2022-09-05 16:18:35 +02:00
Alexandre Bodin
89d77ced5d Update upload plugin 2022-08-11 10:20:49 +02:00
Alexandre Bodin
cf49ddbbfc Prettier and backend fix 2022-08-11 10:20:49 +02:00
Alexandre Bodin
0ae14c06cb 1st fix pass 2022-08-11 10:20:48 +02:00
WalkingPizza
36525d1a26 Add E2E tests with fileInfo 2022-08-08 17:45:21 +02:00
WalkingPizza
483a260c0d Add E2E tests 2022-08-08 16:01:34 +02:00
Pierre Noël
1f7e485278 add e2e to bulk-delete only files and only folders 2022-07-27 18:02:47 +02:00
Gustav Hansen
4fcb38d53d Merge branch 'master' into features/ML-folder 2022-07-05 12:53:51 +02:00
Pierre Noël
0fbcd89ec8 add e2e test to check image dimensions are populated 2022-06-16 19:37:18 +01:00
Pierre Noël
e5a87523bd add unit test 2022-06-14 15:54:45 +01:00
Pierre Noël
ab2406b93d fix sql concat call 2022-06-13 09:19:18 +01:00
Pierre Noël
d6008baff7 update yarn.lock + some tests 2022-06-13 09:19:14 +01:00
Pierre Noël
1e66f567f8 change folder uid for pathId 2022-06-13 09:16:26 +01:00
Pierre Noël
27bd19bb0d remove pagination on GET /folders 2022-05-23 14:31:04 +02:00
Pierre Noël
f55ce496f2 fix upload contentt-api tests 2022-05-20 11:59:47 +02:00
Pierre Noël
b7e82614f6 remove pagination on GET /folders 2022-05-20 10:25:58 +02:00
Pierre Noël
eb2ec33426 default populate files 2022-05-19 17:17:06 +02:00
Pierre Noël
f236cb0da0 add test update 404 2022-05-19 14:09:54 +02:00
Pierre Noël
f28a8c3dc5 fix tests 2022-05-19 10:52:32 +02:00
Pierre Noël
6d5ab53f2f add findOne route for folders 2022-05-19 10:52:32 +02:00
Pierre Noël
ccb56b1bd7 apply feedback 2022-05-17 15:41:28 +02:00
Pierre Noël
285b146389 fix tests 2022-05-17 11:54:28 +02:00
Pierre Noël
c3265a74d3 add test move folder inside itself 2022-05-17 11:54:28 +02:00
Pierre Noël
103e47a9a4 fix tests 2022-05-17 11:54:27 +02:00
Pierre Noël
6f25eb6be1 add e2e tests 2022-05-17 11:54:27 +02:00
Pierre Noël
78f447e6af add bulk move route 2022-05-17 11:54:26 +02:00
Pierre Noël
de8fa96869 add update folder route 2022-05-17 11:54:26 +02:00
Pierre Noël
20177c8895 fix typo 2022-05-13 16:13:17 +02:00
Pierre Noël
8d5fe3b431 apply feedback 2022-05-13 16:10:18 +02:00
Pierre Noël
34372daf8b add bulk move route 2022-05-06 10:09:01 +02:00
Pierre Noël
c62081284d fix tests 2022-05-05 14:50:59 +02:00
Pierre Noël
c4ce0b56dc add update folder route 2022-05-05 14:50:56 +02:00
Pierre Noël
ef32318e7b fix folder test 2022-04-29 17:19:25 +02:00