721 Commits

Author SHA1 Message Date
Josh
08bc82a220 Merge branch 'develop' into v5/main 2024-02-07 18:27:45 +00:00
Mark Kaylor
b0d94f6dce v4.20.0 2024-02-07 17:11:39 +01: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
Jamie Howard
3f7b2587c5
fix: unique and UID validation logic 2024-02-01 18:02:02 +01:00
Mark Kaylor
34f7e875cd v4.19.1 2024-01-31 14:41:53 +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
Josh
1ec998ff84 Merge branch 'develop' into v5/main 2024-01-26 08:31:31 +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
Convly
6a58621932 Merge branch 'releases/4.19.0' into develop 2024-01-24 16:10:08 +01:00
Convly
beec786491 v4.19.0 2024-01-24 16:00:22 +01:00
Bassel Kanso
ec04445427
Merge branch 'develop' into fix/relations-read-rbac 2024-01-23 11:29:39 +02:00
Bassel Kanso
8247576d2a fix: preserve correct pagination 2024-01-23 11:28:19 +02:00
Rémi de Juvigny
1168c576ca
feat(content-manager): better handle entry duplication (#19256)
* list problematic fields on autoclone failure

* use 3d array for prohibited fields

* tweak type

* pass the plugin params

* remove unused var

* feedback

* use ordered list for breadcrumbs

* less strict wording

* allow uni directional one-to-many relations
2024-01-22 14:17:53 +01:00
Josh
f6f04719a4
chore(cm): refactor to use redux-toolkit-query (#19281)
* chore: move existing react-query calls to redux-toolkit-query

* test: fix unit tests
2024-01-22 09:32:03 +00:00
Bassel Kanso
3596a43c3b
Merge branch 'develop' into fix/relations-read-rbac 2024-01-19 13:58:54 +02:00
Bassel Kanso
a4e9327ef3 fix: add permissionsQuery to one relations 2024-01-19 13:34:48 +02:00
Bassel Kanso
0d380ed3ae fix: make pagination work properly 2024-01-19 10:25:50 +02:00
Alexandre Bodin
aacf182ae4 chore: use koa-body typings not koa-bodyparser 2024-01-17 16:53:52 +01:00
Alexandre Bodin
1ffeb510a8 chore(pack-up): fail on any typing issue 2024-01-17 16:27:59 +01:00
Bassel Kanso
efeb53f7ab fix: sanitize recieved query 2024-01-17 16:21:14 +02:00
Josh
316470cdf8 Merge branch 'develop' into v5/main 2024-01-16 17:46:26 +00:00
Alexandre Bodin
38298e9ebd Merge branch 'releases/4.17.1' into develop 2024-01-16 17:24:48 +01:00
Alexandre Bodin
8f2c1c1fef v4.17.1 2024-01-16 11:50:41 +01:00
Bassel Kanso
e686e96112 fix: sanitize relation read query 2024-01-16 09:51:34 +02:00
Alexandre Bodin
a0d7ebc30f chore: migrate EditSettingsView to ts 2024-01-15 16:06:54 +00:00
Josh
f324494fe9 Merge branch 'develop' into v5/main 2024-01-10 15:58:45 +00:00
Josh
09b9d36b22 Merge branch 'main' into develop 2024-01-10 14:37:01 +00:00
Mark Kaylor
07112073ac v4.17.0 2024-01-10 14:46:39 +01:00
Josh
4cd75b2523 Merge branch 'develop' into v5/main 2024-01-04 08:32:19 +00:00
Josh
30ae2308e8 fix: build process errors from merger 2024-01-03 09:13:19 +00:00
Josh
ddbb55f2eb Merge branch 'main' into releases/4.17.0 2024-01-02 13:41:57 +00:00
Jamie Howard
9fa86dd22b
(content-manager): types for permission checker service (#19068)
* feat(content-manager): WIP types for permission checker

* fix: PR feedback
2024-01-02 09:38:40 +00:00
Convly
b887f1aa47 v4.16.2 2023-12-21 15:53:18 +01:00
Mark Kaylor
af13d4e056 v4.16.1 2023-12-21 15:23:45 +01:00
Mark Kaylor
b8acb528cd v4.16.0 2023-12-20 15:52:24 +01:00
Jamie Howard
0d8a6e7cd6
(content-manager): types for data mapper service (#18887) 2023-12-12 15:47:23 +00:00
Josh
d23325640d
chore(cm): convert list-view to TS (#19016)
* chore(cm): convert list-view to TS

* chore: fix broken tests

* chore: remove separate recursive paths and unify
2023-12-11 18:51:25 +00:00
Alexandre BODIN
1b654d7f4f
Merge pull request #18927 from strapi/v5/core-split 2023-12-11 07:29:25 -08:00
Jamie Howard
a8709d897e
[content-manager] types for metrics service (#19014) 2023-12-11 10:56:40 +00:00
Jamie Howard
748e479a5d
[content-manager] types for uid service (#18910) 2023-12-11 10:49:15 +00:00
Jamie Howard
6f2783dadd
[content-manager] types for permissions service (#19015) 2023-12-11 10:48:25 +00:00
Josh
626dc81cda Merge branch 'develop' into v5/main 2023-12-08 16:31:21 +00:00
Alexandre Bodin
f0bbaa2bc9 chore: fix pkg json to make them yalc compat 2023-12-07 18:27:34 -08:00
Jamie Howard
40ef34cbcd
(content-manager): types for component service (#18869) 2023-12-07 11:58:14 +00:00
Josh
ac7ce4ebf2
chore(content-manager): convert cm app shell to TS (#18985) 2023-12-06 16:51:55 +00:00
Josh
f1dd5cc8ee
chore(content-manager): convert the editview to typescript (#18948) 2023-12-04 16:00:50 +00:00
Alexandre Bodin
e0de993d4a Merge branch 'develop' into v5/main 2023-11-30 16:42:36 +01:00
Alexandre Bodin
6b35da10af Merge branch 'main' into develop 2023-11-30 16:32:56 +01:00
Mark Kaylor
dc96169c3f v4.15.5 2023-11-29 16:42:28 +01:00