36133 Commits

Author SHA1 Message Date
Rémi de Juvigny
0827d33e8a
Merge branch 'v5/main' into v5/history 2024-01-30 15:45:02 +01:00
Simone
cae3a5a17d
chore(content-releases): show Banner reached limit max releases (#19276)
* chore(content-releases): add alert reached max limit pending releases

* chore(content-releases): use max pending releases number from config

* chore(content-releases): change limits string content

* chore(content-releases): unit test to check the limit banner

* chore(content-releases): fix ts error

* chore(content-releases): fix review comments

* chore(content-releases): refactor the solution to use useLicenseLimits

* chore(content-releases): fix review comments

* chore(content-releases): fix type error

* chore(content-releases): fix HeaderLayout wrong height because of subtitle empty on loading

* chore(content-releases): remove ReleaseLayout component

* chore(content-releases): remove useless translation

---------

Co-authored-by: Fernando Chavez <fernando.chavez@strapi.io>
2024-01-30 12:03:33 +01:00
Marc Roig
2d371a2d60
fix: nested on commit on rollback transactions (#19368) 2024-01-30 11:00:08 +01:00
Jean-Sébastien Herbaux
080f42e344
[breaking change] Remove the TOrigin Type Param for Attribute.UID (#19336) 2024-01-30 10:10:05 +01:00
Jean-Sébastien Herbaux
e6d38309d9
Merge pull request #19367 from strapi/v5/fix/type-gen-default-function 2024-01-30 09:52:54 +01:00
Convly
5eee0c2021 chore: add a test to make sure we don't access functions as default 2024-01-30 09:41:35 +01:00
Convly
d1cfc9b28f fix: don't process the default modifier when it's a function 2024-01-30 09:41:18 +01:00
Fernando Chávez
8832c2b924
chore(content-releases): optimistic updates for content releases actions (#19065)
* chore(content-releases): optimistic updates for content releases actions

* fix lint issues

* dont use lodash
2024-01-30 09:26:48 +01:00
Fernando Chávez
1df99d479d
docs(content-releases): add missing endpoints to backend docs (#19302)
* docs(content-releases): add missing endpoints to backend docs

* Update docs/docs/docs/01-core/content-releases/01-backend.md

Co-authored-by: markkaylor <mark.kaylor@strapi.io>

* Update docs/docs/docs/01-core/content-releases/01-backend.md

Co-authored-by: markkaylor <mark.kaylor@strapi.io>

* Update docs/docs/docs/01-core/content-releases/01-backend.md

Co-authored-by: markkaylor <mark.kaylor@strapi.io>

* apply marks feedback

---------

Co-authored-by: markkaylor <mark.kaylor@strapi.io>
2024-01-30 09:24:06 +01:00
Fernando Chávez
3844395bef
Merge pull request #19363 from strapi/chore/skipped-tests
chore(workflows): update unit_front skipped test to use node 20
2024-01-29 18:12:06 +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
Fernando Chavez
18ff71ca02 chore(workflows): update unit_front skipped test to use node 20 2024-01-29 15:49:36 +01:00
Bassel Kanso
e1dfd4d9f1
fix: Check component names against collectionTypeNames 2024-01-29 15:29:46 +01:00
Jean-Sébastien Herbaux
b1576b572e
Merge pull request #19335 from strapi/v5/enhancement/types/remove-attribute-relation-param 2024-01-29 14:02:26 +01:00
Serghei
e269729047
fix(admin): password should not be sent if it is an empty string (#19295)
* Fix password is sent when it was not changed

* Refactor a bit

* Try fix types

* Run prettier

* Update packages/core/admin/admin/src/pages/Settings/pages/Users/EditPage.tsx

* Use signle quotes instead

---------

Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
2024-01-29 10:58:54 +00:00
Nicolo Traini
403190c854 fix: add MariaDB support for unique indexes 2024-01-28 12:16:16 +01:00
Josh
6d59515520
fix(i18n): locale swapping with content-types & D&P disabled (#19296) 2024-01-26 15:11:01 +00:00
Jean-Sébastien Herbaux
1a290be57f
Merge pull request #19334 from strapi/v5/enhancement/types/relation-properties 2024-01-26 15:37:31 +01:00
Rémi de Juvigny
44ca354fb4
Merge branch 'v5/main' into v5/history 2024-01-26 12:28:46 +01:00
Alexandre BODIN
8bd5584d87
Merge pull request #19342 from strapi/v5/model-api
chore: add a simple model registry
2024-01-26 12:23:48 +01:00
Rémi de Juvigny
c838be0c09
Merge branch 'v5/main' into v5/history 2024-01-26 12:18:05 +01:00
Ben Irvin
3cff74bc26
docs: initialize configuration contributor docs 2024-01-26 12:17:53 +01:00
Alexandre Bodin
3bc82f6a77 chore: add a simple model registry 2024-01-26 11:31:53 +01:00
Jean-Sébastien Herbaux
d752a33d2d
Merge branch 'v5/main' into v5/enhancement/types/relation-properties 2024-01-26 11:12:24 +01:00
Josh
8c0ce63098 test(cm): hotfix AutoCloneFailureModal test 2024-01-26 10:01:54 +00:00
Josh
1ec998ff84 Merge branch 'develop' into v5/main 2024-01-26 08:31:31 +00:00
Ben Irvin
64423c997f
enhancement: restrict configuration filenames 2024-01-26 09:07:31 +01: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
Convly
bcfeeb5b11 fix: modify generator tests to reflect latest changes on Attribute.Relation 2024-01-25 17:40:04 +01:00
Convly
16ac13f00a enhancement: fix type generation for Attribute.Relation by removing uid 2024-01-25 17:30:21 +01:00
Convly
758843ffd1 enhancement: remove the TOrigin type parameter from Attribute.Relation 2024-01-25 17:29:07 +01:00
Convly
eabab34cca enhancement: improve type inference for subtypes in Attribute.Relation properties 2024-01-25 17:11:17 +01:00
Alexandre BODIN
534b47a170
Merge pull request #19324 from strapi/v5/lift-component-logic-outside-db
chore: lift compontent logic out of the db and start exposing models
2024-01-25 13:50:31 +01:00
Marc Roig
140438662e
Merge pull request #19326 from strapi/v5/skip-cli-flakey-test
fix: skip flakey test
2024-01-25 13:33:52 +01:00
Marc-Roig
18e2c95534
fix: skip flakey test 2024-01-25 13:21:15 +01:00
Alexandre Bodin
9d5602124c chore: life compontent logic out of the db and start exposing models 2024-01-25 13:13:01 +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
ea0fc2822a
feat(cm): set up history page (#19309)
* feat(cm): set up history page

* feat: add injected component

* fix: use React.useId

* fix: typo

Co-authored-by: markkaylor <mark.kaylor@strapi.io>

---------

Co-authored-by: markkaylor <mark.kaylor@strapi.io>
2024-01-25 10:36:54 +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 v4.19.0 2024-01-24 16:00:22 +01:00
Jean-Sébastien Herbaux
ec07377544
Merge pull request #19313 from strapi/fix/exclude-releases-dts
fix(dts): exclude content-releases
2024-01-24 15:33:00 +01:00
Mark Kaylor
83ccc02f01 fix(dts): exclude content-releases 2024-01-24 15:31:21 +01:00
Alexandre BODIN
434c4b303d
Merge pull request #19307 from strapi/v5/cleanup-utils
chore: cleanup core utils org
2024-01-24 15:04:55 +01:00
Jean-Sébastien Herbaux
e788a1076f
Merge pull request #19264 from strapi/chore/remove-s3-creds-transform 2024-01-24 10:53:51 +01:00
Bassel Kanso
88184914f3
Merge pull request #19227 from strapi/fix/relations-read-rbac
Sanitize relation read query
2024-01-24 11:03:55 +02:00
Alexandre Bodin
e5584f14bc chore: cleanup core utils org 2024-01-23 19:40:35 +01:00