14487 Commits

Author SHA1 Message Date
Marc Roig
76447298a8
feat: migrate document published entries from v4 (#19813)
* chore: add document-id migration

* feat: migration file

* chore: change migration name

* feat: document draft creation

* fix: use knex to query

* feat: discard drafts

* fix: use database identifiers utils

* fix: leave rename identifiers migration name as it was before

* chore: revert database config

* feat: simplify migration document ids query

* update with subquery

* chore: comment todo on create draft migration

* chore: remove draft creation migration

* feat: register internal migrations dynamically (#20002)

* feat: register internal migrations dynamically

* chore: load umzug lazily

* chore: lazy load umzugProvider migrations

* feat: register internal migrations dynamically (#20006)

* feat: register internal migrations dynamically

* chore: load umzug lazily

* chore: lazy load umzugProvider migrations

* feat: discard draft migration from strapi core

* fix: unit test

* fix: make discardDraft inline

* fix: prettier

* fix: remove unused code

* fix: ignore tables that do not exist

* fix: build

* chore: remove comment

---------

Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
2024-04-17 13:41:44 +02:00
Ben Irvin
b9e5b3a2d3
enhancement(ctb)!: reserve keywords needed for Strapi 5 features 2024-04-17 12:18:38 +02:00
Rémi de Juvigny
d23c1d5b0e
chore: remove history future flag (#20131) 2024-04-17 11:20:32 +02:00
markkaylor
b2d2f81797
feat: add confirmation modal when restoring history version (#20106)
Co-authored-by: Rémi de Juvigny <8087692+remidej@users.noreply.github.com>
2024-04-17 10:13:36 +02:00
Bassel Kanso
b8988bc360 chore: remove logs 2024-04-17 10:12:20 +03:00
Bassel Kanso
7cf2162702 Merge branch 'v5/main' into v5/replace-axios 2024-04-17 09:26:51 +03:00
Bassel Kanso
7138f1a37c chore: creating tests for new fetchClient 2024-04-17 09:21:10 +03:00
markkaylor
80e532931b
chore: merge develop into v5/main (#20126) 2024-04-16 18:06:25 +02:00
Christian
e2d1ee0951
Merge pull request #20128 from strapi/fix/sso-frontend-tests
Fix SSO Frontend Test
2024-04-16 14:09:31 +02:00
Rémi de Juvigny
abaeef8b3c
fix: history design details (#20122) 2024-04-16 08:04:19 -04:00
Christian Capeans
b54d4d0617 fix: wrong mock 2024-04-16 12:44:15 +02:00
markkaylor
b4f819aae7
feat(history): restore version (#20102) 2024-04-16 09:18:33 +02:00
DMehaffy
dd46ee6a7c
Merge branch 'develop' into fix/cors-5 2024-04-15 14:07:38 -07:00
Bassel Kanso
1dd94812c4 Merge branch 'v5/main' into v5/replace-axios 2024-04-15 20:00:47 +03:00
Bassel Kanso
f41be330aa chore: remove axios from packages and edit some tests 2024-04-15 19:47:36 +03:00
Christian
b429778d47
Merge branch 'v5/main' into chore/remove-js-cookie 2024-04-15 14:43:24 +02:00
Ben Irvin
18019758d6
enhancement!: create sends 201 status code 2024-04-15 14:03:47 +02:00
markkaylor
6f96608a7c
chore(deps): bump @strapi/design-system from 1.16.0 to 1.18.0 (#20115) 2024-04-15 12:05:46 +02:00
Rémi de Juvigny
63d7006f9e
enhancement: add history license check (#20099)
* enhancement: add history license check

* fix: add history to default license data
2024-04-12 13:07:16 -04:00
Christian
20fecc8025
Merge pull request #20105 from strapi/fix/sso-can-read-prop
Use the right name in useRBAC
2024-04-12 16:45:32 +02:00
Christian Capeans
17f2c8845c fix: use right name in useRBAC 2024-04-12 16:40:17 +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
Marc Roig
01a203b446
feat: move rw to plugin (#19937)
* chore: initiate moving CM to own package

* chore: refactor to handle routes

* chore: init review-workflows-package

* chore: fix build

* chore: refactor review-workflows fe

* chore: fix unit suite

* feat: move rw to plugin

* fix: build

* fix: start up

* chore: clean things up

* fix: peer dependencies

* chore(wip): refactor rw fe

* chore: re-add admin ui

* chore: fix tests & linter

* chore: re-implement drag layer

* fix: type

* feat: review-workflow middlewares

* chore: send params to CM endpoints

* fix: use layout options as well, let that have the final say, just incase

* feat: use doc id and locale for entity assignee and stage

* fix: api tests

* fix: cm updates when we update fields

* chore: cleanup edit-view e2e tests

* fix: build

* fix: useDocumentLayout for RW options

* test: fix fe tests

* fix: ts

* test(e2e): add review-workflow e2e tests

* chore: fix bad import for cli tests

* chore: delete old e2e data

* chore: import EVERYTHING for DTS

* chore: update dataset

* fix: e2e script

* fix: stage permissions

* chore: remove duplicate settings menu link

* fix: workflow middleware

* chore: change permission

* test(e2e): fix RW tests

* chore: ignore dynamic attributes in DTS

Co-Authored-By: Jean-Sébastien Herbaux <25851739+Convly@users.noreply.github.com>

* chore: make settings rw e2e run on EE only

* test(e2e): fix them all pls

* fix: admin stage transition uid name

* chore: fix firefox e2e ce tests

---------

Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
Co-authored-by: Jean-Sébastien Herbaux <25851739+Convly@users.noreply.github.com>
2024-04-12 10:58:38 +02:00
Josh
0ddbe58210
chore(pack-up): remove from monorepo (#20082)
* chore(pack-up): remove from monorepo

* chore: declare util dep of helper-plugin
2024-04-12 09:45:14 +01:00
Christian
8b224c9917
Merge branch 'v5/main' into chore/remove-js-cookie 2024-04-12 10:44:16 +02:00
Christian
0d82832303
Merge pull request #20090 from strapi/fix/sso-login
Fix SSO Routes
2024-04-12 10:02:55 +02:00
Alexandre Bodin
fcf6fc7ba3 chore: separate doc & entries logic more 2024-04-11 17:48:05 +02:00
Alexandre Bodin
2941309394 fix: typings 2024-04-11 17:47:55 +02:00
Jean-Sébastien Herbaux
c468961916
docs: comment type-system types (#20071) 2024-04-11 15:31:00 +02:00
Christian Capeans
ee219fb8dc fix: switch order of auth routes for sso 2024-04-11 14:49:46 +02:00
Christian
c74b960214
Merge branch 'v5/main' into chore/refactor-link-button-to-v2 2024-04-11 10:05:06 +02:00
Alexandre Bodin
24613c1947 chore: support arrays 2024-04-11 09:35:39 +02:00
Alexandre Bodin
1ae222a9c3 fix: cors v5 2024-04-11 09:35:39 +02:00
Alexandre Bodin
cff608ed92 v5.0.0-beta.3 2024-04-10 19:09:43 +02:00
Alexandre Bodin
330b5b968a fix: i18N non localized sync issue due to doc service changes 2024-04-10 19:04:51 +02:00
markkaylor
a1b6aeee27
fix(history): update relations display (#20081) 2024-04-10 17:27:04 +02:00
Marc Roig
450055e5af
release: 4.23.0 to develop (#20078)
* feat(releases): add release column to CM list view (#19926)

* draft: bulk release injection zone added

* chore: implement cm-api to strapi-app & description component renderer

* feat: bulk delete action

* Revert "draft: bulk release injection zone added"

This reverts commit 2d9e8872e847327888d988009fa16f91b5f1c777.

* feat: bulk unpublish action added

* feat: default bulk publish action

* fix: variable renaming

* fix: on close of modal updated and refetched list on publish action completion

* fix: removed IZ publish and unpublish modals, e2e tests added for default bulk actions

* tests: e2e updated for publish button disabled state

* fix: bug fixed on publishing with already published entries

* fix: e2e tests

* fix: reverted IZ components

* feat: bulk release action added

* update: check right permissions to show add to release button

* update: bulk actions modal updated to accept content(modalbody+modalfooter), publish action and release actions updated accordingly

* fix: types

* test: bulk release e2e test added

* fix: e2e test

* fix: test case timeout added, notification component updated to not saved message

* feat: inject release column in LV

* fix: minor changes

* fix: remove commented code

* fix: upgraded styled components to fix the error: defaultProps circularly references

* feat(content-releases): add to be released in column in list view

* fix: types and 0 releases entry

* fix: invalidate entries in release after bulk release or on deleting a release action

* tests: e2e tests added for release column

* tests: e2e updated to create new release and then add bulk release

* fix: minor changes, test fixed

* fix: delete release action invalite tag added back

* fix: e2e test

* apply josh feedback|

---------

Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
Co-authored-by: Fernando Chavez <fernando.chavez@strapi.io>

* chore(deps): revert sharp to 0.32.6 (#20066)

* fix: fix boot issue when removing i18n from an app

* chore: get i18n service outside the for loop

* chore: remove empty spaces

* v4.23.0

---------

Co-authored-by: Madhuri Sandbhor <madhurisandbhor@gmail.com>
Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
Co-authored-by: Fernando Chavez <fernando.chavez@strapi.io>
Co-authored-by: markkaylor <mark.kaylor@strapi.io>
Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
2024-04-10 17:08:53 +02:00
markkaylor
0a031cc777
feat(history): display new and unknown fields (#20039) 2024-04-10 14:51:10 +02:00
Christian Capeans
e47cce9d55 fix: use forwardedAs instead of as prop 2024-04-10 11:03:07 +02:00
Christian Capeans
0269c018d2 fix: use forwardedAs instead of as prop 2024-04-10 11:02:05 +02:00
Christian Capeans
6bf0ee33b0 fix: link dependency coming from react-router-dom 2024-04-10 10:59:56 +02:00
Jean-Sébastien Herbaux
e0bb8ea8ce
Merge branch 'v5/main' into v5/tsdoc/ts-doc-as-markdown 2024-04-09 16:26:45 +02:00
Bassel Kanso
9e8dcb640e Merge branch 'v5/main' into v5/replace-axios 2024-04-09 15:07:12 +03:00
Simone
4dbfc9c022
Hide Locale column and grouping option when i18n plugin is not installed (#19358)
* fix(content-releases): create an hook to check if the i18n plugin is installed

* fix(content-releases): refactor code to use StrapiApp getPlugin

* fix(content-releases): hide locale if i18n is not installed

* fix(content-releases): move the createHook in the content-release plugin
2024-04-08 21:43:09 +02:00
Bassel Kanso
7ca9df7f9d chore: error handling for fetch 2024-04-08 21:43:37 +03:00
Alexandre Bodin
43a32432fc fix: v4-v5 conflict in polymorphic relations 2024-04-08 19:27:59 +02:00
Josh
f31eabd7d2
feat(admin): rbac middleware (#19949)
* feat: rbac middleware

* chore: make the entire function curried
2024-04-08 16:31:07 +01:00
Alexandre Bodin
cbc0656f5f fix: doc service middleware args 2024-04-08 17:15:50 +02:00
Bassel Kanso
65df420943 chore: replacing axios with native fetch 2024-04-08 17:31:38 +03:00
Josh
e188aac623 Merge branch 'develop' into v5/main 2024-04-08 15:21:08 +01:00