Commit Graph

3419 Commits

Author SHA1 Message Date
Thibaut Patel
817e556ea6 Updated the /members/event filtering logic
refs https://github.com/TryGhost/Team/issues/1277

- Enabled the `filter` attribute on the route.
- The events are now filtered in-memory instead of in the database.
- This fixes a wrong logic where the API user would have to know the internal event structure.
2022-01-21 18:35:02 +01:00
Daniel Lockyer
bb10fedacd v4.33.0 2022-01-21 16:00:32 +00:00
renovate[bot]
b6c0f8bddd
Update dependency @tryghost/express-dynamic-redirects to v0.2.4 (#14023)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-21 15:56:51 +02:00
Thibaut Patel
bb24177149 Added the option to filter events from the /members/events endpoint
refs https://github.com/TryGhost/Team/issues/1277

- Filter events using the usual `filter` property
- Fixed a bug that was in `members-api@4.3.0`
2022-01-21 14:56:36 +01:00
Fabien "egg" O'Carroll
ca2a8ba464 Restricted updating Subscription to archived Tier
refs https://github.com/TryGhost/Team/issues/1252

Archived tiers should be restricted from _any_ "new" subscriptions,
including existing ones. They are essentially disabled.
2022-01-21 14:11:46 +02:00
renovate[bot]
1b1abe3005
Update dependency @tryghost/members-api to v4.3.0 (#14013)
refs https://github.com/TryGhost/Team/issues/1277
refs https://github.com/TryGhost/Team/issues/1252

- Restrict creating new checkout session with archived Tiers
- Allowed event timeline to have additional filters passed

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Thibaut Patel <thibaut@ghost.org>
2022-01-21 13:43:08 +02:00
Renovate Bot
a43dd4fe60 Update dependency @tryghost/settings-path-manager to v0.1.3 2022-01-21 11:03:28 +00:00
Renovate Bot
d0507467ad Update dependency @tryghost/social-urls to v0.1.28 2022-01-21 10:33:50 +00:00
Renovate Bot
d0b27d45bf Update dependency @tryghost/color-utils to v0.1.6 2022-01-21 10:07:48 +00:00
Renovate Bot
dcc9a57f6a Update dependency @tryghost/helpers to v1.1.55 2022-01-21 10:07:37 +00:00
Renovate Bot
91f2416ef1 Update dependency @tryghost/string to v0.1.22 2022-01-21 10:07:18 +00:00
Renovate Bot
2b9847a91f Update dependency @tryghost/url-utils to v2.0.5 2022-01-21 10:07:07 +00:00
renovate[bot]
7c76c429b1
Update dependency @tryghost/members-importer to v0.4.1 (#14027)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-20 20:56:13 +02:00
renovate[bot]
b21e1426de
Update dependency @tryghost/members-stripe-service to v0.6.3 (#14030)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-20 20:54:54 +02:00
renovate[bot]
e855c2d342
Update dependency @tryghost/members-ssr to v1.0.18 (#14029)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-20 20:53:56 +02:00
renovate[bot]
d4bd7568bc
Update dependency @tryghost/members-offers to v0.10.5 (#14028)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-20 20:52:34 +02:00
renovate[bot]
8923726df2
Update dependency @tryghost/members-csv to v1.2.3 (#14026)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-20 20:52:10 +02:00
Fabien "egg" O'Carroll
ce0e1b8b0c Added initial support for archiving Tiers
refs https://github.com/TryGhost/Team/issues/1252

This allows us to archive and unarchive tiers, but does not implement
any of the background behaviour like modifying portal settings. Or
disabling archived tiers from being used.

The two packages now allow the `active` flag to be passed, and will
update that in the database.
2022-01-20 17:57:47 +02:00
Renovate Bot
8ad20a8c69
Update dependency eslint-plugin-ghost to v2.12.0 2022-01-20 14:30:08 +00:00
Renovate Bot
cd21cd5fe8 Update dependency @tryghost/security to v0.2.14 2022-01-20 14:28:46 +00:00
Renovate Bot
9a15966ffb Update dependency @tryghost/promise to v0.1.14 2022-01-20 14:01:20 +00:00
Renovate Bot
c857606137 Update dependency @tryghost/config-url-helpers to v0.1.4 2022-01-20 13:59:44 +00:00
Renovate Bot
fa49adda58 Update dependency @tryghost/image-transform to v1.0.27 2022-01-20 13:58:30 +00:00
Renovate Bot
d9a379e453 Update dependency @tryghost/errors to v1.2.1 2022-01-20 13:53:57 +00:00
Renovate Bot
ecb67a5763 Update dependency @tryghost/vhost-middleware to v1.0.20 2022-01-20 13:53:24 +00:00
Renovate Bot
da3d3fd814 Update dependency @tryghost/bootstrap-socket to v0.2.16 2022-01-20 13:32:45 +00:00
Renovate Bot
8be58c2566 Update dependency @tryghost/limit-service to v1.0.9 2022-01-20 13:31:13 +00:00
Renovate Bot
8bcb90300e Update dependency @tryghost/session-service to v0.1.37 2022-01-20 13:30:43 +00:00
Renovate Bot
952a00760b Update dependency @tryghost/package-json to v1.0.15 2022-01-20 13:30:26 +00:00
Renovate Bot
55daa556d4 Update dependency @tryghost/constants to v1.0.1 2022-01-20 13:29:57 +00:00
Renovate Bot
de7bc9ca9c Update dependency @tryghost/job-manager to v0.8.18 2022-01-20 13:28:55 +00:00
Renovate Bot
dd8100ad8b Update dependency @tryghost/adapter-manager to v0.2.27 2022-01-20 13:27:54 +00:00
Renovate Bot
2d4406ab10 Update dependency @tryghost/zip to v1.1.19 2022-01-20 13:27:35 +00:00
Renovate Bot
0202c93726 Update dependency @tryghost/minifier to v0.1.10 2022-01-20 13:26:46 +00:00
Renovate Bot
81b86b8c39 Update dependency @tryghost/mw-session-from-token to v0.1.27 2022-01-20 13:26:24 +00:00
Renovate Bot
2cb12c647a Update dependency supertest to v6.2.2 2022-01-20 12:25:02 +00:00
Renovate Bot
3fd7ce6179 Update dependency @tryghost/mw-error-handler to v0.1.2 2022-01-20 11:58:52 +00:00
Fabien "egg" O'Carroll
54bdef0d20 Fixed stripe webhook creation params
no-issue

We were missing default parameters for webhook creation which cause an
error to throw if we attempted to read from them. This bumps the members
& stripe packages to add default params.
2022-01-20 11:02:54 +02:00
Thibaut Patel
a1af064f79 Added three email delivery events to the member/event endpoint
refs https://github.com/TryGhost/Team/issues/1277

- The new events types are: `email_delivered_event`, `email_opened_event` and `email_failed_event`.
- This makes existing data accessible to the admin dashboard
2022-01-19 14:43:29 +01:00
Fabien 'egg' O'Carroll
a565da06b2
🐛 Fixed Offer Redemptions being over counted (#13988)
refs https://github.com/TryGhost/Team/issues/1257

Offer Redemptions were being overcounted due to the way we were updating
Stripe configuration for the Members service. We would create a new
instance of the members-api, which would have event handlers for
creating Offer Redemptions - by creating a new instance each time Stripe
config changed, we would overcount them.

Here we've pulled out Stripe related logic into the Stripe service, and
updated it internally - rather than creating a new instance. This means
that we've been able to remove all of the logic for re-instantiating the
members-api.

- Bumped members-api & stripe-service
- Removed reinstantiation of members-api
- Used stripe service to execute migrations
- Updated Stripe Service to handle webhooks & migrations
- Used webhook controller from stripe service
- Used disconnect method from stripe service
- Removed unused stripe dependency
- Removed Stripe webhook config from members-api
2022-01-18 17:56:47 +02:00
Daniel Lockyer
eb68e8d339 Added library for extracting database information
refs https://github.com/TryGhost/Toolbox/issues/175

- we're going to be making some changes in v5 wrt supported databases
- we needed a way of detecting the difference between MySQL 5 + 8,
  MariaDB etc
- I've created `@tryghost/database-info`, which is a small wrapper
  around `knex`, which returns this information
- this commit:
  - adds the library to Ghost
  - initializes the DB info library upon boot
  - updates the Admin API /config/ endpoint and UpdateCheck to return
    the new string - `mysql5`, `mysql8` etc
2022-01-18 09:31:08 +00:00
Renovate Bot
7466ab340c
Update dependency bson-objectid to v2.0.2 2022-01-18 00:57:08 +00:00
Rishabh
018c96413d Handled new free product type in importer and member api
refs https://github.com/TryGhost/Team/issues/1037

- updates `members-api` to handle new free product and `type` column
- updates `members-importer` to handle default product usage as we have both free and paid default products now
2022-01-17 23:10:58 +05:30
Renovate Bot
da1d178768
Update dependency mocha to v9.1.4 2022-01-14 21:15:42 +00:00
Daniel Lockyer
8df29f6574 v4.32.3 2022-01-14 16:00:28 +00:00
Renovate Bot
02e4aeccd9 Update dependency @tryghost/validator to v0.1.10 2022-01-14 10:32:46 +00:00
Fabien "egg" O'Carroll
297b1a929f Added "api" source for MembersSubscribeEvents
refs https://github.com/TryGhost/Team/issues/1275

This will allow us to determine members which were added via the Admin
API for use in spam prevention.
2022-01-14 12:28:35 +02:00
renovate[bot]
5037517aad
🐛 Support inline partial execution in children partials
refs https://github.com/TryGhost/Ghost/issues/13844
refs https://github.com/TryGhost/Team/issues/1274

- This enables using inline partials to create layouts in Ghost themes.
- The support for inline partials was dropped when moving away from Handlebars compilation and using AST traversing instead.
2022-01-14 11:17:13 +01:00
Renovate Bot
935fef79d6 Update dependency @tryghost/kg-default-cards to v5.15.12 2022-01-14 10:13:35 +00:00
Renovate Bot
8dcae5f686 Update dependency @tryghost/magic-link to v1.0.15 2022-01-14 10:11:40 +00:00