403 Commits

Author SHA1 Message Date
Ben Irvin
cb0225e316
Update packages/core/utils/lib/convert-query-params.js
Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
2023-05-12 16:49:09 +02:00
Ben Irvin
00f43de9b7
Update packages/core/utils/lib/operators.js
Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
2023-05-12 16:48:26 +02:00
Ben Irvin
8b08534ec8
Update packages/core/utils/lib/operators.js
Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
2023-05-12 16:48:18 +02:00
Ben Irvin
53de017ad0 export isOperator and isOperatorOfType directly 2023-05-12 12:50:22 +02:00
Ben Irvin
d961309386 remove comment 2023-05-12 12:14:23 +02:00
Ben Irvin
b3998432d7 only allow attributes and operators on filters
Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
2023-05-12 12:13:56 +02:00
Ben Irvin
980edbbcce move operators to utils 2023-05-12 12:13:29 +02:00
Ben Irvin
7747d1d3d1 initial commit 2023-05-05 13:11:59 +02:00
Convly
a02b19866a v4.10.2 2023-05-03 15:04:25 +02:00
Alexandre BODIN
dceea7201b
Force manual build to run lint to avoid unnecessary rebuilds (#16532) 2023-04-28 15:20:20 +02:00
Alexandre Bodin
68604f9853 Merge branch 'main' of github.com:strapi/strapi into release/4.10.1 2023-04-26 15:50:41 +02:00
Alexandre Bodin
23b531cef5 v4.10.1 2023-04-26 15:45:41 +02:00
Alexandre Bodin
b36292e67b Merge branch 'releases/4.10.0' 2023-04-26 14:39:05 +02:00
Alexandre Bodin
9b5519778f v4.10.0 2023-04-26 14:32:28 +02:00
Alexandre BODIN
12d3068013
Migrate generators to ts (#16392) 2023-04-26 09:07:40 +02:00
Convly
95d581b31b Merge branch 'main' into feature/review-workflow 2023-04-19 15:02:34 +02:00
Convly
91e0be2708 v4.9.2 2023-04-19 14:54:40 +02:00
Marc-Roig
e845fc95a0 Merge branch 'main' into feature/review-workflow 2023-04-14 17:20:14 +02:00
Alexandre BODIN
28d82d3333
Migration of providers to ts (#16323) 2023-04-13 08:45:44 +02:00
Convly
c8f2f0543b v4.9.1 2023-04-12 16:24:32 +02:00
Jamie Howard
05cee5cbd7 Merge remote-tracking branch 'origin/main' into feature/review-workflow 2023-04-11 14:15:43 +01:00
Alexandre BODIN
de4a0e3e31
Use yarn run -T to run command installed at the root of the monorepo (#16278) 2023-04-05 14:33:37 +02:00
Convly
ffe3f4621c v4.9.0 2023-03-29 14:33:56 +02:00
Alexandre BODIN
aaeb988a0b
Expand nx usage and migrate logger to ts (#15957) 2023-03-22 11:21:33 +01:00
Alexandre BODIN
942e646d28
Perf optimizations (#16117)
Co-authored-by: Marc-Roig <marc12info@gmail.com>
2023-03-21 18:37:21 +01:00
Gustav Hansen
95a8cd84bd Merge branch 'main' into feature/review-workflow 2023-03-21 17:45:49 +01:00
DMehaffy
b07fc41d84
Add Not implemented error class (#15938) 2023-03-21 14:42:45 +01:00
Jamie Howard
64a0f9eb50 Merge remote-tracking branch 'origin/main' into feature/review-workflow 2023-03-20 11:42:58 +00:00
Convly
3351b78b5b Prettier fix 2023-03-20 10:16:31 +01:00
Convly
fbb22891a8 Allow to sort by ID in the sort sanitize operations 2023-03-20 10:11:33 +01:00
Convly
cc73bed97b v4.8.2 2023-03-16 17:49:52 +01:00
Gustav Hansen
0a008881ef Merge branch 'main' into feature/review-workflow 2023-03-16 15:49:45 +01:00
Convly
ae5481026b Fix broken populate traversal with no fragment 2023-03-16 14:30:07 +01:00
Alexandre Bodin
2ec4bf2bd1 Merge branch 'releases/4.8.1' 2023-03-15 22:42:50 +01:00
Alexandre Bodin
b3cb13cb14 v4.8.1 2023-03-15 22:25:40 +01:00
Convly
1b6a6926e6 Merge branch 'releases/4.8.0' into main 2023-03-15 16:35:26 +01:00
Convly
e239e408f9 v4.8.0 2023-03-15 16:29:42 +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
de282d558e
Merge branch 'main' into add-env-oneof 2023-03-10 14:20:34 +01:00
Andrew Luca
73f6631a92 Add oneOf env helper for union values 2023-03-02 11:57:59 +02:00
Alexandre Bodin
0307fb4bf7 v4.7.1 2023-03-02 10:24:10 +01:00
Marc
8ac67d6b8b
Update packages/core/utils/lib/content-types.js
Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
2023-03-02 09:17:44 +01:00
Marc-Roig
571ed83628 use optional chaining on isPrivateAttribute 2023-02-28 16:38:33 +01:00
Convly
948dbb3121 v4.7.0 2023-02-27 20:33:14 +01:00
Convly
bae505f44c v4.6.2 2023-02-22 19:06:25 +01:00
nathan-pichon
39fdfd3d40
feat(review-workflows): add options in content type builder 2023-02-20 18:58:09 +01:00
nathan-pichon
5029344805
feat(async-utils): use curryN instead of curry 2023-02-14 16:55:57 +01:00
Nathan Pichon
8fae1a80ec
Merge branch 'main' into feature/async-reduce-utils 2023-02-13 16:54:25 +01:00
nathan-pichon
83c297e298
test(async-utils): update test titles 2023-02-13 14:11:56 +01:00
Nathan Pichon
4fdff2f350
chore(async-utils): update typo
Co-authored-by: Pierre Noël <petersg83@users.noreply.github.com>
2023-02-13 14:02:56 +01:00