2499 Commits

Author SHA1 Message Date
Ben Irvin
44f19b3d2f
chore: fixes for flaky tests 2024-02-02 10:49:02 +01:00
markkaylor
8e78b0c909
Merge pull request #19397 from strapi/releases/4.19.1
v4.19.1
2024-01-31 15:44:40 +01:00
Mark Kaylor
34f7e875cd v4.19.1 2024-01-31 14:41:53 +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
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
6d59515520
fix(i18n): locale swapping with content-types & D&P disabled (#19296) 2024-01-26 15:11:01 +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
beec786491 v4.19.0 2024-01-24 16:00:22 +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
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
Ben Irvin
75aa4ee9d4
Merge branch 'v5/main' into feat/default-allowed-fields-to-empty 2024-01-18 15:54:38 +01:00
Alexandre Bodin
aacf182ae4 chore: use koa-body typings not koa-bodyparser 2024-01-17 16:53:52 +01:00
Ben Irvin
cb94653642 chore: split test 2024-01-17 09:24:27 +01:00
Ben Irvin
b359228d79
Merge branch 'v5/main' into feat/default-allowed-fields-to-empty 2024-01-17 09:16:54 +01:00
Josh
316470cdf8 Merge branch 'develop' into v5/main 2024-01-16 17:46:26 +00:00
Ben Irvin
17f8ef0d9b fix: tests and logging 2024-01-16 18:22:14 +01:00
Ben Irvin
8263926b47 feat: register.allowedFields defaults to empty array 2024-01-16 18:14:32 +01: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
Josh
687ad7e959
fix(cm): manage when we're creating entries derivatively in the CM (#19209)
* fix(cm): manage when we're creating entries derivatively in the CM

* fix(cm): pass valid get params to API

* fix(cm): single-types onPut call requires params

* fix(i18n): cm locale picker status badges
2024-01-15 15:51:07 +00: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
Josh
cc1043c512
feat: update to react-router-dom@6 (#19184) 2024-01-15 11:13:36 +00:00
Marc Roig
74fdc42f98
Merge branch 'v5/main' into v5/extend-locale-attr-to-all-ct 2024-01-11 16:28:44 +01: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
Marc-Roig
856dfd8ee5
fix: ignore locale field in api tests 2024-01-10 11:01:21 +01:00
Marc Roig
af3e1c0492
Merge branch 'v5/main' into v5/extend-locale-attr-to-all-ct 2024-01-10 10:20:55 +01:00
Bassel Kanso
f7b9b47085
fix(graphql): revert graphql-upload library to non breaking change version (#19182) 2024-01-09 14:37:29 +00:00
Josh
8aac0893a9
chore: update ds 1.14.1 (#19179) 2024-01-09 11:40:22 +00:00
Fred Cox
aa65f33dac fix(plugin-graphql): allow to use GET queries for graphql
GET queries are often advantagous for caching, cdns, etc
This removes a line that wasnt required, that blocked GET
queries from being authenticated on /graphql
2024-01-08 13:14:15 +00:00
Ben Irvin
7d13a12c99
feat: Upgrade Tool
* feat: upgrade tool refactor for updated specs (v5)
* chore: format code (prettier)
* chore: remove debug comments
* feat: upgrade the strapi dependencies in project's package.json
* feat: install dependencies during the upgrade process
* chore: fix lint issue
* chore: rephrase requirement sentence's sentiment
* feat: add a --yes option for the upgrade CLI
* enh: make properties readonly to avoid mutations
* chore: adding better logs to the upgrade CLI
* chore: remove unused import
* feat: add minor and patch commands
* fix: use major and minor instead of premajor and preminor
* fix: re-add type casting
* fix: make major requirements required
* chore: revert sentiment update on GIT_CLEAN requirement
* fix: make promisify working by mocking the entire file-system
* fix: yarn.lock update
* feat: Select and run codemods only (#19083)
* chore: add unit tests for upgrader tasks
* fix: rename tests
* chore: Update packages/utils/upgrade/src/tasks/__tests__/upgrade.test.ts
* chore: Add unit tests for upgrade tool (#19056)
* chore: move example codemods (#19156)
* chore: fix yarn.lock
* fix: sync glob versions
* chore: add comment
* chore: update docs

---------

Co-authored-by: Convly <jean-sebastien.herbaux@epitech.eu>
Co-authored-by: Bassel Kanso <basselkanso82@gmail.com>
Co-authored-by: Christian <christian.capeans.perez@strapi.io>
Co-authored-by: Christian Capeans <christiancp100@gmail.com>
2024-01-08 11:26:27 +01:00
Josh
4cd75b2523 Merge branch 'develop' into v5/main 2024-01-04 08:32:19 +00:00
Rémi de Juvigny
762abbf7f8
chore(sentry): convert to typescript (#19128)
* chore(sentry): convert to typescript

* qa fixes

* josh feedback
2024-01-03 13:51:22 +01:00
Josh
966723fe56
chore: update ds to 1.14.0 (#19138) 2024-01-03 10:06:15 +00:00
Josh
ddbb55f2eb Merge branch 'main' into releases/4.17.0 2024-01-02 13:41:57 +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
Josh
bdcd983c3d
fix(tooling): use nx to build & clean (#19084)
* remove pre-publish scripts

* fix: use nx to clean & build
2023-12-19 13:21:33 +00:00
Marc-Roig
905e8b770c
feat: extend i18n attributes to every content type 2023-12-14 15:29:06 +01:00
Josh
c8f63ff188
refactor(cm): remove collection-type form wrappers (#19036)
* refactor(cm): remove collection-type form wrappers

* fix: bad import in DeleteLink

* test(e2e): tweak url we expect to wait for
2023-12-12 14:22:47 +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
josephemswiler
627332f8d0 Inline eslint import/extensions disable 2023-12-08 10:32:03 -06:00
Josh
626dc81cda Merge branch 'develop' into v5/main 2023-12-08 16:31:21 +00:00
Jean-Sébastien Herbaux
1b0e310d06
Merge branch 'main' into chore/bump-graphql-upload-15.0.2 2023-12-08 15:26:48 +01:00