30532 Commits

Author SHA1 Message Date
nathan-pichon
7da2f1e897
fix(review-workflow): sanitize inputs 2023-06-23 17:30:29 +02:00
nathan-pichon
d901925443
fix(review-workflow): sanitize admin api requests 2023-06-22 11:46:51 +02:00
Nathan Pichon
cd08c590a8
fix(review-workflow): the feature shouldn't be deactivated on content type creation (#17045)
* fix(reviewWorkflows): should not set review workflows as false on CT creation

* fix(reviewWorkflows): remove check on boolean to inject the stage attribute

* feat(reviewWorkflows): let people be able to deactivate rw stage attr

- without touching the old boolean for retro-compat
2023-06-21 18:09:16 +02:00
Nathan Pichon
7dd4495585
fix(review-workflows): rename table should happen before sync with content-type (#17037) 2023-06-20 15:20:38 +02:00
Nathan Pichon
94fa70f49a
feat(review-workflows): migrate old to new stage attribute name (#16991)
* feat(review-workflows): migrate old to new stage attribute name

* fix(review-workflows): remove table if found empty in migration

* chore(review-workflows): keep review workflows options in example
2023-06-19 16:41:26 +02:00
Nathan Pichon
e4e2a310e2
fix(review-workflows): display review workflows informations in content-manager when needed (#16919)
* chore: update example schemas

* fix(content-manager): merge data instead of overwrite nested objects

* feat(content-manager): add options object in the configuration object

* feat(review-workflow): add the review workflows option in the configuration of content-manager

* fix(content-manager): use review workflows option value in edit-view

* test(workflows): update mocks

* test(info-box): update mocks

* chore: add comments for utils in content-manager

* test(content-manager): add tests on content-types service

* fix(review-workflows): merge configuration before updating it

* docs(review-workflows): add comments about why we merge configuration of CTs

* refactor(review-workflows): extract updateContentTypeConfig function

* test(workflows): update mock

* fix(review-workflows): remove infinite loop

* fix(review-workflows): use findConfiguration instead of getConfiguration

* test(review-workflows): change plural name of long content type

* test(review-workflows): skip long ct name test
2023-06-12 10:52:52 +02:00
Gustav Hansen
087999e715
Merge branch 'main' into feature/review-workflow-multiple 2023-06-02 16:06:50 +02:00
Gustav Hansen
770aadf31a
Merge pull request #16899 from strapi/chore/update-ds-1-7-10
Chore: Update @strapi/design-system and @strapi/icons to 1.7.10
2023-06-02 15:56:06 +02:00
Gustav Hansen
d4ff351347 Chore: Update snapshot tests 2023-06-02 15:36:18 +02:00
Gustav Hansen
61ec28f647 Chore: Update @strapi/design-system and @strapi/icons to 1.7.10 2023-06-02 15:32:34 +02:00
Gustav Hansen
1351ee94f5
Merge pull request #16896 from strapi/feature/review-workflow-multiple-list-footer
Chore: Extend review-workflow list-view by a table footer
2023-06-02 15:12:21 +02:00
Gustav Hansen
cd9638ce1f Chore: Extend review-workflow list-view by a table footer 2023-06-02 13:27:32 +02:00
Gustav Hansen
50159813a5
Merge branch 'main' into feature/review-workflow-multiple 2023-06-02 13:12:22 +02:00
Gustav Hansen
5eb81b93ae Chore: Update snapshot tests 2023-06-02 13:00:39 +02:00
Marc
211b29142e
Merge pull request #16884 from strapi/fix/query-engine-create-many-types 2023-06-02 12:58:42 +02:00
Jamie Howard
ca1ed38fea
Merge pull request #16835 from strapi/feature/set-webhook-events 2023-06-02 11:00:25 +01:00
Gustav Hansen
dc58d6c205 Merge branch 'main' into feature/review-workflow-multiple 2023-06-02 11:54:21 +02:00
Gustav Hansen
de1b02bfce Chore: Update tests 2023-06-02 11:51:30 +02:00
Marc
b256e2da15
Update packages/core/strapi/lib/services/entity-service/index.d.ts
Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
2023-06-02 11:35:50 +02:00
Nathan Pichon
1baeabf6f6
refactor(review-workflow): shorten the stage attribute name on entities (#16881)
* refactor(review-workflow): shorten the stage attribute name on entities

* fix(review-workflow): update data transfer
2023-06-01 17:49:00 +02:00
Marc-Roig
ddb123ff20
fix: update ID types 2023-06-01 17:41:21 +02:00
Marc-Roig
c56023a56a
fix: typo 2023-06-01 17:38:53 +02:00
Marc-Roig
52b37c3fcf
fix: move ID type definition in databse 2023-06-01 17:37:41 +02:00
Marc-Roig
79f025e7aa
fix: typo 2023-06-01 16:39:53 +02:00
Jean-Sébastien Herbaux
263b977edb
Merge pull request from GHSA-chmr-rg2f-9jmf
fix(content-types): remove getter for private attributes
2023-06-01 16:38:44 +02:00
Marc-Roig
e4ec1b7301
fix: update query engine ts types 2023-06-01 16:35:08 +02:00
Jamie Howard
59d61424a9 chore: fix entity manager linter warnings 2023-06-01 15:21:47 +01:00
Jamie Howard
c53b7a7ae4 fix: simplify emitEvent logic 2023-06-01 15:20:13 +01:00
Nathan Pichon
28173dff9e
Merge branch 'main' into advisory-fix-1 2023-06-01 16:18:03 +02:00
Gustav Hansen
e3bb9a9994
Merge pull request #16795 from strapi/chore/react18
Chore: Update to React v18
2023-06-01 14:52:31 +02:00
Gustav Hansen
41885fdd3d Merge branch 'main' into chore/react18 2023-06-01 12:50:17 +02:00
Marc
5fa0dd54a2
Merge pull request #16798 from strapi/feature/review-workflow-default-stage-colors 2023-06-01 11:11:21 +02:00
Nathan Pichon
b8ca9a01ce
feat(review workflow): Prevent too long table name for rw join table attributes (#16827)
* feat(review-workflow): prevent activating on content-type with a too long name

* chore(review-workflow): update warning message

* test(review-workflows): add a test for too long name content type

* test(review-workflows): fix describe condition

* chore(review-workflows): rename variable and constant

* chore(review-workflows): rename constants

* test(review-workflows): update test content type name length

* feat(review-workflows): validate that the content type have rw activated

* feat(review-workflows): simplify the validation step

* Update packages/core/admin/ee/server/services/review-workflows/review-workflows.js

Co-authored-by: Marc <marc12info@gmail.com>

* Update packages/core/admin/ee/server/services/review-workflows/review-workflows.js

Co-authored-by: Marc <marc12info@gmail.com>

* chore: remove unused import

* test(review-workflows): update unit tests

* test: disable review workflows

---------

Co-authored-by: Marc <marc12info@gmail.com>
2023-06-01 10:17:00 +02:00
Convly
c443fb2cf1 Merge branch 'releases/4.10.7' 2023-05-31 17:49:57 +02:00
Convly
e8beafa839 Update yarn.lock 2023-05-31 17:49:14 +02:00
Convly
da080df32b v4.10.7 v4.10.7 2023-05-31 17:46:38 +02:00
Jamie Howard
9ecb8fe34c test: fix tests for addAllowedEvent 2023-05-31 14:28:32 +01:00
Gustav Hansen
4afd489aff
Merge pull request #16872 from strapi/fix/settings-users-refetch-hook
Fix: Fix refetching users
2023-05-31 14:48:54 +02:00
Gustav Hansen
9c394bcc3f Fix: Fix refetching users 2023-05-31 14:31:33 +02:00
nathan-pichon
c8995460ac
fix(content-types): remove getter for private attributes
+ Fixes a flaky test (transactions.test.api.js)
2023-05-31 11:45:26 +02:00
Marc
27700e81ec
Merge pull request #16865 from strapi/fix/initialize-sentry-in-generate-app 2023-05-31 10:49:44 +02:00
Marc
47f8bee867
Merge pull request #16848 from strapi/dependabot/npm_and_yarn/swagger-ui-dist-4.19.0 2023-05-31 10:10:57 +02:00
Marc
1a5f50a262
Merge pull request #16656 from strapi/dependabot/npm_and_yarn/umzug-3.2.1 2023-05-31 10:10:14 +02:00
Jamie Howard
e87dad4373 chore: linter rule 2023-05-30 16:15:05 +01:00
Jamie Howard
d77e42b859 refactor(webhooks): populate allowed events from relevant modules 2023-05-30 16:13:10 +01:00
Marc-Roig
b232a8cbcd
fix: init sentry only when generating app 2023-05-30 16:46:41 +02:00
Gustav Hansen
37927ce7d6 Chore: Update Edit and Listview 2023-05-30 14:04:52 +02:00
Gustav Hansen
ffd959c90d Merge branch 'main' into feature/review-workflow-multiple 2023-05-30 13:42:04 +02:00
Jamie Howard
723187ab4c chore: webhook controller yup validation 2023-05-30 11:05:42 +01:00
Gustav Hansen
4f63cb517f
Merge pull request #16862 from strapi/chore/stray-console-log
Chore: Remove stray console log
2023-05-30 12:00:57 +02:00