9095 Commits

Author SHA1 Message Date
Ben Irvin
297bda0d5c add comments 2023-03-23 16:10:24 +01:00
Ben Irvin
41a793ed53 clean up after each test 2023-03-23 15:02:08 +01:00
Ben Irvin
f75af12505 sqlite-legacy is dialect sqlite 2023-03-23 14:25:47 +01:00
Ben Irvin
c7db702b33 fix tests 2023-03-23 13:01:44 +01:00
Ben Irvin
41c7792b54 add mysql2 as a db client option 2023-03-22 12:11:15 +01:00
Kevin Antonio Rateni Iatauro
edc2bdcecd
Decouple image resizing and optimization (#14029)
Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
2023-03-22 11:00:21 +01:00
Kevin Antonio Rateni Iatauro
0895e36738
Return newly created IDs when using createMany (#14269)
Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
2023-03-22 08:43:52 +01:00
Alexandre BODIN
942e646d28
Perf optimizations (#16117)
Co-authored-by: Marc-Roig <marc12info@gmail.com>
2023-03-21 18:37:21 +01:00
Gustav Hansen
011967acca
Merge pull request #16160 from strapi/dependabot/npm_and_yarn/sanitize-html-2.10.0
build(deps): bump sanitize-html from 2.7.3 to 2.10.0
2023-03-21 17:59:55 +01:00
Gustav Hansen
6a323f4803
Merge pull request #16162 from strapi/fix/useAPIErrorHandler-axios-error
useAPIErrorHandler: Reverse error handling (API -> Axios)
2023-03-21 17:14:13 +01:00
edlefebvre
3b2346c98b
fix(core upload): add missing FR translations (signed) (#16156) 2023-03-21 16:35:20 +01:00
DMehaffy
b07fc41d84
Add Not implemented error class (#15938) 2023-03-21 14:42:45 +01:00
Gustav Hansen
fb5c8f9180 useAPIErrorHandler: Reverse error handling (API -> Axios) 2023-03-21 14:04:10 +01:00
dependabot[bot]
aff78c1e90
build(deps): bump sanitize-html from 2.7.3 to 2.10.0
Bumps [sanitize-html](https://github.com/apostrophecms/sanitize-html) from 2.7.3 to 2.10.0.
- [Release notes](https://github.com/apostrophecms/sanitize-html/releases)
- [Changelog](https://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apostrophecms/sanitize-html/compare/2.7.3...2.10.0)

---
updated-dependencies:
- dependency-name: sanitize-html
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-21 10:36:41 +00:00
Josh
69ce44366e
Merge pull request #16155 from strapi/dependabot/npm_and_yarn/react-intl-6.3.2 2023-03-21 10:34:38 +00:00
dependabot[bot]
35c625f155
build(deps): bump react-intl from 6.2.8 to 6.3.2
Bumps [react-intl](https://github.com/formatjs/formatjs) from 6.2.8 to 6.3.2.
- [Release notes](https://github.com/formatjs/formatjs/releases)
- [Commits](https://github.com/formatjs/formatjs/compare/react-intl@6.2.8...react-intl@6.3.2)

---
updated-dependencies:
- dependency-name: react-intl
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-21 10:07:10 +00:00
dependabot[bot]
d7e3dbfdd4
build(deps): bump webpack-dev-server from 4.11.1 to 4.13.1
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 4.11.1 to 4.13.1.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.11.1...v4.13.1)

---
updated-dependencies:
- dependency-name: webpack-dev-server
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-21 09:58:38 +00:00
Alexandre BODIN
c2bb76d806
Revert "chore(deps): bump glob from 7.2.0 to 7.2.3" 2023-03-20 15:14:00 +01:00
Alexandre BODIN
1db941333c
Merge pull request #15979 from strapi/dependabot/npm_and_yarn/glob-7.2.3 2023-03-20 15:13:31 +01:00
Gustav Hansen
746593c17b
Merge pull request #16119 from strapi/chore/lodash-reduce-and-restrict
Reduce and optimize lodash usage in the admin app
2023-03-20 12:31:47 +01:00
Jamie Howard
cd29d8ba6b
Merge pull request #16084 from strapi/feature/persist-ee-tables 2023-03-20 11:30:12 +00:00
Jamie Howard
04723bf727 chore(ee): PR feedback 2023-03-20 11:01:17 +00:00
Convly
3351b78b5b Prettier fix 2023-03-20 10:16:31 +01:00
Convly
5a05cc549b Add tests for the filters & sort on ID 2023-03-20 10:11:49 +01:00
Convly
fbb22891a8 Allow to sort by ID in the sort sanitize operations 2023-03-20 10:11:33 +01:00
Jamie Howard
2c7906cdd0 fix(ee): correct await 2023-03-17 14:32:45 +00:00
Jamie Howard
b17dd81556 chore: improve naming of persisted tables 2023-03-17 13:31:55 +00:00
Gustav Hansen
d3da03c099 Helper-Plugin: Optimize lodash imports 2023-03-17 14:25:53 +01:00
Gustav Hansen
a9fb1f3130 Reduce and optimize lodash imports 2023-03-17 14:25:53 +01:00
Marc
69e34ff84a
Merge pull request #16112 from strapi/fix/sort-by-published-at 2023-03-17 09:24:10 +01:00
Josh
fd978f3f79 chore: update snapshots & tests for DS 1.6.6
chore: update tests
2023-03-16 19:44:54 +00:00
Josh
2f6ced23e3 chore: update packages 2023-03-16 19:24:44 +00:00
Convly
cc73bed97b v4.8.2 2023-03-16 17:49:52 +01:00
Marc-Roig
28ebe15abe add published at attribute to be filterable and sortable 2023-03-16 17:18:29 +01:00
Convly
26ee27985a Add tests for sanitize-query dz populate 2023-03-16 15:16:25 +01:00
Convly
ae5481026b Fix broken populate traversal with no fragment 2023-03-16 14:30:07 +01:00
Gustav Hansen
a9d1afd76d
Merge pull request #16090 from strapi/enhance/use-api-error-handler-axios-error
useAPIErrorHandler: Handle AxiosError
2023-03-16 14:05:19 +01:00
Jamie Howard
1ae35507fe chore(ee): revert review-workflows bootstrap stage 2023-03-16 12:02:07 +00:00
dependabot[bot]
c34008aeaf
Bump axios from 1.2.2 to 1.3.4
Bumps [axios](https://github.com/axios/axios) from 1.2.2 to 1.3.4.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/1.2.2...v1.3.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-15 21:46:08 +00:00
Alexandre Bodin
2ec4bf2bd1 Merge branch 'releases/4.8.1' 2023-03-15 22:42:50 +01:00
Alexandre Bodin
b3cb13cb14 v4.8.1 2023-03-15 22:25:40 +01:00
Alexandre Bodin
9295b52bb7 Fix api tests 2023-03-15 20:55:25 +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
Jamie Howard
7e4cea8a24 refactor(ee): use strapi core store to persist DB tables
refactor(database)
2023-03-15 17:24:25 +00:00
Convly
1b6a6926e6 Merge branch 'releases/4.8.0' into main 2023-03-15 16:35:26 +01:00
Convly
e239e408f9 v4.8.0 2023-03-15 16:29:42 +01:00
Gustav Hansen
17f773ebd3 useAPIErrorHandler: Improve type-safety of getPrefixedId() 2023-03-15 15:27:37 +01:00
Gustav Hansen
7f11c8bbdf useAPIErrorHandler: Stop testing react-intl internals 2023-03-15 15:26:59 +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