531 Commits

Author SHA1 Message Date
Marc Roig
c3e1892955
Merge pull request #17384 from strapi/fix/ct-rw-assign-concurrency 2023-07-20 11:12:50 +02:00
Marc-Roig
764bfd017d
fix: rw content types unit test 2023-07-20 09:39:38 +02:00
Marc-Roig
9976d7e95e
fix: handle edge case where content type is assigned multiple times 2023-07-20 07:32:24 +02:00
Marc-Roig
3afba57431
fix: update workflows in parallel 2023-07-20 07:10:21 +02:00
Ben Irvin
0fff4223ad
Merge branch 'main' into fix/17172-ssolocked-roles-null 2023-07-19 10:59:22 +02:00
Ben Irvin
ae67e82f26 Revert "allow null defaultRole on backend"
This reverts commit 64c995d4ccf5681bac9b10e575ce808f6e17d120.
2023-07-18 17:37:13 +02:00
Ben Irvin
64c995d4cc allow null defaultRole on backend 2023-07-18 17:32:51 +02:00
Marc-Roig
299105d26d
feat: uniqueProperty yup methods 2023-07-18 14:48:42 +02:00
Marc-Roig
d7a0bcdc8e
fix: make workflow name required 2023-07-18 12:47:52 +02:00
Marc-Roig
252b616804
fix: ignore yup test validation if stage array is empty 2023-07-18 12:26:05 +02:00
Marc-Roig
490a8c239e
chore: yup validation text refactor 2023-07-17 19:00:06 +02:00
Marc-Roig
4a949d4ddd
chore: yup validation variable rename 2023-07-17 18:57:32 +02:00
Marc-Roig
4bdf6ddf2b
feat: yup validate stage names are unique 2023-07-17 18:49:17 +02:00
Ben Irvin
beeff09d6f accept null ssoLockedRoles 2023-07-17 17:09:07 +02:00
Marc-Roig
018409f763
test: unit test workflow stages are not duplicated 2023-07-17 11:35:44 +02:00
Marc-Roig
f11aeda877
feat: throw ValidationError if stage has a duplicated name 2023-07-17 11:03:36 +02:00
Gustav Hansen
e55b8f7d59 Fix: Make stage color theme color retrieval more defensive 2023-07-11 17:48:46 +02:00
Marc-Roig
6565ed6678
fix: rw entity-service decorator tests 2023-07-07 14:23:32 +02:00
Gustav Hansen
a886c69b56 Merge branch 'main' into feature/review-workflow-multiple-merge-07-2023 2023-07-07 13:35:15 +02:00
Marc-Roig
d61628abeb
fix: return workflow count instead of data lenght 2023-07-07 10:51:13 +02:00
Marc-Roig
ea5f6252d7
feat: use meta instead of pagination 2023-07-07 10:06:15 +02:00
Marc-Roig
1dcac25f6e
feat: paginate workflow find 2023-07-07 10:01:49 +02:00
nathan-pichon
70abecc6df
fix(review-workflow): reorder operation in replace stages function 2023-07-05 11:49:18 +02:00
nathan-pichon
9da569e046
fix(review-workflow): fix persist condition 2023-07-05 11:30:46 +02:00
nathan-pichon
05a46a71f2
fix(review-workflows): remove workflow validation in stage service 2023-07-05 10:35:02 +02:00
nathan-pichon
0072262a91
fix(review-workflows): stage deletion cannot rely on created one
⚠️ this might affect how stages are ordered after a deletion
2023-07-05 10:35:02 +02:00
nathan-pichon
2fa11a8784
fix(review-workflows): on replace, delete before creating new stages
If we try to create stages before deletion, it will try to validate the number of stages that are currently in the workflow + the ones created, and can result in a validation error as the number of stages can be higher than expected (but will be lowered by deletion afterward).
2023-07-05 10:35:02 +02:00
nathan-pichon
b2fe168e4d
feat(review-workflows): use fp for validation pipe
Avoid errors on stage creation that doesn't have any workflow id to relates to.
2023-07-05 10:35:02 +02:00
nathan-pichon
9c70fac0ac
fix(review-workflows): workflow creation
Workflows should be created before as stages needs to have a workflow ID to be created and validated
2023-07-05 10:35:02 +02:00
nathan-pichon
7bc57af01d
fix(review-workflows): remove migrate validation
As content-type file is only used by workflow service, it doesn't need any new layer of validation
2023-07-05 10:35:02 +02:00
nathan-pichon
13218e99d7
test(review-workflows-content-type): fix test by using clearAllMocks instead of resetAllmocks 2023-07-05 10:35:02 +02:00
nathan-pichon
a29f0cb1c1
test(review-workflows): adding validation service tests 2023-07-05 10:35:02 +02:00
nathan-pichon
7a2e7cf65e
test(review-workflows): adding validation service mock to tests 2023-07-05 10:35:02 +02:00
nathan-pichon
9ca8234808
feat(review-workflows): adding validation on licence restrictions 2023-07-05 10:35:02 +02:00
nathan-pichon
c2fc2f7e54
docs(review-workflows): added jsdoc to validation functions 2023-07-05 10:35:02 +02:00
nathan-pichon
ea32c40507
feat(review-workflows): added validation to workflows create and update 2023-07-05 10:35:02 +02:00
nathan-pichon
d0195ff181
feat(review-workflows): store license limits in services 2023-07-05 10:34:58 +02:00
Marc-Roig
f29af1fc78
fix: parse string stage ids 2023-07-05 09:40:52 +02:00
Marc-Roig
f48e9cab75
chore: findById jsodcs 2023-07-04 17:47:52 +02:00
Marc-Roig
83aefda65a
feat: return workflow count 2023-07-04 16:39:11 +02:00
Jamie Howard
2d4db7a482
Merge pull request #17128 from strapi/fix/rw-webhooks 2023-07-03 15:24:10 +01:00
nathan-pichon
984b5cb8cd
feat(admin): add features informations inside the license limit route 2023-06-30 17:14:15 +02:00
Jamie Howard
7ff725ed6c chore: cleanup 2023-06-27 16:14:44 +01:00
Jamie Howard
5985781a9a fix(ee): retrieve stage name and ID from updated entity 2023-06-27 11:35:28 +01:00
Jamie Howard
2ca802bcbd fix(ee): review workflow entity service decorator tests 2023-06-27 11:09:47 +01:00
Jamie Howard
5898f6cce8 fix(ee): send stage names in webhook payload 2023-06-26 16:47:57 +01:00
Jamie Howard
954044bf11 fix(ee): correct payload structure for review workflows stage change webhook event 2023-06-26 16:32:04 +01:00
Ben Irvin
c8e128d11c Merge branch 'main' into chore/upgrade-jest-to-29.5 2023-06-26 16:31:04 +02:00
Ben Irvin
23e86fd063 fix some tests 2023-06-26 16:26:39 +02:00
nathan-pichon
1a4e62d99b
fix(review-workflows): update sanitize calls 2023-06-26 12:27:25 +02:00