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
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
nathan-pichon
fff75fb8f3
fix(review-workflows): sanitize queries
2023-06-26 11:13:45 +02:00
nathan-pichon
4f3ebb5869
fix(permissionChecker): use create and update sanitizers
2023-06-26 10:43:23 +02:00
Alexandre Bodin
63a0ff708e
Fix relative imports
2023-06-26 09:39:58 +02:00
Nathan Pichon
371e1014b0
Merge branch 'feature/review-workflow-multiple' into feature/review-workflow-multiple-sanitize
2023-06-23 17:33:00 +02:00
nathan-pichon
7da2f1e897
fix(review-workflow): sanitize inputs
2023-06-23 17:30:29 +02:00
Nathan Pichon
b4ac2f90d8
feat(review-workflows): remove deleted content-types in assigned workflows ( #17053 )
...
* feat(review-workflows): migrate old to new stage attribute name
* feat(reviewWorkflows): remove ct from workflows when deleted
* fix(operators): re-add $jsonSupersetOf to available operators
2023-06-23 17:18:32 +02:00
nathan-pichon
e1b1c1322f
fix(review-workflow): mock entityService
2023-06-22 15:59:26 +02:00
Gustav Hansen
d8c4c91cef
Fix: ES decorator tests (faulty merge)
2023-06-22 11:46:55 +02:00
nathan-pichon
d901925443
fix(review-workflow): sanitize admin api requests
2023-06-22 11:46:51 +02:00
Gustav Hansen
7b83703576
Merge branch 'main' into feature/review-workflow-multiple-merge-main
2023-06-22 11:20:53 +02:00