150 Commits

Author SHA1 Message Date
Alexandre BODIN
8363a89ca2
Fix core router not working within plugin context (#14456) 2023-03-23 18:59:25 +01:00
Josh
e19c0f92cb fix: do not populate a single component if it doesn't exist in initialdata 2023-03-21 10:08:54 +00: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
Josh
687df3b785 chore: rename relation to capital 2023-03-03 14:22:54 +00:00
Josh
fee48616bc Update examples/getstarted/src/api/relation-locale/content-types/relation-locale/schema.json
Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
2023-03-03 14:17:23 +00:00
Josh
f4f2b5ab2e fix: dont merge the state if the ID changes
fix: dont merge the state if the ID changes

fix: pass id to querykey & add cleanup method to useRelation hook

fix: pass defaultParams as part of the cache key

Revert "fix: reset cache for `relation` keys in i18n plugin"

This reverts commit 34b2fd9fabfcb93fb9f416616802e10b79133112.

fix: pass defaultParams as part of the cache key

chore: spread cachekey in search query

fix: move logic to useRelations hook that handles removing from the store.

fix: broken test

refactor: rename method to onUnmount
2023-03-03 14:17:23 +00:00
Josh
6b17f8ad12 chore: convert all files to single imports of the DS & icons
chore: remove eslint rule

chore: update snapshots

chore: update snapshots

chore: add eslint rule to stop direct imports apart from v2
2023-02-15 17:23:59 +00:00
Pierre Noël
2a18a3fa76 Merge branch 'main' into feature/audit-logs 2023-01-18 11:11:54 +01:00
Josh
8d6a247b14 fix: tidy-up name solving function and handle refetching and removing 2023-01-10 13:58:55 +00:00
Gustav Hansen
7f37735a5a Merge branch 'main' into feature/relations-reordering 2022-12-21 16:40:34 +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
fb73cb6df5 Process audit log events
Co-authored-by: markkaylor <mark.kaylor@strapi.io>
Co-authored-by: Fernando Chávez <fc9chavez@gmail.com>
2022-12-14 17:42:24 +01:00
Barış Can Daylık
226a462b7a Add Turkish translation 2022-12-13 00:44:27 +03:00
Josh
c51cde28a8 Merge branch 'main' into feature/relations-reordering 2022-12-09 17:10:00 +00:00
Julie Plantey
bdf778d2db (chore): remove unnecessary media field to category CT 2022-12-07 17:43:24 +01:00
Julie Plantey
2d64474728 labelAction for MediaLibrabryInput component & CarousselAssets tests 2022-12-07 17:37:46 +01:00
Josh
f0b851a7b9 feat(wip): add dnd to dynamic zones 2022-12-05 10:00:16 +00:00
Mark Kaylor
57959047e2 Remove required true from kitchen_sink 2022-10-12 14:12:08 +02:00
Mark Kaylor
a0fa85166f Upcase custom field test types 2022-10-12 14:07:32 +02:00
Mark Kaylor
e3e72a1b8a Add default value to options 2022-10-10 16:55:10 +02:00
Mark Kaylor
6d8140ae75 Fix number and add defaults 2022-10-07 16:17:50 +02:00
Alexandre Bodin
5681c1e38f Merge branch 'main' into features/custom-fields 2022-09-21 14:27:56 +02:00
Alexandre Bodin
ac1294410e Expose with the strpai global 2022-09-16 09:57:12 +02:00
Alexandre Bodin
621259f5b0 Proof of Concept for request context 2022-09-16 09:57:12 +02:00
Alexandre Bodin
de2ed2bfa4 Wip 2022-09-16 09:57:12 +02:00
Rémi de Juvigny
778f30cb6c Remove mycustomfields plugin 2022-09-07 18:34:29 +02:00
Mark Kaylor
2bf73e4fdc Merge branch 'features/custom-fields' of github.com:strapi/strapi into custom-fields/color-picker 2022-09-01 18:01:46 +02:00
Mark Kaylor
76e01be4cd Add custom fields plugin and color-picker custom field 2022-08-25 12:01:13 +02:00
Mark Kaylor
a5d56169de Remove all traces of map custom field 2022-08-25 09:16:07 +02:00
Mark Kaylor
c5985450de Remove unused component 2022-08-24 10:07:06 +02:00
Mark Kaylor
9c56f54b97 Remove check for null value 2022-08-24 08:24:36 +02:00
Mark Kaylor
169fb31eb7 Add unique input to test validation 2022-08-23 10:26:14 +02:00
Mark Kaylor
8920227396 Fix error message for required fields 2022-08-23 10:20:49 +02:00
Mark Kaylor
8e7ac2155c Remove map custom field 2022-08-22 17:09:07 +02:00
Rémi de Juvigny
79d845e292 Remove extraneous prop 2022-08-22 16:46:48 +02:00
Rémi de Juvigny
19f9c0be35 Display labelAction on color picker custom field 2022-08-22 16:22:43 +02:00
Rémi de Juvigny
ee48e4cbea Remove log 2022-08-22 15:12:29 +02:00
Rémi de Juvigny
7273fa0fe3 Handle disabled state on color picker 2022-08-22 15:12:01 +02:00
Rémi de Juvigny
620146187f Translate format indicator 2022-08-19 12:19:02 +02:00
Rémi de Juvigny
d81ecff2b4 Show options on custom field example 2022-08-18 18:15:50 +02:00
Rémi de Juvigny
3f756b83d9 Use string type for color custom field 2022-08-18 17:45:49 +02:00
Rémi de Juvigny
27f67bfbe9 Simplify label 2022-08-18 12:16:18 +02:00
Rémi de Juvigny
b6925b19ac Fix color input hint and error 2022-08-18 11:56:26 +02:00
Rémi de Juvigny
6e3b2d683a Fix custom field input loader remounting 2022-08-18 11:28:30 +02:00
Rémi de Juvigny
1fed0afa01 Try InputLoader 2022-08-18 09:50:27 +02:00
Rémi de Juvigny
4729a49186 Merge remote-tracking branch 'origin/features/custom-fields' into custom-fields/cm-input 2022-08-17 14:51:48 +02:00
Rémi de Juvigny
11eee5c9f5 Add custom field to inputs 2022-08-17 14:36:04 +02:00
Mark Kaylor
2b108e7c0f Merge branch 'master' of github.com:strapi/strapi into features/custom-fields 2022-08-16 11:14:30 +02:00
markkaylor
a8ff3aef2f
Merge pull request #13901 from ihmpavel/unify-template-variables-spacing
chore: Unify template spacing
2022-08-16 09:20:37 +02:00
Mark Kaylor
ceb580e753 Register map custom field on the server 2022-08-11 16:16:24 +02:00