41 Commits

Author SHA1 Message Date
Josh
08bc82a220 Merge branch 'develop' into v5/main 2024-02-07 18:27:45 +00:00
Bassel Kanso
425f7870d6
fix(cm): restore proper pagination object on relations response (#19445) 2024-02-07 14:31:51 +00:00
Jamie Howard
1097504b36
[core] document unique field validation per content type and locale (#19153)
* feat: use document service in content manager

* feat: update contracts with meta information

* chore: group metadata types into a single type

* feat: metadata information in single types

* chore: change meta contract to return documents instead of strings

* fix: remove unused type

* fix: ignore doc id if entry is null

* fix: update contract metadata

* feat: document metadata service

* feat: locale and status filtering

* chore: add comment

* chore: refactor metadata service

* chore: refactor entity manager exists to handle single types

* feat: refactor single type controllers to use documents

* feat: get locale param from in cm endpoints

* Revert "feat: get locale param from in cm endpoints"

This reverts commit 856c38588b8f8521cadd85c8c933f42a36a2178a.

* feat: get locale param from cm endpoints

* Update packages/plugins/i18n/server/src/controllers/validate-locale-creation.ts

Co-authored-by: Ben Irvin <ben@innerdvations.com>

* fix: entity manager unit tests

* chore: unit test document metadata

* feat: prevent empty string locale filtering

* feat(core): document unique field validation per content type and locale

* feat(e2e): test document unique fields

* fix(admin): ts build

* fix: cm contract import

* chore: test new d&p cm features

* feat(core): validate document unique fields within one publication state

chore: remove build:ts

* fix: search content manager api test

* fix: cm tests

* fix: cm tests

* fix: cm tests

* fix(content-manager): access to non default locale documents (#19190)

* fix(content-manager): access to non default locale documents

* chore(content-manager): revert route construction

* fix(content-manager): api tests for number of draft relations

* test(content-manager): counting number of draft relations for non default locales

* chore(content-manager): remove default locale from entity manager countDraftRelations

* test(document-service): api tests for unique document fields per publication state

* test(i18n): api tests for unique document fields per locale

* chore(api-tests): adjust author schema

* chore(e2e): disable edit view tests (#19235)

* fix(core): unique validation on publish

* fix(api-tests): un-localise author

* fix(e2e): incorrect path

* fix(admin): tidy up

* fix(admin): pass correct locale query params

fix(core): pass locale outside of filters

* chore(api-tests): wip comment for relatedEntityId logic

* fix(core): entity validator tests

* chore(api-tests): wip skip failing relations i18n test

* chore(e2e): clean up editview spec

* fix(content-manager): pass locale to publish and unpublish

* fix(content-manager): fix test:ts:back

* fix(e2e): update edit view expected path

* fix(entity-validator): default to null locale

fix(api-tests): wip i18n test changes

* fix(e2e): wip UID fields

* chore(content-type-builder): temporarily disable component unique field checkboxes (#19253)

* fix(admin): wip correctly pass params

feat(e2e): reintroduce uniqueness e2e tests

* Refactor UID validation for V5 (#19285)

* fix(database): wip remove UID unique DB constraint

* feat(content-manager): update uid checking endpoints to look at locale

* chore(admin): clean up

* fix(content-manager): single type unit tests

* fix(content-manager): send all params to uid endpoints

* feat(e2e): update tar backup to support unique CT

* fix(e2e): uniqueness spec

* chore(e2e): remove only

* fix(content-manager): only check UID availability against drafts

feat(api-tests): test case for UID validation across locales

* fix(content-manager): uid unit tests

* chore(api-tests): clean up

* chore(content-manager): clean up

* chore(i18n): remove relatedEntityId reference

---------

Co-authored-by: Marc-Roig <marc12info@gmail.com>
Co-authored-by: Ben Irvin <ben@innerdvations.com>
Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
2024-01-29 15:35:20 +00:00
Marc Roig
ff8ed1fc36
feat: Draft & Publish V5 (#18941)
* feat: use document service in content manager
* feat: locale and status filtering
* feat: refactor single type controllers to use documents
* feat: get locale param from in cm endpoints
* feat: get locale param from cm endpoints
* feat: prevent empty string locale filtering
* fix(content-manager): access to non default locale documents
* chore(content-manager): revert route construction
* test(content-manager): counting number of draft relations for non default locales
* chore(content-manager): remove default locale from entity manager countDraftRelations


---------

Co-authored-by: Ben Irvin <ben@innerdvations.com>
Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
2024-01-25 18:43:08 +01:00
Marc-Roig
fc38bbf223
fix: ignore localizations field in non localized ct 2024-01-10 11:31:48 +01:00
Marc-Roig
54bac609ca
fix: content manager search api test 2023-11-14 18:56:03 +01:00
Alexandre BODIN
5ae0dc40cd feat!(content-manager): remove the ability to disable draft&publish (#18488)
* feat!: remove draft and publish triggering

* chore: update snapshots and tests

* test: adapt tests
2023-10-24 17:18:59 +01:00
Marc Roig
42f2df01d5
Merge pull request #17702 from strapi/fix/empty-role-names 2023-08-29 09:18:39 +02:00
Ben Irvin
aedf994e20
Merge branch 'main' into fix/sanitization-throw-instead-of-filter 2023-08-24 14:35:58 +02:00
Marc-Roig
9472ddff19
fix: use different email for testing 2023-08-21 14:51:34 +02:00
Marc-Roig
54cb286f94
chore: remove comment 2023-08-21 12:24:25 +02:00
Marc-Roig
7fbf6bf36c
test: content manager relations permissions 2023-08-21 12:23:27 +02:00
Ben Irvin
bdeb570b61 update test text 2023-08-10 16:46:04 +02:00
Marc-Roig
44fb047133
test: set relational field as default sort 2023-07-26 17:05:14 +02:00
Marc-Roig
3f5fd5aa9b fix: non visible fields test name 2023-07-25 11:20:59 +02:00
Marc-Roig
fc22534f01 test: can set non visible attribute as the default sort of CT 2023-07-25 11:20:59 +02:00
Marc-Roig
8b17c0ded6 test: non visible attributes can be filtered by 2023-07-25 11:20:59 +02:00
Marc Roig
df79981a07
Merge pull request #17262 from strapi/fix/relation-reordering-inv 2023-07-24 15:12:00 +02:00
Gustav Hansen
a6d17cebb9 Merge branch 'main' into feature/review-workflow-multiple-merge-18-07-23 2023-07-18 13:05:31 +02:00
markkaylor
a82de46746
feature/bulk-publish-v2 (#17185)
Co-authored-by: Simone <simone.taeggi@strapi.io>
Co-authored-by: markkaylor <mark.kaylor@strapi.io>
Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
Co-authored-by: Rémi de Juvigny <remi.dejuvigny@strapi.io>
Co-authored-by: Fernando Chavez <fernando.chavez@strapi.io>
2023-07-18 09:03:55 +02:00
Gustav Hansen
72cc277165 Merge branch 'main' into feature/review-workflow-multiple-merge-17-07-23 2023-07-17 13:38:35 +02:00
Marc-Roig
a887260621
fix: split relations test file, as tests were doing too many requests 2023-07-14 11:21:28 +02:00
Alexandre Bodin
68528a363e Fix bulkDelete not found should return a count of 0 2023-07-12 17:15:12 +02:00
Marc-Roig
2d63671daa
fix: relations test relation disconnect breaking other relations 2023-07-12 09:43:27 +02:00
Marc-Roig
ee2cd841c9
tests: updating entity relations does not break other relations 2023-07-11 15:37:54 +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
65294d29a4
test: publish entity with required component 2023-06-27 10:23:40 +02:00
Gustav Hansen
4410fb8f97 Merge branch 'main' into feature/review-workflow-multiple-merge-main 2023-06-22 12:17:05 +02: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
Marc-Roig
bf324d0557 test: skip relations test
see if it fixes flakey tests
2023-06-22 08:12:20 +01:00
Marc
674dc96b89 refactor: mark uid as a prohibited field & separate auto-clone route (#16957)
Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
2023-06-22 08:12:20 +01:00
Marc
21498fbda7 test: set and disconnect should not steal from one to X relations 2023-06-22 08:00:14 +01:00
Marc-Roig
2ac90b8e8e test: disconnect and clone relations 2023-06-22 07:59:49 +01:00
Marc-Roig
19f9273e7d test clone components 2023-06-22 07:59:49 +01:00
Marc-Roig
52bf461b06 test clone dynamic zones 2023-06-22 07:59:49 +01:00
Marc-Roig
d90a0c34bb test clone 2023-06-22 07:59:49 +01:00
Marc-Roig
8982eea28e test clone relations 2023-06-22 07:59:49 +01: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
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