Commit Graph

12207 Commits

Author SHA1 Message Date
Renovate Bot
79b512df95 Update dependency @tryghost/job-manager to v0.7.1 2021-01-13 15:52:06 +00:00
Renovate Bot
1f2cebcc47 Update dependency @tryghost/html-to-mobiledoc to v0.7.9 2021-01-13 15:51:56 +00:00
Renovate Bot
e4adc5564a Update dependency @tryghost/mw-session-from-token to v0.1.14 2021-01-13 15:51:39 +00:00
Renovate Bot
01bf344b14 Update dependency @tryghost/security to v0.2.4 2021-01-13 15:51:08 +00:00
Renovate Bot
5d55a54090 Update dependency @tryghost/url-utils to v0.6.25 2021-01-13 15:50:52 +00:00
Renovate Bot
78afa4cf1f
Update dependency @sentry/node to v5.30.0 2021-01-13 12:06:39 +00:00
Naz
10304c79a4 Refactored members stats module into class
refs #12537

- Class syntax is preferred over module functions because of constructor parameter injection (DI) which allows for easier module decoupling and testing
2021-01-13 22:43:05 +13:00
Naz
e62c4075f0 Moved members stats code out of members controller
refs #12537

- `stats` method in members controller is quite big and does much more then controller method code should - few calls to relevant modules
- Extracted code "as is" into members serivce
- Next step will be to refactor this module as a class pattern with DI parameters
2021-01-13 22:43:05 +13:00
Daniel Lockyer
91633faf24
Updated Ghost-Admin submodule url
no issue

- the repository has been renamed, so this commit bring the URL in line
  with these changes
2021-01-13 09:38:00 +00:00
Renovate Bot
f92cb0f31c
Update dependency @tryghost/zip to v1.1.8 2021-01-12 23:09:37 +00:00
Renovate Bot
51a452bd27
Update dependency @tryghost/vhost-middleware to v1.0.11 2021-01-12 21:09:34 +00:00
Renovate Bot
5805e9d93a
Update dependency @tryghost/helpers to v1.1.37 2021-01-12 19:07:03 +00:00
Kevin Ansfield
63f7f9a827 🐛 Disabled auto-unsubscribe of members on permanent email failure events
refs https://github.com/TryGhost/Team/issues/446

Mailgun permanent failure events do not always correspond to unsubscribe-level events as originally thought, meaning some members could be unsubscribed unexpectedly due to delivery hiccups.

- disabled auto-unsubscribe on permanent failure events in the analytics event processor
- list maintenance will be added back in the future via alternative means
2021-01-12 18:40:31 +00:00
Renovate Bot
92de3f342a
Update dependency @tryghost/admin-api-schema to v1.4.3 2021-01-12 17:06:18 +00:00
Renovate Bot
c985a4f0c8
Update dependency @tryghost/kg-default-cards to v3.1.0 2021-01-12 13:06:22 +00:00
Renovate Bot
f1c78f6336
Update dependency @tryghost/kg-card-factory to v2.1.5 2021-01-12 11:23:04 +00:00
renovate[bot]
b07c278e92
Update dependency @tryghost/kg-markdown-html-renderer to v3 (#12521)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-12 11:21:37 +00:00
Renovate Bot
e4e62a6a7c Update dependency analytics-node to v3.5.0 2021-01-12 10:38:48 +00:00
Renovate Bot
8111cb2f49 Update dependency @tryghost/string to v0.1.15 2021-01-12 10:38:26 +00:00
Renovate Bot
5d1281fcfb Update dependency nconf to v0.11.1 2021-01-08 13:07:00 +00:00
Renovate Bot
bed13e22e5 Update dependency jwks-rsa to v1.12.2 2021-01-08 13:05:15 +00:00
Renovate Bot
7f7bdb9f4d Update dependency @tryghost/html-to-mobiledoc to v0.7.8 2021-01-08 13:04:24 +00:00
Renovate Bot
e71a50d2ad Update dependency @tryghost/social-urls to v0.1.17 2021-01-08 13:04:04 +00:00
Renovate Bot
12b31ec41b Update dependency @tryghost/url-utils to v0.6.24 2021-01-08 13:03:52 +00:00
Renovate Bot
d69b60c3b3 Update dependency @tryghost/adapter-manager to v0.2.6 2021-01-08 13:03:36 +00:00
Renovate Bot
924be50157
Update dependency @tryghost/helpers to v1.1.36 2021-01-07 13:07:41 +00:00
Renovate Bot
dc13ea0562
Update dependency @tryghost/admin-api-schema to v1.4.2 2021-01-07 11:05:56 +00:00
Daniel Lockyer
ea9900c957
v3.40.5 2021-01-07 08:46:16 +00:00
Daniel Lockyer
fef382346a
Updated Ghost-Admin to v3.40.5 2021-01-07 08:46:16 +00:00
Renovate Bot
9b46c89d93
Update dependency sinon to v9.2.3 2021-01-06 15:05:39 +00:00
Naz
b2e7d2bf06 Bumped job-manager version to 0.7.0
closes https://github.com/TryGhost/Ghost-Utils/issues/122
2021-01-06 17:48:05 +13:00
Daniel Lockyer
f28bef5c9e
v3.40.4 2021-01-05 16:46:32 +00:00
Daniel Lockyer
f721891148
Updated Ghost-Admin to v3.40.4 2021-01-05 16:46:31 +00:00
Kevin Ansfield
93fa9b4d9e Removed unnecessary bookshelf-relations config in EmailRecipient model
no issue

- we don't use any of the `bookshelf-relations` plugin's added features for the `EmailRecipient` model so there's no need to opt in to it
2021-01-05 15:28:30 +00:00
Kevin Ansfield
ab834b2615 Updated bookshelf-relations dependency to fix broken release
closes https://github.com/TryGhost/Ghost/issues/12493

- the published version of `bookshelf-relations` 1.4.0 was missing the critical commit that added the new relationship config feature
- v1.4.1 is a valid release
2021-01-05 15:24:45 +00:00
Kevin Ansfield
eccd220461 🐛 Fixed error when deleting a member that has received a newsletter email
closes https://github.com/TryGhost/Ghost/issues/12493

- bumps `bookshelf-relations` to new version that allows for `hasMany` children to be kept when a parent record is destroyed
- adds necessary config to the `Member.email_recipients` relationship to keep related records when a member is deleted
2021-01-05 14:06:20 +00:00
Daniel Lockyer
bc6df8cebe
v3.40.3 2021-01-05 13:10:14 +00:00
Daniel Lockyer
a36c159163
Updated Ghost-Admin to v3.40.3 2021-01-05 13:10:13 +00:00
Rish
d2543462fa 🐛 Fixed reply-to address not set for newsletters
closes https://github.com/TryGhost/Ghost/issues/12492

The changes to email processing models had set replyTo address for an email batch as `reply_to` instead of `replyTo` which was not picked by mailgun service for setting newsletter reply address
2021-01-05 17:58:55 +05:30
Fabien O'Carroll
81218ab467 🐛 Fixed re-enabling of complimentary subscriptions
closes #12503

Since we include _all_ subscriptions in the `stripeSubscriptions`
relation, we must check that for an existing active complimentary
subscription to decide whether or not we should skip creation of a
complimentary subscription
2021-01-05 10:51:05 +00:00
Kukhyeon Heo
7528ec8c3b
🐛 Fixed redirects "to" query params forwarding (#12333)
ref #10898

- The redirects configuration's `to` & `from` URL parameters used to ignore it's query string parameters, which resulted in unexpected behavior
- Current changeset only partially fixes the issue. Now `to` URL's query parameters always take precedence over incoming query parameters and the rest of query parameters are passed through.
2021-01-05 14:11:06 +13:00
Fabien O'Carroll
5af0b5735b 🐛 Added translation for BookshelfRelationsError
refs #12493

This protects against accidental relation errors giving unfriendly
errors messages.
2021-01-04 15:35:43 +00:00
Renovate Bot
9b5184387f Update dependency jwks-rsa to v1.12.1 2021-01-04 08:57:07 +00:00
Renovate Bot
1b0a8f5fbf Update actions/setup-node action to v2 2021-01-04 08:56:33 +00:00
Naz
33bdd2384b 🐛 Fixed incorrect locale loading when changing themes
closes #12271

- When previous active theme did not have locale data for certain language, loading a theme which has such data did not result in correct locale being loaded
- Underlying issue was in settings cache being outdated during theme change related i18n initialization
- Fix focuses on removing settings cache dependency and and rely on most up to date data about currently active theme
- The benefit of this approach is reduced coupling with settings cache
2021-01-04 17:26:22 +13:00
Sumedh
e756af65f2 Removed invalid default 'core' value in settings type
closes #12181
refs https://github.com/TryGhost/Ghost/pull/12265

- The 'core' value is invalid for settings 'type' column
- The 'core' default value for 'type' column in model is also invalid
- Both need to be removed as they are never used and only introduce confusion into the codebase
2021-01-04 15:32:57 +13:00
Renovate Bot
4c52c710b3
Update dependency eslint to v7.17.0 2021-01-04 00:07:54 +00:00
Renovate Bot
2daa87df5b
Update dependency eslint to v7.16.0 2020-12-18 23:06:06 +00:00
Renovate Bot
a0bfec6591
Update dependency @sentry/node to v5.29.2 2020-12-17 20:52:07 +00:00
Renovate Bot
ce6b8364c9
Update dependency sanitize-html to v2.3.0 2020-12-16 16:11:16 +00:00