Ghost/ghost/core/test/e2e-api/admin
Simon Backx b911208b41
Improved filter support in activity API to allow pagination (#15684)
fixes https://github.com/TryGhost/Team/issues/2129

- This changes how the activity feed API parses the filter.
- We now parse the filter early to a MongoDB filter, and split it in two. One of the filters is applied to the pageActions, and the other one is used individually for every event type. We now allow to use grouping and OR's inside the filters because of this change. As long as we don't combine filters on 'type' with other filters inside grouped filters or OR, then it is allowed.
- We make use of mongoTransformer to manually inject a mongo filter without needing to parse it from a string value again (that would make it a lot harder because we would have to convert the splitted filter back to a string and we currently don't have methods for that).
- Added sorting by id for events with the same timestamp (required for reliable pagination)
- Added id to each event (required for pagination)
- Added more tests for filters
- Added test for pagination
- Removed unsued getSubscriptions and getVolume methods

Used new mongo utility methods introduced here: https://github.com/TryGhost/NQL/pull/49
2022-10-27 12:13:24 +02:00
..
__snapshots__ Improved filter support in activity API to allow pagination (#15684) 2022-10-27 12:13:24 +02:00
actions.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
activity-feed.test.js Improved filter support in activity API to allow pagination (#15684) 2022-10-27 12:13:24 +02:00
config.test.js 💡 Upgraded Tenor API to v2 (#15087) 2022-08-05 12:13:27 +01:00
custom-theme-settings.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
db.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
email-previews.test.js Fixed import of bson-objectid in accordance to the typings 2022-10-12 14:54:35 +07:00
emails.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
explore.test.js Updated content-length header matchers 2022-10-05 17:34:17 +08:00
files.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
images.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
integrations.test.js Updated tests to incl. host limit cases for core integrations 2022-08-12 14:18:44 +01:00
invites.test.js Removed bluebird catch predicates from API endpoints 2022-08-24 11:27:09 +01:00
key-authentication.test.js Updated tests to incl. host limit cases for core integrations 2022-08-12 14:18:44 +01:00
labels.test.js Removed bluebird catch predicates from API endpoints 2022-08-24 11:27:09 +01:00
links.test.js Added edited property to links api 2022-10-20 18:17:44 +05:30
media.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
members-exporter.test.js Changed members export to contain tiers 2022-10-21 18:58:59 +08:00
members-importer.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
members-newsletters.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
members-stripe-connect.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
members.test.js Improved filter support in activity API to allow pagination (#15684) 2022-10-27 12:13:24 +02:00
newsletters.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
notifications.test.js Refactored notifications e2e tests to use test framework 2022-09-09 19:51:50 +08:00
oembed.test.js 🐛 Fixed embedded cards for non-utf8 content (#15578) 2022-10-13 12:19:47 +01:00
offers.test.js Handled stripe setup for free trial offers 2022-08-11 11:04:39 +05:30
pages.test.js Added rendering of posts.lexical to posts.html when saving (#15416) 2022-09-15 16:49:14 +01:00
posts-legacy.test.js Added sentiment ordering and include for posts (#15657) 2022-10-19 16:50:58 +02:00
posts.test.js Hardened tiers-related snapshot tests 2022-10-27 15:54:28 +08:00
rate-limiting.test.js 🔒 Fixed rate limiting for user login (#15336) 2022-08-31 10:33:42 -04:00
redirects.test.js Improved performance of prepareContentFolder function 2022-08-01 08:58:13 +02:00
roles.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
session.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
settings-files.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
settings.test.js Updated content-length header matchers 2022-10-05 17:34:17 +08:00
site.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
slugs.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
snippets.test.js Removed bluebird catch predicates from API endpoints 2022-08-24 11:27:09 +01:00
stats.test.js Added new referrer source stats API (#15449) 2022-09-22 16:34:26 +05:30
tags.test.js Removed bluebird catch predicates from API endpoints 2022-08-24 11:27:09 +01:00
themes.test.js Improved performance of prepareContentFolder function 2022-08-01 08:58:13 +02:00
tiers.test.js Handled null trial days on tiers 2022-08-09 14:14:22 +05:30
users.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
utils.js Added sentiment ordering and include for posts (#15657) 2022-10-19 16:50:58 +02:00
webhooks.test.js Removed bluebird catch predicates from API endpoints 2022-08-24 11:27:09 +01:00