234 Commits

Author SHA1 Message Date
Josh
0ba9e53511 Merge branch 'develop' into v5/main 2024-02-13 11:19:06 +00:00
Marc-Roig
13d2fd086e
fix: other flakey test 2024-02-12 12:19:49 +01:00
Ben Irvin
8ea71985c8
fix: restrict model and attribute names that break Strapi 2024-02-12 10:47:14 +01:00
Marc-Roig
9a67bb7104
fix: q search by string 2024-02-12 09:43:04 +01:00
Jean-Sébastien Herbaux
90a86f595c
Fix input payload validation 2024-02-09 15:05:32 +01:00
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
Fernando Chavez
f6928f6864 Merge branch 'develop' of github.com:strapi/strapi into v5/merge2 2024-02-05 10:48:01 +01:00
Josh
812647b8b0
fix(cm): pass params to post requests for publish & unpublish (#19294)
* fix(cm): pass params to post requests for publish & unpublish

resolves #19289

* Extract locale from query strings (#19359)

---------

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
2024-01-31 11:50:22 +00:00
Josh
aabbb0b2ef Merge branch 'develop' into v5/main 2024-01-30 16:26:36 +00:00
Marc Roig
2d371a2d60
fix: nested on commit on rollback transactions (#19368) 2024-01-30 11:00:08 +01: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
Alexandre Bodin
1ee1b79dcc chore: update snapshot 2024-01-23 14:36:22 +01:00
Alexandre Bodin
778e8fb175 chore: update api test snapshot 2024-01-23 11:32:03 +01:00
Josh
79aef88064 Merge branch 'develop' into v5/main 2024-01-22 13:39:48 +00:00
markkaylor
d172fb07e2
chore(content-releases): remove future flags (#19245) 2024-01-19 15:54:10 +01:00
Ben Irvin
13a2f8b246
feat: Upgrade to Apollo v4
* feat: update and make build work

BREAKING CHANGE: Update from 'apollo-server-koa' to '@apollo/server' and '@as-integrations/koa'

* chore: fix comments

* chore: upgrade graphql-upload package

* chore: fix for body type unknown

* chore: remove old comment

* chore: clean up error handling

* chore: fix comment

* fix: http status codes for input validation errors

* fix: remove unused import

* fix: remove accidental bodyparser

* fix: add new required header to tests

* chore: standardize directive key names to be kebab-case

* test: add some extra message validation

* chore: remove devdep for koa-cors typings

* fix: add unknown error name

* fix: yarn.lock

* fix: add typings

* fix: typings

* fix: typings again

* fix: remove unused imports

* chore: remove unused import

* chore: move playground check to a service

* fix: package imports and versions

* chore: fix yarn.lock

* chore: fix types

* chore: clean up koa typings

* chore: koa typing cleanup

* chore: cleanup koa typings

* chore: more koa type cleanup

* chore: revert missing imports

* chore: cleanup koa typings

* chore: update yarn.lock
2024-01-15 14:54:58 +01:00
Marc-Roig
ed37011ec0
feat: ignore locale parameter on non localized content types 2024-01-10 16:55:13 +01:00
Marc-Roig
fc38bbf223
fix: ignore localizations field in non localized ct 2024-01-10 11:31:48 +01:00
Marc-Roig
856dfd8ee5
fix: ignore locale field in api tests 2024-01-10 11:01:21 +01:00
Marc Roig
d4d47227a6
feat: Initialize Document Service (#18558)
Co-authored-by: Ben Irvin <ben@innerdvations.com>
2023-11-28 12:01:27 +01:00
Alexandre Bodin
9628e9d90f chore: remove ee direct imports 2023-11-24 09:33:00 +01:00
Alexandre Bodin
27aa897cbb Merge branch 'develop' into v5/main 2023-11-23 11:52:10 +01:00
Marc Roig
728d614ca4
feat: Migrate @strapi/admin server to typescript (#18232)
Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
2023-11-16 15:38:15 +00:00
Marc-Roig
e204f16a71
fix: strapi search api tests 2023-11-14 19:10:46 +01:00
Marc-Roig
54bac609ca
fix: content manager search api test 2023-11-14 18:56:03 +01:00
Marc-Roig
8aca4eae6a
Merge branch 'main' into v5/main 2023-11-09 12:13:13 +01:00
Ben Irvin
84033819f8
Fix: GraphQL validates repeatable component attributes correctly (#18647) 2023-11-06 15:01:59 +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
Alexandre Bodin
477ebe1b30 chore(@strapi/strapi): build strapi core with pack-up 2023-10-16 09:19:56 +02:00
Alexandre Bodin
338a75fd16 Export isKnexQuery but tag is as internal 2023-10-09 10:54:13 +02:00
Alexandre Bodin
c8c571e5f7 Fix tests 2023-10-05 13:30:56 +02:00
Ben Irvin
d840d3ca2b tests 2023-09-28 10:41:21 +02:00
Ben Irvin
8fb3ffef45 add test 2023-09-28 10:39:27 +02:00
Ben Irvin
0f66b31d37 update tests 2023-09-28 10:33:04 +02:00
Ben Irvin
e5eb30b2a3 add test 2023-09-28 10:31:17 +02:00
Ben Irvin
26753c2c6f allow empty objects in validator 2023-09-27 11:56:41 +02:00
Gustav Hansen
fc86e60e00 Merge branch 'main' into feature/rw-stage-rbac 2023-09-25 12:16:34 +02:00
Alexandre Bodin
1d9cda74db fix EE tests 2023-09-18 10:24:32 +02:00
Alexandre Bodin
efc1c40f22 Apply review comments 2023-09-15 11:09:37 +02:00
Gustav Hansen
b6e0798993 Merge branch 'main' into feature/rw-stage-rbac-merge-09-12 2023-09-12 13:47:07 +02:00
Alexandre Bodin
6dd6474e0d Merge branch 'main' into chore/ts-strapi 2023-09-12 10:45:03 +02:00
Alexandre Bodin
96c86c65c5 Merge branch 'main' into chore/ts-strapi 2023-09-11 15:04:30 +02:00
Jamie Howard
4339191e89 test(api): correct return format for strapi_stage attribute 2023-09-11 10:49:21 +01:00
Jamie Howard
fe6dccf668 chore(api-tests): move sanitization test to review workflows test suite 2023-09-08 13:39:58 +01:00
Jamie Howard
57b2df46d6 test(api): correct sanitization of admin user private attributes 2023-09-07 15:52:52 +01:00
Marc-Roig
ba65bb5b8a
fix: pick color attribute on create workflow 2023-09-07 12:36:54 +02:00
Jamie Howard
9aebd8b17e chore(ee): cleanup test file 2023-09-06 11:35:31 +01:00
Jamie Howard
437a42909d test(ee): api for new list stage permissions 2023-09-06 11:23:12 +01:00