159 Commits

Author SHA1 Message Date
markkaylor
063e359981
fix: one to many relations returns published and draft versions (#23673) 2025-06-06 17:06:45 +02:00
Alexandre Bodin
0ffa0c9175 feat: ctb lifting 2025-04-22 15:20:00 +02:00
Alexandre Bodin
3be592e7ed Merge branch 'develop' into chore/rollup 2025-01-29 17:47:50 +01:00
Alexandre Bodin
92055a7fb1 chore: use rollup
chore: fetch template only if name matches name convention

chore: linting

chore: fix tests

chore: fix npm scripts

test: try to fix test
2025-01-23 16:28:23 +01:00
Convly
82afe56cec fix: update resolvers to use transformed query parameters for database queries 2025-01-23 09:30:22 +01:00
Ben Irvin
bb6d0ed50d
enhancement: apollo landing page config (#22285) 2025-01-07 17:42:34 +01:00
Bassel Kanso
af5da17207
fix: accessing graphql playground without users-permissions plugin (#22354) 2024-12-06 15:29:04 +02:00
Jean-Sébastien Herbaux
fef0f91d51
fix: Remove Private Attributes from GraphQL Filters and Inputs (#21934) 2024-11-25 11:05:48 +01:00
Alexandre Bodin
c5892a9f22 chore: upgrade graphql-tools 2024-04-26 09:32:57 +02:00
Alexandre Bodin
57ef329165 chore: make document service method take a single argument object 2024-04-05 11:34:40 +02:00
Alexandre Bodin
198c650550 chore: allow graphql get request with authentication 2024-03-25 18:48:08 +01:00
Alexandre Bodin
78d30d2e60 chore: reintegrate policy logic into core 2024-03-25 08:51:43 +01:00
Alexandre Bodin
e68afb0e1e chore: inverse control of contentAPI sanitize & validate 2024-03-21 22:26:41 +01:00
Convly
bc9f526e2b chore: refine import statements and remove redundant comments 2024-03-18 11:57:32 +01:00
Christian Capeans
8cb962b8dd Merge branch 'v5/main' of github.com:strapi/strapi into v5/types/v2 2024-03-18 11:11:46 +01:00
Alexandre Bodin
5ffb3c7100 chore: deprecate entity-service and delegate to document service 2024-03-12 21:02:33 +01:00
Convly
011d316a00 Merge branch 'v5/main' into v5/types/v2 2024-03-11 12:15:50 +01:00
Alexandre Bodin
8d53207f8e chore: remove template configuration from utils 2024-03-09 13:08:41 +01:00
Alexandre Bodin
92e54aa49f chore: cleanups 2024-03-08 14:07:59 +01:00
Alexandre Bodin
4b8513e6df chore: migration upload plugin 2024-03-08 10:59:36 +01:00
Alexandre Bodin
279eb4479d chore: migrate graphql plugin to v5 2024-03-07 21:12:36 +01:00
Convly
9100ea9527 chore: lint fix 2024-03-06 16:07:04 +01:00
Convly
6aa57229b3 chore: update Struct.Schema 2024-03-01 17:41:04 +01:00
Convly
c425f82942 chore: move Public.UID and Internal.Struct to the root namespace 2024-03-01 15:56:07 +01:00
Convly
5167af6c73 chore: fix build following latest TS type system changes 2024-03-01 14:41:47 +01:00
Ben Irvin
13a2f8b246
feat: Upgrade to Apollo v4
* feat: update and make build work

BREAKING CHANGE: Update from 'apollo-server-koa' to '@apollo/server' and '@as-integrations/koa'

* chore: fix comments

* chore: upgrade graphql-upload package

* chore: fix for body type unknown

* chore: remove old comment

* chore: clean up error handling

* chore: fix comment

* fix: http status codes for input validation errors

* fix: remove unused import

* fix: remove accidental bodyparser

* fix: add new required header to tests

* chore: standardize directive key names to be kebab-case

* test: add some extra message validation

* chore: remove devdep for koa-cors typings

* fix: add unknown error name

* fix: yarn.lock

* fix: add typings

* fix: typings

* fix: typings again

* fix: remove unused imports

* chore: remove unused import

* chore: move playground check to a service

* fix: package imports and versions

* chore: fix yarn.lock

* chore: fix types

* chore: clean up koa typings

* chore: koa typing cleanup

* chore: cleanup koa typings

* chore: more koa type cleanup

* chore: revert missing imports

* chore: cleanup koa typings

* chore: update yarn.lock
2024-01-15 14:54:58 +01:00
Alexandre Bodin
27aa897cbb Merge branch 'develop' into v5/main 2023-11-23 11:52:10 +01:00
Josh
eb7b88426d
fix(pack-up): ensure we pass the tsconfig file name, not a path to it (#18875)
* fix(pack-up): ensure we pass the tsconfig file name, not a path to it

fix(admin): annotate return type on createBuildContext

fix(admin): ensure shared is a the base folder not importing from server

chore(pack-up): PRINT MOREEEE

fix(ctb): export required type

chore: refactor tsconfigs

* chore: pr amends
2023-11-23 09:16:25 +00:00
Marc-Roig
8aca4eae6a
Merge branch 'main' into v5/main 2023-11-09 12:13:13 +01:00
Alexandre BODIN
5c5ae949bf
chore(graphql): migration to basic ts (#18696) 2023-11-08 18:21:41 +01:00
Ben Irvin
84033819f8
Fix: GraphQL validates repeatable component attributes correctly (#18647) 2023-11-06 15:01:59 +01:00
Alexandre BODIN
5ae0dc40cd feat!(content-manager): remove the ability to disable draft&publish (#18488)
* feat!: remove draft and publish triggering

* chore: update snapshots and tests

* test: adapt tests
2023-10-24 17:18:59 +01:00
Rémi de Juvigny
4b0773bf8c
Fix blocks field not working in GraphQL (#18485) 2023-10-18 12:10:11 +02:00
Marius Diacu
d5f51b892d
Fix type of file upload uid 2023-09-01 11:16:14 +03:00
Convly
8ceaa69cc0 Add comment about gql single type resolve validation 2023-08-24 14:38:47 +02:00
Convly
4e6503dfa8 Add comments to the single type graphql mutations 2023-08-24 14:29:49 +02:00
Ben Irvin
f7022c5177 fix single type sanitization 2023-08-22 12:44:23 +02:00
Ben Irvin
6356087a1a use validate sanitize pattern with graphql 2023-08-16 14:38:49 +02:00
Ben Irvin
995473d959 add utils.validate and replace sanitize usage 2023-08-10 15:24:35 +02:00
Maxime Robert
060a44e0e5 Add $nei operator + translations
Translations:
- ar
- ca
- de
- dk
- en
- es
- eu
- fr
- gu
- hi
- hu
- ja
- ko
- ml
- nl
- pl
- pt-BR
- ru
- sa
- sk
- sv
- tr
- zh
- zh-Hans
2023-07-24 16:24:08 +02:00
Convly
e5854ec0de Use getModel instead of contentTypes 2023-07-03 10:13:57 +02:00
Ben Irvin
d1ffb4a544 fix pagination query sanitization 2023-06-29 15:59:45 +02:00
Bassel
73d4183253 remove subscriptions-transport-ws package from graphql plugin 2023-03-16 13:52:17 +02:00
Alexandre Bodin
8819379e30 Revert other issue 2023-03-15 19:41:35 +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
Ben Irvin
8047092979 make id arg required in singular content type graphql request 2023-02-22 10:52:45 +01:00
Christian Capeans
2a23b26dcb Fix the findParams argument to be passed correctly 2022-11-04 14:28:28 +01: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
Convly
5bf7c58872 Merge branch 'master' into chore/graphql-use-graphql-scalars 2022-08-05 16:33:23 +02:00