Commit Graph

3499 Commits

Author SHA1 Message Date
Hannah Wolfe
c9ca388a9f
Added new express-test framework to our ref tests (#14117) 2022-02-06 16:18:12 +00:00
Renovate Bot
787d23ee5e Update dependency node-jose to v2.1.0 2022-02-05 10:38:26 +00:00
Renovate Bot
619f605c46
Update dependency nock to v13.2.4 2022-02-04 19:55:19 +00:00
Renovate Bot
c873e204ae
Update dependency sanitize-html to v2.7.0 2022-02-04 17:45:26 +00:00
Daniel Lockyer
895acc9ed0 v4.35.0 2022-02-04 16:00:26 +00:00
Renovate Bot
3cebde7279 Update dependency @tryghost/version to v0.1.10 2022-02-04 15:45:20 +01:00
Renovate Bot
c47e48455e Update dependency @tryghost/request to v0.1.13 2022-02-04 15:37:26 +01:00
Renovate Bot
d41e980dba Update dependency @tryghost/job-manager to v0.8.19 2022-02-04 15:16:43 +01:00
Renovate Bot
8b5929138c Update dependency @tryghost/vhost-middleware to v1.0.21 2022-02-04 15:16:32 +01:00
Renovate Bot
5f0b7688ea Update dependency @tryghost/update-check-service to v0.3.1 2022-02-04 15:16:07 +01:00
Renovate Bot
f3adacd6e2 Update dependency @tryghost/nodemailer to v0.3.11 2022-02-04 14:18:45 +01:00
Renovate Bot
1bff41d10b Update dependency @tryghost/logging to v2.0.3 2022-02-04 14:17:43 +01:00
Renovate Bot
d860948f93 Update dependency @tryghost/metrics to v1.0.4 2022-02-04 14:17:30 +01:00
Renovate Bot
c2fd374930 Update dependency @tryghost/validator to v0.1.12 2022-02-04 14:07:19 +01:00
Renovate Bot
440e8c5d38 Update dependency @tryghost/debug to v0.1.12 2022-02-04 14:07:08 +01:00
Rishabh
6309764f11 Fixed incorrect id used for updating portal product setting
no refs

- bumps members-api package to use correct id for setting while updating value for portal_products
2022-02-04 18:29:25 +05:30
renovate[bot]
9146e3c4c3
Update dependency @tryghost/verification-trigger to v0.1.3 (#14116)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-04 12:08:55 +00:00
Renovate Bot
c6458f8a2f Update dependency @tryghost/root-utils to v0.3.10 2022-02-04 13:03:58 +01:00
Renovate Bot
30d2995f14 Update dependency @tryghost/tpl to v0.1.11 2022-02-04 13:02:30 +01:00
Hannah Wolfe
ff03d26bbb
Added snapshot utils to mocha requires for yarn test
- without this, you can't run any of the new tests with just yarn test path/to/file.test.js
2022-02-04 08:56:32 +00:00
Renovate Bot
6ac135d038
Update dependency nock to v13.2.3 2022-02-03 21:00:54 +00:00
Sam Lord
92c3e8d7ca Added source to the verification trigger
no issue

Helps us to tell the difference between a verification trigger caused by import vs API
2022-02-03 16:20:37 +00:00
Renovate Bot
5b76ae6ac5 Update dependency @tryghost/helpers to v1.1.56 2022-02-03 08:09:57 +00:00
Renovate Bot
bc17e6ac49 Update dependency postcss to v8.4.6 2022-02-03 08:09:33 +00:00
Renovate Bot
aa23f73074
Update dependency @sentry/node to v6.17.4 2022-02-02 16:05:19 +00:00
Matt Hanley
48bcb36adc Merged v4.34.3 into main
v4.34.3
2022-02-02 16:02:54 +00:00
Daniel Lockyer
06591cbace v4.34.3 2022-02-02 15:42:33 +00:00
Fabien "egg" O'Carroll
d00965df22 Disabled verification triggers from the API
no-issue

Due to a bug with the event filtering logic verification triggers were
happening when they shouldn't - for now we are disabling the trigger
until the bug is fixed
2022-02-02 17:16:15 +02:00
Thibaut Patel
ca2b078fcf Fixed a typo breaking the /members/events route
refs ac9c8c18a0

- This was a regression introduced by commit ac9c8c18a0
2022-02-02 13:31:53 +01:00
Renovate Bot
c95868a532
Update metascraper to v5.25.8 2022-02-02 01:02:13 +00:00
Fabien 'egg' O'Carroll
805c9f22f5
Added e2e test for comping Members (#14094)
no-issue
refs https://github.com/TryGhost/Members/commit/6860e3c1
refs https://github.com/TryGhost/Members/commit/03a6d694

This adds an e2e tests for the regression we had with comping members.

The stripe service imports the members service, which will instantiate
members-ssr once it is loaded, which will use the uninstantiated
settings cache resulting in errors due to a missing theme_session_secret.

For this reason we require the stripe service inside of the test function,
rather than at the top level of the file
2022-02-01 18:57:27 +02:00
Daniel Lockyer
fd69899b9f
Merged v4.34.2 into main
v4.34.2
2022-02-01 16:08:47 +00:00
Thibaut Patel
ac9c8c18a0
🐛 Fixed the event ordering in the member activity feed (#14093)
refs https://github.com/TryGhost/Team/issues/1299

- The email_delivered_event, email_opened_event and email_failed_event events weren't correctly ordered
- This has caused some of these events to not show
2022-02-01 16:37:51 +01:00
Daniel Lockyer
35ceb29915 v4.34.2 2022-02-01 15:30:01 +00:00
renovate[bot]
20b33dafa0
Update dependency @tryghost/members-api to v4.8.8 (#14059)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-01 15:07:19 +02:00
Thibaut Patel
9e5dd4a22b 🐛 Added missing payment events in the member activity feed
refs https://github.com/TryGhost/Team/issues/1297

- They were expected to be in the activity feed but were hidden
2022-02-01 13:30:34 +01:00
Fabien "egg" O'Carroll
db7ca3dedf Set default Tier name to Site Title
refs https://github.com/TryGhost/Team/issues/1289

The default Tier name is "Default Product" - this adds a check on
startup for this name, and will update it to the site title. This is so
that when Tiers is enabled, the user is presented with an expected value
for the Tier name.
2022-02-01 13:18:20 +02:00
Fabien "egg" O'Carroll
0040b6a441 Updated emails sending after paid signup
refs https://github.com/TryGhost/Team/issues/1168

This fixes the email being sent based on feedback from the welcome pages feature
2022-02-01 12:03:35 +02:00
Fabien "egg" O'Carroll
0c2922a23e Attached Tier to Subscriptions
refs https://github.com/TryGhost/Team/issues/1168

This will allow redirects to read the welcome page from the Tier object
of a members Subscription.
2022-02-01 11:45:16 +02:00
Daniel Lockyer
dd7227d622
Merged v4.34.1 into main
v4.34.1
2022-02-01 08:58:24 +00:00
Daniel Lockyer
6e4ec3b213 v4.34.1 2022-02-01 08:50:38 +00:00
Rishabh
c530ac2a92 Updated admin api schema to include tiers for post/page
refs TryGhost/Team#1071

- new `tiers` key is now attached to posts/pages API response to include tiers visibility
- updates expected response for post/page in tests to include `tiers`
2022-02-01 11:13:51 +05:30
Fabien "egg" O'Carroll
354bb5c9a1 Allowed welcome_page_url to be set on Tiers
refs https://github.com/TryGhost/Team/issues/1168

This updates the underlying members service to handle the new
welcome_page_url properties
2022-01-31 15:55:40 +02:00
Fabien "egg" O'Carroll
52a841d567 Fixed Complimentary subscriptions
refs https://github.com/TryGhost/Ghost/issues/14079

The stripe_prices API whilst not used publicly is still used for handling
complimentary subscriptions in the old (pre-tiers) system. This was mistakenly
removed, and has been reinstated with this commit.
2022-01-31 13:11:31 +02:00
Renovate Bot
42e384ab6a Update dependency @tryghost/color-utils to v0.1.7 2022-01-31 08:44:55 +00:00
Fabien "egg" O'Carroll
4f5257859d Added welcome_page_url to Products API
refs https://github.com/TryGhost/Team/issues/1168

This updates the JSON API Schema to allow for the welcome_page_url
property, as well as including the new column in API responses, so that
we can both read and write the value via the API.
2022-01-30 17:41:57 +02:00
Renovate Bot
b917c17ce8
Update dependency @sentry/node to v6.17.3 2022-01-28 17:48:36 +00:00
Daniel Lockyer
41fd15052d v4.34.0 2022-01-28 16:00:27 +00:00
Sam Lord
08829a6f0c
Trigger email verification workflow on API usage
refs: TryGhost/Toolbox#166

The new VerificationTrigger listens to events form the members repository, and will cause the verification workflow to be triggered if the number of events is greater than the configured threshold in a rolling 30 day window.

The importer also no longer depends on the import threshold, so the threshold testing is now done in the processImport method in Ghost - seems sensible since we already had this wrapper and the logic is now tiny, since it's just relying on @tryghost/verification-trigger to handle the real stuff.
2022-01-27 14:06:29 +00:00
Daniel Lockyer
b79ca4188d
Merged v4.33.2 into main
v4.33.2
2022-01-27 10:29:30 +00:00