81 Commits

Author SHA1 Message Date
Marc Roig
521cd3f8cd
fix: improve CM modified date comparison (#19898)
* fix: date comparison

* fix(content-manager): simplify date comparison

* fix: clean up metadata api test

* 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

---------

Co-authored-by: Jamie Howard <jamie.howard@strapi.io>
2024-05-09 19:19:18 +02:00
Fernando Chávez
3fdf1a575b
enhancement: migrate bulk publish & unpublish to v5 (#20184)
* chore: migrate bulk publish & unpublish to v5

* chore: change findLocales type to accept arrays

* chore: fix lint error

* chore: migrate bulkDelete to v5 (#20161)

* chore: migrate bulkDelete to v5

* chore: change findLocales type to accept strings array

* fix: docs prettier styles

* chore: remove console.log

* enhancement: migrate countManyDraftRelations to v5

* only publish not published entries

* use strapi query directly on bulkPublish

* fix api tests for bulk publish

* apply jamie feedback
2024-05-07 16:58:56 +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
01187db536
feat: discard drafts when enabling draft and publish on ct (#20257)
* feat: discard drafts when enabling draft and publish on ct

* fix: migration tests
2024-05-06 11:42:41 +02:00
markkaylor
e60ec18292
chore(history): refactor restore and add tests for relations (#20179) 2024-05-06 10:54:07 +02:00
Marc Roig
823c409265
feat: run rbac api tests (#20252)
* feat: run rbac condition tests

* fix: omit documentId when creating an article
2024-05-03 14:15:21 +02:00
Marc Roig
23fa63efeb
feat: webhooks (#20129)
* feat: webhooks

* feat: ignore entry.publish findOne

* chore: type entry

* feat: refactor publication methods to not trigger entry.delete webhook (#20136)

* feat: refactor publication methods

* fix: remove unnecessary chain op in db query

* feat: emit document. as webhook

* feat: register  legacy events

* feat: only trigger entry webhooks

* feat: rename webhook to event

* feat: event manager

* fix: repository

* feat: webhook tests

* fix: api tests

* fix: non localized fields api test

* fix: refactor event hub

* fix: eventhub type

* fix: event hub unit test

* fix: remove all subscribers

* fix: webhook api test
2024-05-03 11:41:42 +02:00
Marc Roig
43f3d25660
feat: draft and publish api tests (#20150)
* feat: refactor test in transaction util

* fix: remove dp tests

* fix: failing api test

* feat: test structure

* feat: update doc service api tests

* fix: test invalid locale param
2024-05-03 09:17:16 +02:00
Marc Roig
ca6c7c80ec
release: 4.24.1 to develop (#20248)
* fix(admin): if were in EE mode wait for the EE routes to be loaded before rendering (#20238)

* fix: issue 20138 (#20240)

* v4.24.1

---------

Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
2024-05-02 17:14:54 +02:00
Alexandre Bodin
792129f7b4 chore: make document service api more consistent 2024-04-24 18:15:02 +02:00
Mark Kaylor
e765f29187 fix(tests): update history api tests to created ids 2024-04-24 17:26:58 +02:00
Bassel Kanso
0ec9224844
Merge branch 'v5/main' into v5/remove-root-level-nested-params 2024-04-24 08:17:45 +03:00
markkaylor
bdaafbbb3c
chore(history): add api tests (#20157) 2024-04-23 10:50:47 +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
Marc Roig
b4e42e332d
feat: refactor test in transaction util (#20145)
* feat: refactor test in transaction util

* fix: remove dp tests

* fix: failing api test
2024-04-18 16:10:35 +02:00
Ben Irvin
7237fd8ce0
fix(database): add prefixed alias to avoid join column name conflicts 2024-04-17 15:14:37 +02:00
Ben Irvin
18019758d6
enhancement!: create sends 201 status code 2024-04-15 14:03:47 +02:00
Jamie Howard
106357a17f
fix(api-test): number of draft relations (#20101)
* fix(api-test): number of draft relations

* chore: clean up
2024-04-12 16:05:28 +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
Alexandre Bodin
fcf6fc7ba3 chore: separate doc & entries logic more 2024-04-11 17:48:05 +02:00
Josh
e188aac623 Merge branch 'develop' into v5/main 2024-04-08 15:21:08 +01:00
Alexandre BODIN
a806043f96 Merge branch 'v5/main' into v5/document-service-api 2024-04-08 11:22:28 +02:00
Alexandre Bodin
57ef329165 chore: make document service method take a single argument object 2024-04-05 11:34:40 +02:00
Alexandre Bodin
eb61511884 chore: use strapi.service instead of strapi.admin.services 2024-04-03 14:24:15 +02:00
Alexandre Bodin
daf629fd13 chore: remove loadedStrapi and init everything but admin in constructor 2024-04-03 14:24:15 +02:00
Alexandre Bodin
9dfe475e63 chore: add tests 2024-04-03 13:12:36 +02:00
Ben Irvin
4ccbba2098
chore: move remaining api-tests tests to tests/api 2024-04-02 17:40:02 +02:00
Ben Irvin
2ef71bdf4c Merge branch 'develop' into v5/main 2024-04-02 16:25:24 +02:00
Ben Irvin
cf82c830d8
test: restructure test dirs 2024-04-02 11:19:43 +02:00