75 Commits

Author SHA1 Message Date
Simone
e3a5416487
[Bugfix] Bulk publish/unpublish for non-default locale entities (#17941)
* pass the locale to the publish and draft relations calls

* fix the problem for entities without internationalization and add unit tests
2023-09-12 10:40:51 +02:00
markkaylor
a82de46746
feature/bulk-publish-v2 (#17185)
Co-authored-by: Simone <simone.taeggi@strapi.io>
Co-authored-by: markkaylor <mark.kaylor@strapi.io>
Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
Co-authored-by: Rémi de Juvigny <remi.dejuvigny@strapi.io>
Co-authored-by: Fernando Chavez <fernando.chavez@strapi.io>
2023-07-18 09:03:55 +02:00
Josh
9a537e811b chore: merge fixes
chore: fix lint
2023-06-22 09:18:57 +01:00
Marc-Roig
fa42b89891 feat: clone method 2023-06-22 07:59:49 +01:00
Mark Kaylor
b5d4687c57 Maintain consistent backend validation for publish and bulk publish 2023-06-19 18:25:29 +02:00
Marc-Roig
fceac49066
fix: count relations when webhook populate is disabled 2023-06-19 12:34:24 +02:00
Marc-Roig
7ad44c8699
Merge branch 'main' into fix/rbac-condition-and-relations 2023-06-09 10:32:42 +02:00
Josh
8357aab46e
chore: fix tests (#16937)
Co-authored-by: Marc-Roig <marc12info@gmail.com>
2023-06-07 11:43:09 +01:00
Convly
106cfafca4 Merge branch 'main' into releases/4.11.0 2023-06-07 11:31:42 +02:00
Jamie Howard
59d61424a9 chore: fix entity manager linter warnings 2023-06-01 15:21:47 +01:00
Jamie Howard
c53b7a7ae4 fix: simplify emitEvent logic 2023-06-01 15:20:13 +01:00
Mark Kaylor
ee5278b9fd Fix filters causing too many emitted events 2023-06-01 11:24:07 +02:00
Jamie Howard
d77e42b859 refactor(webhooks): populate allowed events from relevant modules 2023-05-30 16:13:10 +01:00
Marc-Roig
304f32d56b
fix: populate attributes in delete 2023-05-29 09:34:45 +02:00
Marc-Roig
9a7bef24bf
chore: PR proposed changes 2023-05-26 17:26:55 +02:00
Marc-Roig
f8f0b75185
feat: populateFromQuery 2023-05-26 12:35:22 +02:00
Marc-Roig
7c0a562948
feat: use populate builder 2023-05-25 17:00:52 +02:00
Marc-Roig
b37f6b1c1e
feat: cleanup entity manager 2023-05-25 14:36:50 +02:00
Jamie Howard
14ff035647 feature: replace emitEvent calls with new webhook store 2023-05-25 12:37:38 +01:00
Mark Kaylor
5ddfd14236 Publish/unpublish a mix of draft and published states 2023-05-09 09:54:53 +02:00
Mark Kaylor
f2e769cd69 Refactor to check permissions on entities before passing to updateMany 2023-05-04 10:38:09 +02:00
Mark Kaylor
119b88a1b1 Add bulk publish and unpublish 2023-05-03 12:17:26 +02:00
Convly
db90d338a5 tmp 2023-04-28 15:11:42 +02:00
Marc-Roig
4ef8732caf Merge branch 'main' into feature/private-s3-bucket 2023-03-08 10:56:03 +01:00
Marc
c942ca2564
Update entity-manager.js 2023-03-03 14:02:56 +01:00
Marc
8c1ec39e8d
Update entity-manager.js 2023-03-03 14:02:44 +01:00
Jamie Howard
f2346222fa chore(content-manager): fix typos 2023-03-01 11:31:52 +00:00
Marc-Roig
37e980fc7e send entity with updates in it in publish webhook 2023-02-28 09:19:26 +01:00
Jamie Howard
7da22885ad chore(content-manager): PR feedback 2023-02-27 11:50:49 +00:00
Jamie Howard
de5d6b5a8c refactor(content-manager): entity manager support single types 2023-02-23 11:50:01 +00:00
Marc-Roig
9a948e7f7e fix 2023-02-14 18:20:16 +01:00
Marc-Roig
37ef6e7cd6 fix mapping entity when relations are populated 2023-02-14 09:11:10 +01:00
Marc-Roig
bbafe2b01d fix conflicts 2023-02-13 17:39:51 +01:00
Jamie Howard
5b0ccf64da refactor(content-manager): add mapEntity to the entity manager 2023-02-13 11:06:57 +00:00
Marc-Roig
d340110b9f refactor wrapEmitEvent to emitEvent 2023-01-30 16:35:45 +01:00
Marc-Roig
34935bdb17 fix unpublish publish 2023-01-27 10:39:33 +01:00
Marc-Roig
3e95ff78d3 remove getDeepCountPopulate 2023-01-26 17:25:56 +01:00
Marc-Roig
15a723cca7 remove deprecation messages 2023-01-23 10:49:31 +01:00
Marc-Roig
69b9ee42a2 move warning to bootstrap 2023-01-20 09:41:26 +01:00
Marc-Roig
30fa5bd2c3 fix comment 2023-01-19 15:14:48 +01:00
Marc-Roig
ef71bdfd20 display warning if webhooks have populated relations 2023-01-19 14:54:22 +01:00
Marc-Roig
85e7476178 V5 TODO comment to standardize webhooks payload 2023-01-18 16:06:53 +01:00
Marc-Roig
cf814fc1da move config to admin 2023-01-17 09:27:33 +01:00
Marc-Roig
8ac9ddc627 remove unnecessary database query 2023-01-16 18:26:21 +01:00
Marc-Roig
27b8b5b353 introduce getDeepCount for relations performance 2023-01-16 18:20:42 +01:00
Marc-Roig
25e1435173 Revert "remove relations populate configuration"
This reverts commit cea950fd9657df6434d22ecd29c1bbfd8d9a0912.
2023-01-13 15:35:21 +01:00
Marc-Roig
cea950fd96 remove relations populate configuration 2023-01-12 14:31:04 +01:00
Marc-Roig
64bf4b8f1d return entities without loaded relations 2023-01-10 15:15:01 +01:00
Marc-Roig
19ff38b7db relations performance enabled by default 2023-01-05 17:14:39 +01:00
Marc-Roig
8806f5eeb1 add admin config variable to enable relations performance 2023-01-05 15:55:47 +01:00