34515 Commits

Author SHA1 Message Date
Convly
c8836c003b chore: update upgrade test 2024-03-13 12:01:58 +01:00
Convly
a8e77a1506 feat: add support for react files in codemods 2024-03-13 11:56:07 +01:00
Jamie Howard
579615d5d6
fix(admin): wip allow empty list view configuration (#19695) 2024-03-13 10:48:49 +00:00
Josh
a8498df926
feat(cm): reimplement relations for draft & publish (#19642)
* feat(content-manager): Rework findAvailable and findExisting (#19597)

* feat(content-manager): wip rework findAvailable and findExisting

* chore(strapi): simplify relations controller

* feat(content-manager): entity Id based find available

* feat(content-manager): entity Id based find existing

* fix(content-manager): build issues

* chore(content-manager): cleanup

* fix(content-manager): relations controllers unit tests

* fix(content-manager): improve error handling

* fix(content-manager): simplify findExisting relations logic

* fix(content-manager): clean up types

* fix(content-manager): extend available relation API tests

* fix(content-manager): pr feedback

* feat(content-manager): cover find existing test cases

* feat(content-manager): test that we can only find available relations in the same locale

* fix: wip fix unit tests

* chore(content-manager): pr feedback

* fix(content-manager): use db layer to find relations

fix(content-manager): failing relations tests

* fix(content-manager): find relations test

* fix(content-manager): build issues

* fix(content-manager): return latest status of relations in findAvailable (#19681)

* fix(content-manager): return latest status of relations in findAvailable

* fix(content-manager): share logic for findAvailable and findExisting

* fix(admin): relation tests

* fix(content-manager): clean up types

* fix(content-manager): support status for find exisiting

* fix(content-manager): add status and locale filters to subQuery

* fix(content-manager): ts front and skip relations unit tests

* fix(content-manager): request specific status or get latest using document-metadata

* chore(content-manager): use interface

* fix(content-manager): tidy up target relation subquery

* fix(content-manager): tidy up and skip TS for build issues

* fix(content-manager): return status when requested

* chore(content-manager): dont re type entity service response

* fix(content-manager): use document metadata getManyAvailableStatus

* chore(content-manager): remove mapAsync

* feat: implement relations in the cm (#19702)

* Fix: Relating i18n and non-i18n content types (#19731)

* chore: re-enable e2e relation tests

* fix: return undefined

---------

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
Co-authored-by: Jamie Howard <jamie.howard@strapi.io>
Co-authored-by: Marc-Roig <marc12info@gmail.com>
2024-03-13 10:25:47 +00:00
Fernando Chávez
298c6fc616
Merge pull request #19631 from strapi/feat/scheduling-with-multiple-instances
feat(content-releases): scheduling in multiple strapi instances
2024-03-13 09:51:29 +01:00
Alexandre Bodin
5ffb3c7100 chore: deprecate entity-service and delegate to document service 2024-03-12 21:02:33 +01:00
Marc Roig
020096d91b
Merge pull request #19671 from strapi/v5/disable-dp
* feat: disable dp

* feat: keep draftAndPublish flag to enable feature

* feat: type publish methods not enabled

* fix: unit tests

* feat: do not compute status on non D&P content types

* chore: refactor CM, CTB & i18n to accomodate option D&P (#19712)

* chore: re-implement option in ctb

* chore: refactor CM & i18n to accomodate option D&P

* test(unit): add test to ensure status is not in EditView header when we dont pass the prop

* chore: remove unused import

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>

---------

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>

* feat: relations no dp (#19682)

---------

Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
2024-03-12 19:01:32 +01:00
Marc-Roig
d30c4a72e5
fix: async import 2024-03-12 18:37:00 +01:00
Marc-Roig
423134764d
Merge branch 'v5/main' into v5/disable-dp 2024-03-12 18:32:44 +01:00
Marc Roig
f7d9269c38
feat: relations no dp (#19682) 2024-03-12 18:20:17 +01:00
Marc Roig
fae62f5d32
fix: remove regex validation when validating locale (#19713)
---------

Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
2024-03-12 17:30:53 +01:00
Derrick Mehaffy
d8a676a242 feat: Add keycloak native users-permissions provider 2024-03-12 08:40:34 -07:00
Convly
836a1eabf7 Merge branch 'v5/main' of github.com:strapi/strapi into v5/types/v2 2024-03-12 11:50:42 +01:00
Rémi de Juvigny
6ded4328d3
feat: add basic pagination to history frontend (#19729)
* feat: handle history version pagination params

* fix: ts build error

* chore: validate pagination params

* chore: pr feedback and test

* feat: show pagination ui

* fix: no history version selected

* chore: change default history page size to 20

* fix: don't redirect to old version

* fix: add comment
2024-03-12 10:53:02 +01:00
Fernando Chavez
6a9b4d7de8 Merge branch 'develop' of github.com:strapi/strapi into feat/scheduling-with-multiple-instances 2024-03-12 10:21:58 +01:00
Fernando Chavez
0c7338a03d apply marks feedback 2024-03-12 10:21:52 +01:00
Jean-Sébastien Herbaux
3f5329a884
chore: add todo to use typeguard instead of casting
Co-authored-by: Ben Irvin <ben.irvin@strapi.io>
2024-03-12 09:57:59 +01:00
Jean-Sébastien Herbaux
ed2c5e7152
fix: use the correct Strapi type
Co-authored-by: Ben Irvin <ben.irvin@strapi.io>
2024-03-12 09:57:32 +01:00
Jean-Sébastien Herbaux
c6ec4ef645
chore: extract complex generic to its own type
Co-authored-by: Ben Irvin <ben.irvin@strapi.io>
2024-03-12 09:45:31 +01:00
Josh
51e6287693
chore: refactor CM, CTB & i18n to accomodate option D&P (#19712)
* chore: re-implement option in ctb

* chore: refactor CM & i18n to accomodate option D&P

* test(unit): add test to ensure status is not in EditView header when we dont pass the prop

* chore: remove unused import

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>

---------

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
2024-03-11 15:16:41 +00:00
Alexandre BODIN
f4394eccff
Merge pull request #19733 from strapi/v5/i18n-cleanup-grapql
chore: cleanup i18n dead code
2024-03-11 16:12:36 +01:00
Alexandre Bodin
0f374b47b1 chore: cleanup i18n dead code 2024-03-11 15:05:27 +01:00
Convly
77476c7c86 fix: lint 2024-03-11 13:55:50 +01:00
Josh
af3c6ff7bd
chore(helper-plugin): deprecate MORE components (#19718) 2024-03-11 12:00:00 +00:00
Ben Irvin
ab2af1e539
fix(core): use module uid for config namespace instead of dot notation 2024-03-11 12:28:46 +01:00
Josh
0031649552
chore!: remove aliases from webpack & force installing deps (#19716)
* chore!: remove aliases from webpack

* chore!: force installing the dependencies we require to be at project level
2024-03-11 11:27:30 +00:00
Convly
011d316a00 Merge branch 'v5/main' into v5/types/v2 2024-03-11 12:15:50 +01:00
Alexandre BODIN
377d47860d
Merge pull request #19725 from strapi/v5/refactor-utils
chore: refactor utils
2024-03-11 09:01:38 +01:00
Alexandre Bodin
8d53207f8e chore: remove template configuration from utils 2024-03-09 13:08:41 +01:00
Alexandre BODIN
288332e352
Merge pull request #19685 from strapi/v5/graphql-schema-changes
chore: graphql v5 schema changes
2024-03-08 16:47:09 +01:00
markkaylor
a9d79bec77
fix(content-releases): exclude release content-types from graphql (#19703) 2024-03-08 14:39:10 +01:00
Alexandre Bodin
92e54aa49f chore: cleanups 2024-03-08 14:07:59 +01:00
Madhuri Sandbhor
7a700b4bbd
fix(content-releases): Limit min date selection to schedule a release (#19636)
* fix: min date considering selected timezone added for scheduling

* fix: e2e test updated for selecting always current date

* test: temp adding a small version of test to check its status

* fix: reverted some part of code to test the ci failure

* update: to setting time by 45 ahead of current clock

* fix: replaced concatenation symbol _ with & , as _ is also a part of timezone sometimes

* fix: escape character &
2024-03-08 13:59:12 +01:00
Alexandre Bodin
4b8513e6df chore: migration upload plugin 2024-03-08 10:59:36 +01:00
markkaylor
576ffbcdc9
feat(history): protect history page (#19689) 2024-03-08 09:33:44 +01:00
Alexandre Bodin
279eb4479d chore: migrate graphql plugin to v5 2024-03-07 21:12:36 +01:00
Josh
7e9e855598
fix: list-view delete action (#19711)
* fix: list-view delete action

* chore: better name `match`
2024-03-07 17:55:42 +00:00
Giulio Montagner
836f74517f
fix: add sizeInBytes on resized and optimized images (#19707) 2024-03-07 18:31:55 +01:00
Simone
79074de5e0
fix(content-releases): remove the error in the console when we delete a release (#19690)
* fix(content-releases): move the redirect before the delete to avoid the error with invalidateTags

* fix(content-releases): perform the invalidateTags only after 50ms

* fix(content-releases): manually invalidate tags after push instruction

* fix(content-releases): remove useless import

* fix(content-releases): use replace of useHistory and refactor the invalidateTags on delete to avoid the log error

Co-authored-by: Josh <joshuaellis@users.noreply.github.com>

* fix(content-releases): remove useDispatch

* fix(content-releases): remove empty lines

---------

Co-authored-by: Josh <joshuaellis@users.noreply.github.com>
2024-03-07 17:36:37 +01:00
Alexandre BODIN
6e2a4af322
Merge pull request #19700 from strapi/v5/i18n
chore: clean i18n code that is no longer necessary
2024-03-07 15:44:45 +01:00
Rémi de Juvigny
6408670a35
feat: handle history version pagination params (#19594)
* feat: handle history version pagination params

* fix: ts build error

* chore: validate pagination params

* chore: pr feedback and test
2024-03-07 14:43:37 +01:00
Fernando Chávez
eba987a172
Merge pull request #19706 from strapi/fix/enable-disable-i18n-releases
fix: change actions locale when changes on localization
2024-03-07 13:36:22 +01:00
Marc
d1272049f2 Merge branch 'v5/main' into v5/disable-dp 2024-03-07 13:12:03 +01:00
Ben Irvin
0ccda0d3ea
test: increase playwright timeouts again 2024-03-07 12:37:57 +01:00
Bassel Kanso
50a5b4d8bf
Merge pull request #19639 from strapi/fix/ctb-dynamiczone
Remove add another field button if it's dynamic zone from CTB
2024-03-07 13:19:28 +02:00
Fernando Chavez
c4821c375a fix: change actions locale when changes on localization 2024-03-07 11:47:51 +01:00
Alexandre Bodin
7dc045da66 chore: clean i18n code that is no longer necessary 2024-03-07 11:39:42 +01:00
Josh
741baba5b5
chore(helper-plugin)!: remove useCollator, useFilter & useCallbackRef (#19680) 2024-03-06 16:46:08 +00:00
Convly
26e9491a4c fix: incorrect type 2024-03-06 17:30:17 +01:00
Convly
8bfc40d6c0 Merge branch 'v5/main' into v5/types/v2 2024-03-06 16:52:01 +01:00