3 Commits

Author SHA1 Message Date
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
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
Alexandre BODIN
feced1d72b
Move api tests to root of repo with same structure (#16242) 2023-04-05 10:32:20 +02:00