716 Commits

Author SHA1 Message Date
Bassel Kanso
e4b2a92811
Merge pull request #20172 from strapi/v5/remove-root-level-nested-params
Remove root level nested params
2024-05-28 10:56:21 +03:00
Bassel Kanso
4fe3c1b4c4 fix: populate syntax in media test
Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
2024-05-27 16:40:15 +03:00
Convly
cffa227999 v5.0.0-beta.8 2024-05-22 17:53:58 +02:00
Bassel Kanso
ff5a4cf03b fix: lint issue 2024-05-22 13:45:21 +03:00
Bassel Kanso
a31bbe7211 Merge branch 'v5/main' into v5/remove-root-level-nested-params 2024-05-22 13:13:56 +03:00
Bassel Kanso
8dea6a6594 fix: use fragment populate in countDraftRelations
Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
2024-05-22 13:10:58 +03:00
Bassel Kanso
58ab115ac3 fix: update and remove tests that are using deprectated populate api for DZ 2024-05-20 11:27:56 +03:00
Jamie Howard
8c5105d949
Publish multiple locales (#20258)
* fix: date comparison

* feat(core): document service publish multiple locales (#20046)

* feat(core): document service (un)publish multiple locales

* fix(core): cleanup locale param types

* feat(content-manager): wip - multiple locale support

* Count draft relations across locales (#20116)

* feat(content-manager): publish multiple locales from CM route

* feat(core): multiple locales in document service discard draft

* feat(content-manager): use bulkpublish for locale publish

* feat(content-manager): use query from bulkpublish locales

* feat(content-manager): publishMany

* feat(content-manager): api test for bulk locale + document publish

* chore(content-manager): fix for build

* fix(core): avoid * in locale data

* chore(content-manager): pr amends and validation improvement

* feat(content-manager): use transaction in document manager publish many

* feat(core): throw when a non string locale is provided and not supported

* fix(core): doc service find many

* chore: clean up

* feat(content-manager): Select fields that require validation in availablelocales (#20156)

* feat(content-manager): wip - select more fields in availablelocales

* feat(content-manager): wip available locales using entity traversal

* feat(content-manager): wip test available locales returns fields with validation

* feat(content-manager): test available locales returns fields with validation

* fix(content-manager): ensure sensitive info not exposed in available statuses

* fix(content-manager): sanitize document metadata available status

* fix(content-manager): sanitize document metadata available status at controller level

* fix(content-manager): populate only for validatable fields

* chore: clean up

* chore: clean up

* chore: clean up

* fix(content-manager): build issues

* fix(content-manager): allow null locales

* fix(content-manager): history service (#20185)

* fix(content-manager): history service

* chore(content-manager): clean up

* fix: pr feedback

* chore: update actions deps

* chore: update utility deps

* chore: upgrade sentry

* chore: upgrade graphql-tools

* fix: http-errors ugprade

* chore: add fs-extra types where needed

* docs(typescript): type system cheat sheet

* chore!: remove deprecated verbose option from ts:generate-types

* chore: clean up

fix(content-manager) correctly count bulk publish results

* fix(content-manager): pr feedback and test improvements

* feat(i18n): bulk locale publish modal in CM edit view (#20069)

* feat(i18n): wip bulk locale publish modal

* fix(i18n): wip - fe bulk locale publish

* feat(content-manager): multi locale publish, integrate with backend and add basic e2e test

* feat(i18n): wip - display validation errors in bulk locale modal

* chore: clean up

* chore(i18n): design system changes

* feat(i18n): display correct status after publish and clean up error messaging

* feat(i18n): access onclose from modal body

* fix(i18n): selected locale change

* fix(i18n): locale table state

* fix(i18n): edit view e2e test

* chore(content-manager): validation tweak wip

* feat(i18n): cover validation cases in i18n e2e tests

* chore: clean up

* fix(i18n): edit view more document actions disabled state

* chore: feedback

* fix(i18n): send all params to publish many

* fix(i18n): place bulk locale publish 3rd in array

* fix(content-manager): validation error extraction

* fix(content-manager): pr feedback

* fix: build

* chore(content-manager): simplify exports

* chore(i18n): revert package

---------

Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
Co-authored-by: Ben Irvin <ben.irvin@strapi.io>

* fix(i18n): disable publish button after bulk locale publish

* fix(content-manager): ce e2e fix

* chore: typography

* fix(i18n): e2e edit view test

* fix: wip date comparison

* fix: wip date comparison

* fix(content-manager): simplify date comparison

* fix: clean up metadata api test

* chore: update api tests

* fix: draft versions must be ahead of published to be considered modified

* fix: published modified calculation

* fix: clean up

* fix: simplify draft and publish comparison

* chore: clean up

* fix: flaky fe tests

* fix: pr feedback

* fix(i18n): error message extraction in bulk locale modal

* chore: remove old publish action

* chore: pr feedback

* chore: refactor error types & validation messages

* chore: use anchor link for locale changes

* chore: fix releases

* fix: clean up

* chore: snapshot

---------

Co-authored-by: Marc-Roig <marc12info@gmail.com>
Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
Co-authored-by: Ben Irvin <ben.irvin@strapi.io>
Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
2024-05-10 18:20:35 +01:00
Marc-Roig
a86c75effa
v5.0.0-beta.7 2024-05-08 16:33:08 +02:00
Ben Irvin
7a6d9a2b0e
enhancement!: validate input in content API create and update controllers
Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
2024-05-07 11:22:22 +02:00
Bassel Kanso
0e5c0a66e7
Merge branch 'v5/main' into v5/remove-root-level-nested-params 2024-05-06 23:15:32 +03:00
Marc Roig
8e9b152292
fix: document service find many pagination (#20178) 2024-05-06 14:52:48 +02:00
Marc-Roig
6c76c1b8c2
v5.0.0-beta.6 2024-05-02 16:01:39 +02:00
Alexandre Bodin
06f017a9dc fix: http-errors ugprade 2024-04-26 09:32:57 +02:00
Alexandre Bodin
89b8013624 chore: update utility deps 2024-04-26 09:32:10 +02:00
Bassel Kanso
b0ab90c6a1 chore: remove support for legacy dz params in query-populate 2024-04-25 13:52:43 +03:00
Mark Kaylor
2aa7d7fb41 v5.0.0-beta.5 2024-04-24 15:52:25 +02:00
Bassel Kanso
ab542129d2 fix: removed root-level nested params
Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
2024-04-22 15:03:33 +03:00
Convly
a9b61589c8 chore: update dependencies to 5.0.0-beta.4 2024-04-17 15:43:36 +02:00
Josh
bc71a96d76
chore(pack-up): remove from monorepo (v5) (#20092)
* chore(pack-up): remove from repo

* chore: type fixes

* chore: add suggestions to tighten types

Co-authored-by: Ben Irvin <ben.irvin@strapi.io>

---------

Co-authored-by: Ben Irvin <ben.irvin@strapi.io>
2024-04-12 13:39:49 +01:00
Alexandre Bodin
cff608ed92 v5.0.0-beta.3 2024-04-10 19:09:43 +02:00
Alexandre Bodin
bf35cde68f chore: update koa-body 2024-04-03 22:48:48 +02:00
Alexandre Bodin
ae6067744d chore: update koa libs 2024-04-03 20:43:34 +02:00
Alexandre Bodin
13a7fe96d1 v5.0.0-beta.2 2024-04-03 17:35:15 +02:00
Jamie Howard
43b9e91c67
feat(i18n): non localized fields (#19720)
* feat(i18n): wip non localized fields

* feat(i18n): use document service middleware for non localized fields

* feat(i18n): support component data in non localized sync

* chore(i18n): cleanup and fix unit tests

* fix(i18n): reintroduce permissions sync

* test(i18n): api test for non localized fields

* feat(i18n): add earth icon to symbolise localised fields (#19774)

* test(i18n): cover publish, unpublish, update and create in api tests

* feat(i18n): ensure non localized fields are populated

* fix(i18n): get right id

* fix(content-manager): doc metadata in non d&p cases

* fix(conent-manager): i18n detection

* fix: pr feedback

* fix(i18n): handle non localized components

* feat(i18n): sync non localized components

* fix(i18n): wip unit test

* feat(i18n): handle relations within non localized components

* feat(i18n): reintroduce FE and fix for repeatables

* chore: lockfile

* chore(i18n): cleanup

* chore(i18n): cleanup

* feat(i18n): match relation locales to source entry during transformation

* fix(i18n): unit tests

* fix(i18n): getNonLocalizedAttributes

* chore(i18n): fix unit tests

* chore(i18n): pr feedback

* chore(i18n): pr feedback

* fix(i18n): unit tests

---------

Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
2024-04-02 10:08:10 +01:00
Ben Irvin
b003dee48e
chore: upgrade prettier to 3.2.5 2024-03-29 14:39:52 +01:00
Alexandre BODIN
b862056abd
Merge pull request #19917 from strapi/v5/validator
chore: init zod usage
2024-03-27 21:30:45 +01:00
Marc-Roig
a45a0cfabf chore: release 5.0.0-beta.1
Co-Authored-By: Marc Roig <20578351+Marc-Roig@users.noreply.github.com>
2024-03-27 16:22:20 +00:00
Alexandre Bodin
08b52e8741 chore: init zod usage 2024-03-25 21:01:38 +01:00
Alexandre Bodin
3f6a8109ea chore: introduce query-params service to remove strapi.global dep in utils 2024-03-25 14:03:32 +01:00
Alexandre BODIN
5f5cb554de
Merge pull request #19906 from strapi/v5/traverse-get-model
chore: remove strapi global from traversal utils
2024-03-25 10:44:06 +01:00
Alexandre Bodin
fed8ac1cb7 chore: remove usage of strapi global in traverse 2024-03-25 08:52:10 +01:00
Alexandre Bodin
78d30d2e60 chore: reintegrate policy logic into core 2024-03-25 08:51:43 +01:00
Alexandre Bodin
e68afb0e1e chore: inverse control of contentAPI sanitize & validate 2024-03-21 22:26:41 +01:00
Alexandre Bodin
a9db1e42c6 chore: migrate upload plugin to typescript 2024-03-21 09:02:17 +01:00
Alexandre Bodin
f8ef062eb5 Merge branch 'releases/5.0.0-beta.0' into v5/main 2024-03-20 16:05:47 +01:00
Alexandre Bodin
4b2e592f77 v5.0.0-beta.0 2024-03-20 16:00:06 +01:00
Alexandre Bodin
894c8f40f3 v5.0.0-alpha.5 2024-03-20 15:54:53 +01:00
Alexandre Bodin
d536f44a9a v5.0.0-alpha.4 2024-03-20 15:44:45 +01:00
Alexandre Bodin
24b9de6705 Merge branch 'releases/v5-beta' into v5/main 2024-03-20 15:19:07 +01:00
Alexandre Bodin
1c6cf2ae9f v5.0.0-alpha.3 2024-03-20 15:08:03 +01:00
Convly
670c292117 Merge branch 'v5/main' of github.com:strapi/strapi into v5/types/v2 2024-03-20 14:22:44 +01:00
Convly
d671c5698d Merge branch 'v5/main' of github.com:strapi/strapi into v5/types/v2 2024-03-20 08:51:37 +01:00
Alexandre Bodin
7f3ccd6b24 v5.0.0-alpha.2 2024-03-19 23:16:28 +01:00
Alexandre Bodin
00d0f90934 5.0.0-alpha.1 2024-03-19 23:12:32 +01:00
Alexandre Bodin
db34007a2f release: 5.0.0-alpha.0 2024-03-19 10:34:28 +01:00
Josh
493e2923f5
chore(deps): update some fe deps (#19810)
* chore(deps): update some

* chore: fix tests from deps updates
2024-03-18 17:27:27 +00:00
Convly
a328275adb Merge branch 'v5/main' of github.com:strapi/strapi into v5/types/v2 2024-03-18 11:38:17 +01:00
Christian Capeans
8cb962b8dd Merge branch 'v5/main' of github.com:strapi/strapi into v5/types/v2 2024-03-18 11:11:46 +01:00
Josh
7dc4206d08 Merge branch 'develop' into v5/main 2024-03-15 16:11:49 +00:00