Ghost/ghost/posts-service
Simon Backx fbed93b866
🐛 Added missing history logs for post/page bulk actions (#16734)
no issue

The post/page bulk actions weren't logged in the history log / actions
table.

This change adds support for logging bulk actions.
- New `addActions` static method on models. It creates an action log in
the database for multiple models at once. If only one model was edited,
deleted or added, it will fallback to `addAction`
- `addAction` can also be called statically now
- `actionName` option is now supported when using `addActions`,
`addAction`, and as a result also in all bulk manipulation methods, and
CRUD methods. This allows you to replace the default '5 posts edited'
into something more specific like '5 posts featured'
- Fixed support for null resource_id in the parse-history-event helper
- Removed the default 'published' status requirement when using
Post.findOne for internal queries.
2023-05-05 09:45:36 +02:00
..
lib 🐛 Added missing history logs for post/page bulk actions (#16734) 2023-05-05 09:45:36 +02:00
test Fixed exporting post metrics without email 2023-03-28 12:41:32 +02:00
.eslintrc.js Moved posts service to its own package 2023-03-20 16:06:42 +01:00
index.js Added posts exporter implementation (#16467) 2023-03-22 09:08:35 +01:00
package.json Implemented bulk editing post access (#16617) 2023-04-12 11:58:46 +02:00
README.md Moved posts service to its own package 2023-03-20 16:06:42 +01:00

Posts Service