1189 Commits

Author SHA1 Message Date
Rémi de Juvigny
ab39246eba
chore: use db model instead of content type (#19563)
* chore: use db model instead of content type

* chore: remove content type ref in comment

* fix: remove contentTypes from CM index

* fix: yet another model import

* fix: mark feedback
2024-02-21 16:58:02 +01:00
Mark Kaylor
ffe3577903 v4.20.2 2024-02-21 14:40:41 +01:00
Rémi de Juvigny
c448c0402f
Merge branch 'v5/main' into v5/history 2024-02-21 10:35:41 +01:00
Josh
0aca28c03c Merge branch 'develop' into v5/main 2024-02-20 17:51:28 +00:00
markkaylor
55263f30cb
fix(history): fetch single-types (#19506) 2024-02-16 09:03:47 +01:00
Convly
9aa6e94b2f v4.20.1 2024-02-14 16:12:51 +01:00
Rémi de Juvigny
ee34c43cd5
Merge branch 'v5/main' into v5/history 2024-02-09 18:43:52 +01:00
markkaylor
acec060882
feat(content-history): add version header (#19462) 2024-02-09 17:17:02 +01:00
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
Rémi de Juvigny
01a8546760
Merge branch 'v5/main' into v5/history 2024-02-06 11:01:59 +01:00
Rémi de Juvigny
16c0c1a956
feat: list history versions in the history page sidebar (#19421)
* feat: add history versions endpoint

* fix: add author to response

* fix: types

* fix: yarn.lock

* fix: sort by most recent

* feat: display history versions

* chore: remove locale from VersionsList props

* chore: use buildValidGetParams

* chore: josh feedback

* chore: add locale util

* fix: not wrapped in act

* chore: move data fetching to page level

* chore: prepare VersionsDetail component

* fix: failing ci

* fix: empty view

* chore: mark feedback

* chore: use RelativeTime component

* chore: remove redundant loading check
2024-02-06 10:59:33 +01:00
Fernando Chavez
f6928f6864 Merge branch 'develop' of github.com:strapi/strapi into v5/merge2 2024-02-05 10:48:01 +01:00
Rémi de Juvigny
878a93dc44
feat: add history versions endpoint (#19386)
* feat: add history versions endpoint

* fix: add author to response

* fix: types

* fix: yarn.lock

* fix: sort by most recent

* fix: mark feedback

* chore: rework user sanitization
2024-02-02 10:09:11 +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
Rémi de Juvigny
d28f5a388b
Merge branch 'v5/main' into v5/history 2024-01-29 18:11:54 +01:00
Rémi de Juvigny
4e7378852a
feat(history): capture content types history (#19343)
* chore: init release action service

* feat: save history versions

* fix: ignore non api content types

* chore: move init history logic to service

* chore: feedback

* fix: save publish and unpublish actions

* fix: create action document ids

* chore: clarify comment
2024-01-29 18:10:58 +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
Rémi de Juvigny
c838be0c09
Merge branch 'v5/main' into v5/history 2024-01-26 12:18:05 +01:00
Josh
1ec998ff84 Merge branch 'develop' into v5/main 2024-01-26 08:31:31 +00:00
Rémi de Juvigny
e750c6a8cd
Merge branch 'v5/main' into v5/history 2024-01-25 18:51:38 +01: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
Rémi de Juvigny
be6cc4abab
feat(history): add history-version content type (#19316)
* feat: add history version content type

* chore: disable i18n and review workflows

* fix: i18n

* chore: use Schema.CollectionType
2024-01-25 11:04:49 +01:00
Rémi de Juvigny
df4560117a
Merge branch 'v5/main' into v5/history 2024-01-24 17:40:04 +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
Rémi de Juvigny
18b28ce2ee
chore: set up content history files (#19298)
* setup history server files

* add admin files

* chore: remove dedicated lifecycle files
2024-01-23 18:15:34 +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