1368 Commits

Author SHA1 Message Date
Gustav Hansen
0a008881ef Merge branch 'main' into feature/review-workflow 2023-03-16 15:49:45 +01:00
Alexandre Bodin
b3cb13cb14 v4.8.1 2023-03-15 22:25:40 +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
Rémi de Juvigny
7c197ba0d1 Merge remote-tracking branch 'origin/main' into feature/audit-logs-config 2023-03-09 18:44:30 +01:00
Simone Taeggi
eae7fc9b1d chore: update DS to 1.6.5 and fix a unit test 2023-03-08 10:36:08 +01:00
Josh
3234fcc61d
Merge pull request #15900 from strapi/fix/relations-caching-between-locales 2023-03-03 15:42:28 +00: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
05a83874c1
Merge pull request #15972 from strapi/chore/update-DS 2023-03-03 14:09:55 +00:00
nathan-pichon
f121209c9b
chore(example): get previous state on content-type address 2023-03-03 11:17:02 +01:00
Josh
d209390fbe chore: update DS to 1.6.4 2023-03-02 13:17:01 +00:00
Alexandre BODIN
97536d9a3f
Merge pull request #15473 from strapi/dependabot/npm_and_yarn/vscode/sqlite3-5.1.2 2023-03-02 13:36:17 +01:00
Sora Morimoto
930a3afec7 chore: Add all undeclared packages to package.json
This reverts commit 6c283862daa0c8846a544c183e72623b65907cc3.

chore: Add all undeclared packages to package.json

Add all undeclared packages to package.json (Round 2)

Signed-off-by: Sora Morimoto <sora@morimoto.io>

chore: move core deps to peer

codemirror5

Signed-off-by: Sora Morimoto <sora@morimoto.io>

Add all undeclared packages to `package.json` (Round 2)

Signed-off-by: Sora Morimoto <sora@morimoto.io>

_

Signed-off-by: Sora Morimoto <sora@morimoto.io>

Add all undeclared "safe" packages to `package.json`

Signed-off-by: Sora Morimoto <sora@morimoto.io>

Add all undeclared "unsafe" packages to `package.json`

Signed-off-by: Sora Morimoto <sora@morimoto.io>

helper-plugin: remove `fs-extra`

Signed-off-by: Sora Morimoto <sora@morimoto.io>

https://github.com/strapi/strapi/pull/15797

i18n-plugin: move redux from devDependencies to dependencies

Signed-off-by: Sora Morimoto <sora@morimoto.io>

database: sqlite3 was a false-detected dependency

Signed-off-by: Sora Morimoto <sora@morimoto.io>

generators: revert changes

Signed-off-by: Sora Morimoto <sora@morimoto.io>

Regenerate yarn.lock

Signed-off-by: Sora Morimoto <sora@morimoto.io>

chore: update react-intl

chore: fix post rebase

chore: remove axios from packages that dont need it

chore: ensure projects install r rd rrd & s

Revert "chore: ensure projects install r rd rrd & s"

This reverts commit 2e87a1d0fcaf21e187ce558f4690d41ff854d58d.

Revert "Revert "chore: ensure projects install r rd rrd & s""

This reverts commit b53a3d49987b00abb393966738d2a34f59c9dc71.

chore: Add all undeclared packages to package.json
2023-03-02 10:12:14 +00:00
dependabot[bot]
c980d94258
chore(deps): bump @vscode/sqlite3 from 5.0.8 to 5.1.2
Bumps [@vscode/sqlite3](https://github.com/microsoft/vscode-node-sqlite3) from 5.0.8 to 5.1.2.
- [Release notes](https://github.com/microsoft/vscode-node-sqlite3/releases)
- [Commits](https://github.com/microsoft/vscode-node-sqlite3/commits)

---
updated-dependencies:
- dependency-name: "@vscode/sqlite3"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-02 10:11:56 +00:00
Alexandre Bodin
0307fb4bf7 v4.7.1 2023-03-02 10:24:10 +01:00
nathan-pichon
a0d89b6884
feat(review-workflows): add migration when activating rw on content-type (wip) 2023-03-01 12:00:47 +01:00
Convly
948dbb3121 v4.7.0 2023-02-27 20:33:14 +01:00
Convly
8f6058aacd Merge branch 'main' of github.com:strapi/strapi into features/data-transfer 2023-02-24 14:47:47 +01:00
Rémi de Juvigny
0dcfbde89f Allow disabling audit logs 2023-02-23 12:20:58 +01:00
Convly
bae505f44c v4.6.2 2023-02-22 19:06:25 +01:00
Convly
478127d7c7 Merge branch 'main' of github.com:strapi/strapi into features/data-transfer 2023-02-20 16:58:46 +01: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
Convly
1dd825035c Merge branch 'main' of github.com:strapi/strapi into features/data-transfer 2023-02-08 17:22:20 +01:00
Convly
17a7845e3d v4.6.1 2023-02-08 17:00:11 +01:00
Convly
1b51476e93 Add transfer.token.salt to the examples app admin
Co-authored-by: Christian <christiancp100@gmail.com>
Co-authored-by: Simone <simone.taeggi@strapi.io>
Co-authored-by: Bassel Kanso <basselkanso82@gmail.com>
Co-authored-by: Ben Irvin <innerdvations@users.noreply.github.com>
2023-02-02 16:52:48 +01:00
Marc
a9ea6986a7
Merge branch 'main' into fix/webhook-with-count-relations 2023-01-26 17:27:25 +01:00
Pierre Noël
28bc7b2c4b Bump database client versions 2023-01-26 10:51:56 +01:00
dependabot[bot]
5fc74ed509
chore(deps): bump better-sqlite3 from 7.4.6 to 7.6.2
Bumps [better-sqlite3](https://github.com/WiseLibs/better-sqlite3) from 7.4.6 to 7.6.2.
- [Release notes](https://github.com/WiseLibs/better-sqlite3/releases)
- [Commits](https://github.com/WiseLibs/better-sqlite3/compare/v7.4.6...v7.6.2)

---
updated-dependencies:
- dependency-name: better-sqlite3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-25 20:23:11 +00:00
Convly
a9e55435c4 v4.6.0 2023-01-25 21:17:20 +01:00
Marc-Roig
6d05a64089 add webhooks populate relations configuration variable 2023-01-19 14:53:37 +01:00
Marc-Roig
52b3dda02b fix localizations count 2023-01-18 15:42:11 +01:00
Pierre Noël
2a18a3fa76 Merge branch 'main' into feature/audit-logs 2023-01-18 11:11:54 +01:00
Marc-Roig
57282228f5 Merge branch 'main' into fix/webhook-with-count-relations 2023-01-17 15:12:58 +01:00
Marc-Roig
cf814fc1da move config to admin 2023-01-17 09:27:33 +01:00
Josh
0f3b1c090d Merge branch 'main' into feature/relations-reordering 2023-01-16 13:00:50 +00:00
Marc-Roig
25e1435173 Revert "remove relations populate configuration"
This reverts commit cea950fd9657df6434d22ecd29c1bbfd8d9a0912.
2023-01-13 15:35:21 +01:00
Marc-Roig
cea950fd96 remove relations populate configuration 2023-01-12 14:31:04 +01:00
Convly
d36609ff26 v4.5.6 2023-01-11 17:48:52 +01:00
Josh
031640ea36
Merge pull request #15265 from strapi/fix/reorder-dz-and-repeatbles-relations
Fixes https://github.com/strapi/strapi/issues/14908
2023-01-11 12:52:01 +00:00
Marc-Roig
bf3c7e6a9d remove relations performance config 2023-01-10 15:18:34 +01:00
Marc-Roig
8fb75a8ce9 rename relations populate config 2023-01-10 15:15:11 +01:00
Josh
8d6a247b14 fix: tidy-up name solving function and handle refetching and removing 2023-01-10 13:58:55 +00:00
Marc-Roig
8806f5eeb1 add admin config variable to enable relations performance 2023-01-05 15:55:47 +01:00
Josh
c5ebf3edac Merge branch 'main' into feature/relations-reordering 2023-01-03 12:09:25 +00:00
Marc
659f31e362
Merge pull request #15149 from strapi/dependabot/npm_and_yarn/pg-8.8.0 2023-01-02 09:47:03 +01:00
Marc-Roig
ef9c9114f3 Merge branch 'main' into feature/relations-reordering 2023-01-02 09:36:10 +01:00
Convly
8f1988367c v4.5.5 2022-12-28 15:17:36 +01:00
Gustav Hansen
7f37735a5a Merge branch 'main' into feature/relations-reordering 2022-12-21 16:40:34 +01:00