237 Commits

Author SHA1 Message Date
Rémi de Juvigny
27ee844d08 Remove log from tests 2023-04-27 09:54:56 +02:00
Rémi de Juvigny
8ae384894e Use ApplicationError for validation 2023-04-21 10:24:22 +02:00
Rémi de Juvigny
70e60071e4 Improve and test setCustomFieldInputSizes 2023-04-21 10:19:30 +02:00
Rémi de Juvigny
cb3588782c Use custom field input size in admin 2023-04-20 12:24:55 +02:00
Rémi de Juvigny
5942cce591 Update getDefaultFieldSize 2023-04-19 17:57:32 +02:00
Rémi de Juvigny
d48dd1c413 Register custom field field sizes 2023-04-19 16:53:28 +02:00
Rémi de Juvigny
30bacd6626 Add tests to field sizes service 2023-04-17 17:29:13 +02:00
Rémi de Juvigny
d06af0d8fc Rename to isResizable 2023-04-17 12:02:08 +02:00
Rémi de Juvigny
96ba7cc431 getFieldSize error handling 2023-04-17 10:30:12 +02:00
Rémi de Juvigny
8bb88415c7 Rename full size object 2023-04-17 10:27:19 +02:00
Rémi de Juvigny
6729cd1a1a Compare field size to max row 2023-04-14 15:26:40 +02:00
Rémi de Juvigny
f57ddb4cef Merge /content-types and /components into /init route 2023-04-13 19:35:15 +02:00
Rémi de Juvigny
ce467fdf4e Add all types to fieldSize service 2023-04-13 18:53:30 +02:00
Rémi de Juvigny
660349845d Add content-manager/init endpoint 2023-04-13 11:52:40 +02:00
Alexandre BODIN
feced1d72b
Move api tests to root of repo with same structure (#16242) 2023-04-05 10:32:20 +02:00
Marc-Roig
456bdcba33 Merge branch 'main' into feature/private-s3-bucket 2023-03-21 14:59:26 +01:00
Alexandre Bodin
18fbe664d7 Fix tests 2023-03-15 19:08:49 +01:00
Alexandre Bodin
eca2c57a71 Fix invalid action mapping using unknow action 2023-03-15 18:37: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
Marc-Roig
21b43ba679 fix: fix: Different field types with the same name break CM EditView
Co-Authored-By: Gustav Hansen <gustav.hansen@strapi.io>
Co-Authored-By: Marc <20578351+Marc-Roig@users.noreply.github.com>
2023-03-15 09:11:16 +00:00
Marc-Roig
4ef8732caf Merge branch 'main' into feature/private-s3-bucket 2023-03-08 10:56:03 +01:00
Marc
c942ca2564
Update entity-manager.js 2023-03-03 14:02:56 +01:00
Marc
8c1ec39e8d
Update entity-manager.js 2023-03-03 14:02:44 +01:00
Marc
fbad5cd13c
Merge branch 'main' into fix/publish-webhook-with-publishedAt 2023-03-03 10:25:01 +01:00
Jamie Howard
2f6e237559
Merge pull request #15896 from strapi/private-s3-bucket/fix/api-tests 2023-03-01 12:13:35 +00:00
Jamie Howard
5925ace19a fix(content-manager): typo when returning a component category 2023-03-01 12:08:52 +00:00
Jamie Howard
f2346222fa chore(content-manager): fix typos 2023-03-01 11:31:52 +00:00
Marc-Roig
8ebd933d51 Merge branch 'main' into feature/private-s3-bucket 2023-02-28 11:53:09 +01:00
Marc-Roig
37e980fc7e send entity with updates in it in publish webhook 2023-02-28 09:19:26 +01:00
Jamie Howard
7da22885ad chore(content-manager): PR feedback 2023-02-27 11:50:49 +00:00
Jamie Howard
de5d6b5a8c refactor(content-manager): entity manager support single types 2023-02-23 11:50:01 +00:00
Gustav Hansen
614b7e248c Run prettier 2023-02-20 11:46:18 +01:00
Marc-Roig
9a948e7f7e fix 2023-02-14 18:20:16 +01:00
Marc-Roig
37ef6e7cd6 fix mapping entity when relations are populated 2023-02-14 09:11:10 +01:00
Marc-Roig
bbafe2b01d fix conflicts 2023-02-13 17:39:51 +01:00
Jamie Howard
5b0ccf64da refactor(content-manager): add mapEntity to the entity manager 2023-02-13 11:06:57 +00:00
Gustav Hansen
e3f63edf99 Chore: Remove legacy cypress tests 2023-02-09 17:25:38 +01:00
Marc-Roig
bc593964d6 test for populated and not populated relations in webhooks 2023-01-31 15:38:39 +01:00
Marc-Roig
d340110b9f refactor wrapEmitEvent to emitEvent 2023-01-30 16:35:45 +01:00
Marc-Roig
04bc1df391 return entity on update mock to fix test 2023-01-27 15:06:40 +01:00
Marc-Roig
34935bdb17 fix unpublish publish 2023-01-27 10:39:33 +01:00
Marc-Roig
9e4f28b871 fix typo 2023-01-26 17:31:05 +01:00
Marc
a9ea6986a7
Merge branch 'main' into fix/webhook-with-count-relations 2023-01-26 17:27:25 +01:00
Marc-Roig
b8518f706e standarize method properties 2023-01-26 17:26:22 +01:00
Marc-Roig
10340e2e19 test for empty components 2023-01-26 17:26:04 +01:00
Marc-Roig
3e95ff78d3 remove getDeepCountPopulate 2023-01-26 17:25:56 +01:00
Marc-Roig
15a723cca7 remove deprecation messages 2023-01-23 10:49:31 +01:00
Jamie Howard
6150b67915 Merge remote-tracking branch 'origin/main' into feature/min-max-description 2023-01-20 13:59:48 +00:00
Marc-Roig
69b9ee42a2 move warning to bootstrap 2023-01-20 09:41:26 +01:00
Marc-Roig
30fa5bd2c3 fix comment 2023-01-19 15:14:48 +01:00