33914 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
Alexandre BODIN
bbc6a32aca
Merge pull request #19273 from strapi/v5/clean-config
chore: setup configuration in one place only
2024-01-23 17:09:58 +01:00
Alexandre BODIN
a6ff2b591f
Merge pull request #19303 from strapi/v5/content-type-refactors
chore: simplify content-type logic
2024-01-23 15:46:47 +01:00
Alexandre Bodin
af3efc973b chore: simplify content-type logic 2024-01-23 14:37:00 +01:00
Alexandre Bodin
41da5d47c9 chore: setup configuration in one place only 2024-01-23 14:36:43 +01:00
Alexandre Bodin
39482187a9 Merge branch 'v5/main' of github.com:strapi/strapi into v5/main 2024-01-23 14:36:29 +01:00
Alexandre Bodin
1ee1b79dcc chore: update snapshot 2024-01-23 14:36:22 +01:00
Josh
f379a8cd7a
chore: make vite the default bundler for the admin (#19283) 2024-01-23 11:21:20 +00:00
Alexandre Bodin
778e8fb175 chore: update api test snapshot 2024-01-23 11:32:03 +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
Josh
b1ba9b78df fix(releases): remove D&P checker 2024-01-22 14:21:43 +00:00
Bassel Kanso
07488ddc7c
Merge pull request #19250 from strapi/chore/refactor-env-to-config
enhancement: refactor env-only values into configuration
2024-01-22 16:00:41 +02:00
Jean-Sébastien Herbaux
2cfb5b7816
Merge pull request #19236 from strapi/feat/default-allowed-fields-to-empty 2024-01-22 14:56:05 +01:00
Josh
79aef88064 Merge branch 'develop' into v5/main 2024-01-22 13:39:48 +00: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