70 Commits

Author SHA1 Message Date
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
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
ivanThePleasant
2af669c961 Merge branch 'main' into chore/user-level-data 2022-11-23 09:35:16 +02:00
Pierre Noël
3245c4b466 add validation tests on findAvailable and findExisting relations 2022-10-17 15:41:35 +02:00
Pierre Noël
d4b8c00a5c use data format for xToOne relations in findExisting 2022-10-13 14:42:53 +02:00
Pierre Noël
be5e6ebc05 Merge branch 'feature/relations-main-view' into relations-main-view/refactor-find-existing-find-available 2022-10-11 12:38:04 +02:00
Pierre Noël
241393eaa3 implement new findAvailable route 2022-10-10 14:42:23 +02:00
Pierre Noël
1200e43618 update tests using findExisting relations 2022-10-10 14:42:22 +02:00
Pierre Noël
3aa26deb1f implement new findExisting route 2022-10-10 14:42:19 +02:00
Pierre Noël
8f73a1d761 use data format + init e2e tests 2022-10-10 14:28:56 +02:00
Pierre Noël
212d80f4fa Update singletype controller
Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
2022-10-10 14:28:55 +02:00
Pierre Noël
0415f5d677 add getNumberOfDraftRelations route 2022-10-10 14:28:54 +02:00
Pierre Noël
98e8bc61e0 use transformLoadParamsToQuery instead of transformParamsToQuery to fix ordering being ignored in loadPages() 2022-10-07 18:49:15 +02:00
Pierre Noël
5021f99392 add and use utils isXtoX 2022-10-03 18:54:13 +02:00
Pierre Noël
9409b3a5e6 Remove idsToOmit + comment 2022-10-03 18:11:33 +02:00
Pierre Noël
a17b3a0ba2 add and use loadPages 2022-10-03 17:52:12 +02:00
Pierre Noël
0f7852d8d8 use query().load() to get existing relations 2022-10-03 11:12:22 +02:00
Pierre Noël
da0f17be75 add idsToInclude 2022-09-30 15:38:49 +02: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
Julie Plantey
c407c20d05 fix xtoOne + conditions to enbale fetch + count label 2022-09-22 14:01:56 +02:00
Pierre Noël
ea35195ea1 fix no relations return for find available when no relations are set 2022-09-08 11:10:57 +02:00
Pierre Noël
ba401b93f4
Merge pull request #14244 from strapi/relations-main-view/get-entity-with-count
Relations main view/get entity with count
2022-09-06 17:07:16 +02:00
Pierre Noël
e3996ea2d6 check field existance before permission 2022-09-06 15:10:08 +02:00
Pierre Noël
3ff32e91eb use entityService + redo permissions 2022-09-06 12:17:54 +02:00
Pierre Noël
1958e08559 replace previewMany by getExistingRelations 2022-09-06 12:17:54 +02:00
Pierre Noël
60a7fb082f count many relations on CM findOne 2022-09-06 12:17:37 +02: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
Pierre Noël
be7c669bed apply feeback 2022-08-30 15:12:07 +02:00
Pierre Noël
bf807f1ddf use containsi for _q param 2022-08-30 15:12:07 +02:00
Pierre Noël
c0239cd68c use where. 2022-08-30 15:12:06 +02:00
Pierre Noël
9d23799b5d use transformParamsToQuery 2022-08-30 15:12:06 +02:00
Pierre Noël
796350533e use entity manager 2022-08-30 15:12:06 +02:00
Pierre Noël
b4f6c87fd4 avoid using db metadata 2022-08-30 15:12:05 +02:00
Pierre Noël
c84ad063bb fix permission + simplify test 2022-08-30 15:12:05 +02:00
Pierre Noël
35a13433f0 fix some linter errors 2022-08-30 15:12:04 +02:00
Pierre Noël
73f85a7c08 renaming + add permission check on entity 2022-08-30 15:12:04 +02:00
Pierre Noël
aa496ff4a7 handle i18n dimension 2022-08-30 15:12:04 +02:00
Pierre Noël
8dfa1c70d1 add e2e tests 2022-08-30 15:12:03 +02:00
Pierre Noël
7f521c9348 refactor relation findNew route 2022-08-30 15:12:03 +02:00
Gustav Hansen
c010656521 Merge branch 'main' into feature/relations-main-view 2022-08-30 09:40:49 +02:00
ivanThePleasant
a1ea7439ea Merge branch 'main' into chore/user-level-data 2022-08-25 15:21:39 +03:00
Jose Gomez
39b8ece5c9 Check if the current time matches the selected interval 2022-08-24 12:42:08 +02:00
Jose Gomez
f30fd3e812 Fix lint errors 2022-08-24 12:42:08 +02:00
Jose Gomez
612112e499 Add step input for datetime/time fields 2022-08-24 12:42:07 +02:00
ivanThePleasant
459de9774d Refactor hash function, add uuid to the admin hash, remove debug console logs 2022-08-16 11:58:15 +03:00
ivanThePleasant
3ead6f2487 Move hash function to user services instead of it being a separate service 2022-08-12 10:19:40 +03:00