31191 Commits

Author SHA1 Message Date
Gustav Hansen
9aef0d0f08 Chore: Update license limits in create, edit and list-views 2023-07-07 11:20:11 +02:00
Marc Roig
2a92cba09d
Merge pull request #17123 from strapi/feature/review-workflow-multiple-license-limits 2023-07-06 14:20:24 +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
30ff81ecbc
chore(review-workflows): remove useless console.log 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
02a3e1e592
chore(review-workflows): put default options 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
2f7c279cde
Merge pull request #17182 from strapi/feat/workflow-find-one-meta 2023-07-05 10:20:26 +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
62be7cabe6
test: count meta 2023-07-04 17:26:33 +02:00
Marc-Roig
83aefda65a
feat: return workflow count 2023-07-04 16:39:11 +02:00
Nathan Pichon
904ac46808
Merge pull request #17158 from strapi/feature/review-workflow-multiple-license-info-in-route
feat(admin): add features informations inside the license limit route
2023-07-03 10:16:52 +02:00
nathan-pichon
984b5cb8cd
feat(admin): add features informations inside the license limit route 2023-06-30 17:14:15 +02:00
Josh
4e45c46dc4
Merge pull request #17101 from strapi/feature/review-workflow-multiple-workflow-limits 2023-06-29 14:43:56 +01:00
Josh
3346e5e767 test: fix InformationBoxEE suite 2023-06-29 13:26:07 +01:00
Nathan Pichon
2a6167c865
Merge pull request #17060 from strapi/feature/review-workflow-multiple-sanitize
fix(review-workflow): sanitize admin api requests
2023-06-28 10:39:21 +02:00
Gustav Hansen
5d73a914bc Chore: Wrap all useLicenseLimits calls in a custom hook 2023-06-26 14:43:08 +02:00
Gustav Hansen
b4e158c3d1 Enhancement: Render workflow/ stage limits in CM edit view 2023-06-26 13:56:23 +02:00
Gustav Hansen
02391694e3 Enhancement: Display stage limits on create and edit pages 2023-06-26 13:56:23 +02:00
Gustav Hansen
f469fbc6c3 Enhancement: Display workflow limits on list, edit and create pages 2023-06-26 12:58:57 +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
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
Gustav Hansen
136f107436
Merge pull request #17058 from strapi/feature/review-workflow-multiple-merge-main
Chore: Merge main into feature/review-workflow-multiple
2023-06-23 14:51:05 +02:00
nathan-pichon
e72ca4b13c
test(review-workflow): refresh data between tests 2023-06-23 14:26:49 +02:00
nathan-pichon
e1b1c1322f
fix(review-workflow): mock entityService 2023-06-22 15:59:26 +02:00
Gustav Hansen
4410fb8f97 Merge branch 'main' into feature/review-workflow-multiple-merge-main 2023-06-22 12:17:05 +02:00
Marc
553217bd1c
Merge pull request #16192 from strapi/feature/clone-entity-relations 2023-06-22 12:04:59 +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
Josh
9a537e811b chore: merge fixes
chore: fix lint
2023-06-22 09:18:57 +01:00
Marc-Roig
0654f395cd test: use entity service to load relations 2023-06-22 08:12:20 +01:00
Marc-Roig
e2fa85f848 skip cloning relations tests 2023-06-22 08:12:20 +01:00