Commit Graph

12231 Commits

Author SHA1 Message Date
Daniel Lockyer 0d312d3e00
v3.42.4 2021-03-23 17:03:05 +00:00
Daniel Lockyer bfd4f8b5df
Updated Ghost-Admin to v3.42.4 2021-03-23 17:03:04 +00:00
Daniel Lockyer 9230e1c2a6
v3.42.3 2021-03-18 17:32:33 +00:00
Daniel Lockyer 7c092676a1
Updated Ghost-Admin to v3.42.3 2021-03-18 17:32:33 +00:00
Fabien 'egg' O'Carroll 1510070dcd
Fixed typo in migration to add backupContent permission (#12776)
refs https://github.com/TryGhost/Team/issues/553

A typo in the permission migration was introduced in
https://github.com/TryGhost/Ghost/commit/79c3709f

A migration to fix broken values will be present in Ghost 4.1
2021-03-18 14:51:11 +00:00
Daniel Lockyer 33470f2a23
Fixed CI test for installing the latest release
no issue

- now 4.0 is out, the latest version is going to be higher than the
  version we're trying to manually update to in this test
- the "latest version" for the 3.x branch should be v3 anyway, so this
  commit updates that test to explicitly install v3
2021-03-17 11:56:40 +00:00
Daniel Lockyer f71a969083
v3.42.2 2021-03-15 13:00:48 +00:00
Daniel Lockyer 82d836d913
Updated Ghost-Admin to v3.42.2 2021-03-15 13:00:48 +00:00
Daniel Lockyer 2dcd74afb1
v3.42.1 2021-03-12 11:24:26 +00:00
Daniel Lockyer 908c417918
Updated Ghost-Admin to v3.42.1 2021-03-12 11:24:26 +00:00
Daniel Lockyer 560db74bc1
v3.42.0 2021-03-04 12:16:15 +00:00
Daniel Lockyer cd7ac5fde0
Updated Ghost-Admin to v3.42.0 2021-03-04 12:16:15 +00:00
Sam Lord cfbb53c738 Update to latest Ghost Ignition 2021-03-04 12:04:38 +00:00
Sam Lord 3d170b2ff0 Add ElasticSearch logging to v3
no issue
Wire up config to the latest ghost-ignition to enable remote logging on Ghost v3
2021-03-03 17:55:36 +00:00
Naz b22e7fa84c
Fixed truncated worker thread messages
refs 12a1c60424

- The bump contains a bump in bree version, which fixes message truncation problem
2021-03-03 08:24:05 +00:00
Hannah Wolfe ae3137da40 Updated config to pull additional host settings
ref e1e5caac3d

- we are working on separating out various host functions into separate applications, all of which Ghost can load if configured
2021-03-02 12:45:35 +00:00
Fabien O'Carroll ca619af41a
Removed warning logging from members 'middleware'
refs https://github.com/TryGhost/Team/issues/498

This was filling up logs with less than useful information - for every
single request made by a non-member to the frontend. Be gone!
2021-03-02 09:58:14 +00:00
Daniel Lockyer 5c1f44d1b3
v3.41.9 2021-03-01 15:43:24 +00:00
Daniel Lockyer c9f151decd
Updated Ghost-Admin to v3.41.9 2021-03-01 15:43:23 +00:00
Fabien O'Carroll 9434f183d2 🐛 Fixed cancelling subscriptions when deleting members
closes https://github.com/TryGhost/Ghost/issues/12711
refs https://github.com/allouis/Members/commit/0be1ce2c

We were not waiting for the stripeSubscriptions relation to be fetched
from the database before looping through them and deleting them, the
members-api has been updated to correctly wait for the relations to be
fetched, and this bump fixes the issue.
2021-03-01 11:42:11 +00:00
Daniel Lockyer 5f94dab52b
v3.41.8 2021-02-23 11:47:39 +00:00
Daniel Lockyer 0efbbb1175
Updated Ghost-Admin to v3.41.8 2021-02-23 11:47:39 +00:00
Fabien O'Carroll 37518a3d5e 🐛 Fixed updating member payment details
closes https://github.com/TryGhost/Team/issues/479
refs https://github.com/TryGhost/Members/commit/efe60a17
refs https://github.com/TryGhost/Portal/commit/a0588e87

This updates the members-api to make sure that members with cancelled
subscriptions, and members with multiple active customers can update
their payment details without error.

We also add the ability to update the payment method for a specific
subscription - which is more explicit and is used by Portal since the
commit referenced
2021-02-23 11:26:17 +00:00
Kevin Ansfield ae506097f4
Fixed fs error during theme install deleting active theme (#12688)
closes https://github.com/TryGhost/Ghost/issues/12506

- adds an error handler that will rename the backup folder to the original name if the newly uploaded theme wasn't saved successfully
2021-02-23 10:50:23 +00:00
Daniel Lockyer 50f40f3e1c
v3.41.7 2021-02-22 18:37:54 +00:00
Daniel Lockyer 65808e584b
Updated Ghost-Admin to v3.41.7 2021-02-22 18:37:53 +00:00
Fabien O'Carroll 93290aa9b3 🐛 Fixed comping members w/ active subscription
closes https://github.com/TryGhost/Team/issues/475
refs 2ea1a17919

This version of the members-api contains a fix in the logic for updating
existing subscriptions to be complimentary. We now correctly access and
pass the `subscription_id` property, rather than the internal `id`
2021-02-22 14:17:11 +00:00
Kevin Ansfield 33e57c408a Removed logging require in `db/connection.js` (#12690)
refs https://github.com/TryGhost/Ghost/issues/12496

- having the logging require here means that workers wanting to use the db are unable to do so without requiring logging as a side-effect
- `connection.loggingHook` does not appear to be widely used for anything outside of specific debugging scenarios when using MySQL so it should be safe to disable until a proper fix is found for workers+logging leaking file descriptors
2021-02-22 13:05:01 +00:00
Kevin Ansfield 4d20e466e5 Removed models require from analytics job (#12689)
refs https://github.com/TryGhost/Ghost/issues/12496

By requiring the models layer the shared logging util was being required as a side-effect causing the open file descriptors problem to continue. Removing logging from the models layer isn't feasible due to deep require chains spreading across the codebase, it's much quicker to remove the need for models in the analytics job.

- models layer was only needed because it's used by the session service
- updated analytics job to create it's own instance of `EmailAnalyticsService` rather than the default instance in order to pass in custom dependencies
- pass in custom `logging` object that uses `parentPort.postMessage` as a way of writing log output
- pass in custom `settings` object that returns settings that have been manually fetched and cached during job instantiation
2021-02-22 13:04:53 +00:00
Naz e30a21aa88 Added custom worker message handler
refs https://github.com/TryGhost/Ghost/issues/12496

- Handling logging in the main thread avoids file handle leaks which happen due to leaky implementation of bunyan logger (see referenced issue for more context)
- Bumped job-manager version to allow for `workerMessageHandler` callback funciton
2021-02-22 13:04:18 +00:00
Naz 179f4181c5 Migrated jobs to use parentPort.postMessage
refs https://github.com/TryGhost/Ghost/issues/12496

- Using ghost-ignition logging caused file handle leaks. As there is no straight-forward way to handle write streams with bunyan (ghost-ignition's underlying logging library) this method of logging was chosen as an alternative to keep the amount of open file handles to minimum
- The follow up changes will include custom formatter for jobs service which should make logging match the same format  as has been used inside the jobs
2021-02-22 13:02:41 +00:00
Kevin Ansfield e59ed22a4d
🐛 Fixed unexpected members-only content appearing in excerpt field (#12670)
closes https://github.com/TryGhost/Team/issues/468

- updated post-gating
  - clears excerpt if there's no access
2021-02-22 09:51:44 +00:00
Daniel Lockyer 22f6b44cd2
v3.41.6 2021-02-17 17:22:39 +00:00
Daniel Lockyer a98f6a54e3
Updated Ghost-Admin to v3.41.6 2021-02-17 17:22:39 +00:00
Daniel Lockyer 9a4be0007c
🐛 Fixed payment methods not getting attached to subscriptions
no issue

- when a customer updated their card, this wasn't being attached to the
  subscription due to a code issue
- this meant that an expired card may still be the default payment
  method, causing renewals to fail
- this was due to a missing `await` and an incorrect subscription ID
  extraction in the underlying members-api package
- this commit bumps the members-api to fix this
2021-02-17 17:15:33 +00:00
KiraLT 92793ab56b
🐛 Fixed EADDRINUSE error handling on NodeJS >=13 (#12591)
closes https://github.com/TryGhost/Ghost#12562

- From NodeJS v13 `error.errno` returns error code instead of a string. Because  of that use friendly "port is already in use" message did not work anymore. 
- Changed to use `error.code` which acts the same way as `error.errno` in older NodeJS versions.
2021-02-16 13:21:21 +00:00
Daniel Lockyer d284c6469a
v3.41.5 2021-02-11 18:39:15 +00:00
Daniel Lockyer d5ba36445d
Updated Ghost-Admin to v3.41.5 2021-02-11 18:39:15 +00:00
Daniel Lockyer 59af54996a
🐛 Fixed new paid members showing up with status as 'incomplete'
no issue

- webhooks from Stripe may come in out-of-order, with the "created"
  webhook arriving after the "updated" one
- this would cause a subscription record with "active" to then be
  overwritten with "incomplete"
- due to a rewrite in members-api, we weren't re-fetching the Stripe record
  before attempting to update the DB
- this commit bumps members-api, which fixes this issue
2021-02-11 18:30:54 +00:00
Daniel Lockyer f39d45cdf5
v3.41.4 2021-02-09 11:33:01 +00:00
Daniel Lockyer edb94457c3
Updated Ghost-Admin to v3.41.4 2021-02-09 11:33:01 +00:00
Sanne de Vries 54a4a49b9d Fixed bug for newsletter bookmarks without author displaying redundant separator 2021-02-09 09:49:18 +01:00
Rish 2ef5fb8380 Updated {{content}} helper partial template name
no issue
refs e3a0bb535f

Previously, {{content}} helper was updated use default or custom template to show a CTA when trying to use helper without access to content.

While the change was expected to not affect any existing themes as `{{content}}` helper is not supposed to be used on member sites without `access` check, we found quite a few themes use a pattern of using `content.hbs` with `{{content}}` helper inside them as default, which causes infinite loop in how content helper works in certain cases.

Whilst this followed the pattern of the other helpers using a partial with the same name, there are 2 key differences:

- this partial template pattern is being introduced way after the inception of themes with a fairly generic name “content”
- this partial template isn’t used to render the helper all the time - just the CTA part under certain circumstances.

This change updates the template name to `content-cta.hbs` to which makes it less likely to clash, and makes more sense as to what it is.
2021-02-09 14:05:49 +05:30
Sanne de Vries f1555e2cb2 Fixed gmail bug for newsletter bookmark cards not displaying correctly 2021-02-08 16:53:26 +01:00
Fabien O'Carroll 33910db1ec
🐛 Fixed Member model removing labels when unset
closes https://github.com/TryGhost/Ghost/issues/12600

The bookshelf-relations plugin which we use will **remove** all
relations when they are set to an empty array, but will leave them alone
if it's set to undefined.

Our logic to deduplicate uppercase & lowercase version of the same label
was in advertently always setting the labels to an array, but when the
model was saved without passing the labels, this array would be empty.

Here we've added a check which will skip all label handling, if there
are no labels set.
2021-02-08 09:44:47 +00:00
Daniel Lockyer 59c51f3862
Updated CI workflow for 3.x branch changes
- this branch is now the maintenance branch for 3.x so we don't want to
  build canary packages on it
- also updates the Slack notification if-statements to check if we're on
  the 3.x branch
2021-02-05 10:05:17 +00:00
Daniel Lockyer 8737267001
v3.41.3 2021-02-01 14:40:51 +00:00
Daniel Lockyer 43fe53e5c8
Updated Ghost-Admin to v3.41.3 2021-02-01 14:40:51 +00:00
renovate[bot] bc4ed6a614
Update dependency @tryghost/members-api to v0.37.7 (#12586)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-01 14:11:53 +05:30
Renovate Bot 9e6be47f51
Update dependency keypair to v1.0.2 2021-02-01 03:05:29 +00:00