mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 13:52:10 +03:00
b911208b41
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 |
||
---|---|---|
.. | ||
__snapshots__ | ||
actions.test.js | ||
activity-feed.test.js | ||
config.test.js | ||
custom-theme-settings.test.js | ||
db.test.js | ||
email-previews.test.js | ||
emails.test.js | ||
explore.test.js | ||
files.test.js | ||
images.test.js | ||
integrations.test.js | ||
invites.test.js | ||
key-authentication.test.js | ||
labels.test.js | ||
links.test.js | ||
media.test.js | ||
members-exporter.test.js | ||
members-importer.test.js | ||
members-newsletters.test.js | ||
members-stripe-connect.test.js | ||
members.test.js | ||
newsletters.test.js | ||
notifications.test.js | ||
oembed.test.js | ||
offers.test.js | ||
pages.test.js | ||
posts-legacy.test.js | ||
posts.test.js | ||
rate-limiting.test.js | ||
redirects.test.js | ||
roles.test.js | ||
session.test.js | ||
settings-files.test.js | ||
settings.test.js | ||
site.test.js | ||
slugs.test.js | ||
snippets.test.js | ||
stats.test.js | ||
tags.test.js | ||
themes.test.js | ||
tiers.test.js | ||
users.test.js | ||
utils.js | ||
webhooks.test.js |