Commit Graph

3515 Commits

Author SHA1 Message Date
Kevin Ansfield
9debf27e62 🐛 Fixed "Invalid mobiledoc structure" errors the could occur when saving posts with header cards
refs https://github.com/TryGhost/Team/issues/1377

- bumped all packages that have a dependency on `@tryghost/kg-utils` to fix a bug in the `slugify()` utility that was throwing errors when the header or subheader was left blank in a header card
2022-02-16 15:16:10 +00:00
Daniel Lockyer
cc466edd8f v4.36.0 2022-02-11 16:00:27 +00:00
Renovate Bot
3681e1d86d Update dependency @tryghost/metrics to v1.0.5 2022-02-10 08:01:29 +01:00
Hannah Wolfe
c885dac30a
Removed chai + misc auth test cleanup
refs: https://github.com/TryGhost/Toolbox/issues/158

- We only use chai in a handful of places now, and it seems totally unnecessary
- Use assert instead
- Made other minor changes with a view to this being a reference aka "perfect" test suite
2022-02-09 21:14:31 +00:00
Fabien "egg" O'Carroll
21c43f3b10 🐛 Fixed 500 errors when cancelling subscriptions
no-issue

If Stripe subscriptions have manually been modified to contain more than
one price, then cancellation would fail, as Ghost/Members relies on
subscriptions only containing one price. This adds some handling so that
we do not error when cancelling.
2022-02-09 11:37:49 +02:00
Fabien 'egg' O'Carroll
88786f768b
Added validation for Tier prices
refs https://github.com/TryGhost/Team/issues/1319
refs https://github.com/TryGhost/Team/issues/521

This updates the members-api to explicitly validate Tier prices rather
than deferring to Stripe and using whichever errors they throw.
2022-02-09 11:04:58 +02:00
Renovate Bot
b1c2b923ce
Update dependency @sentry/node to v6.17.6 2022-02-08 20:37:28 +00:00
Hannah Wolfe
069c344495
Switched new e2e-framework to use our own snapshot lib (#14137)
refs TryGhost/Toolbox#158
refs TryGhost/Toolbox#129 (comment)

We now have @tryghost/jest-snapshot - a suite of utilities for using snapshots with mocha, should, etc
The @tryghost/express-test lib also uses it to provide chained snapshot assertions

This library was created because all the existing implementations I could find, including the in use @ethanresnick/chai-jest-snapshot
didn't properly support property matching. @ethanresnick/chai-jest-snapshot supposedly supported it, but the implementation was incorrect
and frequently lead to false test passes.

This library also has (after some back and forth) path resolution so that snapshots can live in a local __snapshots__ folder
2022-02-08 14:33:19 +00:00
Renovate Bot
0822a5b7a1 Update dependency @tryghost/request to v0.1.14 2022-02-08 11:08:48 +01:00
Renovate Bot
91b5c09f5e Update dependency @sentry/node to v6.17.5 2022-02-08 07:43:00 +00:00
Renovate Bot
1852521fca Update dependency cssnano to v5.0.17 2022-02-07 20:00:45 +01:00
Kevin Ansfield
f410893f3e 🐛 Fixed header cards not being linkable with #header-title
refs https://github.com/TryGhost/Team/issues/1316

Updates header card renderer so the `<h2>` and `<h3>` elements have slugified titles set on their `id` attributes to allow in-page and external #header-title anchor links.

- bumps `@tryghost/kg-default-cards` including the header card id fix
- bumps other `@tryghost/kg-*` packages that were released simultaneously - contains dependency updates and switch to `slugify()` from `@tryghost/kg-utils`
2022-02-07 18:52:18 +00:00
Hannah Wolfe
efdae70cbc
Updated members regression tests to use e2e framework (#14130)
- This is an example refactor to the new framework
 - This does not yet include snapshot testing (coming SOON)
2022-02-07 17:15:55 +00:00
Renovate Bot
2a1201ab30 Update Test & linting packages 2022-02-07 13:16:05 +01:00
Renovate Bot
361a7fe27d Update dependency @tryghost/bookshelf-plugins to v0.3.8 2022-02-07 09:10:41 +01:00
Renovate Bot
4c6257c09a Update dependency expect to v27.5.0 2022-02-07 09:08:50 +01:00
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