Commit Graph

15398 Commits

Author SHA1 Message Date
Daniel Lockyer
54829a4bb8 Updated Admin to v4.35.0 2022-02-04 16:00:26 +00:00
Rishabh Garg
f3119cbf77
Handled default value in post for specific tier content visibility (#14121)
refs https://github.com/TryGhost/Team/issues/1071

Default visibility for a post when set to specific tiers needs special handling as data for specific tiers is stored as an array of tiers on a pivot table. This change handles the default visibility for a new post when set to specific tiers to generate the right default values in model.
2022-02-04 21:00:08 +05:30
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
Rishabh Garg
744e5e57a0
Fixed missing portal product data (#14115)
closes  https://github.com/TryGhost/Team/issues/1311

For some sites, the `portal_products` array was created without any value and due to a possible bug in older version of Ghost, it also didn't get filled on Stripe connect with default product. This causes a side-effect of sites not showing the prices in Portal when tiers beta is enabled or is out as GA. This change populates the missing product data in `portal_product` for sites that have a single tier (haven't enabled tiers beta), as they right now don't have an option to hide the tier.
2022-02-04 19:57:38 +05:30
Rishabh
7959aeed55 Updated tests for default content visibility
refs https://github.com/TryGhost/Team/issues/1071
2022-02-04 19:56:11 +05:30
Rishabh
c99ee980af Added migration to transform default tiers visibility from nql string
refs https://github.com/TryGhost/Team/issues/1071

Default content visiblity for specific tiers is now stored split between `default_content_visiblity` and `default_content_visibility_tiers` setting, with former storing the value as `tiers` and the latter stores the list of tiers that the visibility is restricted to. This migration transforms all existing sites that have default visibility stored as an NQL string from previous versions to follow the new model and store correctly on the new setting.
2022-02-04 19:56:11 +05:30
Rishabh
6f89ccf901 Added default_content_visibility_tiers setting for default tiers visibility
refs https://github.com/TryGhost/Team/issues/1071

Default content visibility for a post can be one of `public|members|paid|tiers`, where `tiers` denotes visibility restricted to specific tiers. This change adds a new setting to store the tier ids when default content visibility is set to `tiers`. This closely matches how the visibility is stored on `posts` table as well, with `visibility` stored as `tiers` and tiers data is stored on tiers pivot table.
2022-02-04 19:56:11 +05:30
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
Fabien 'egg' O'Carroll
d60d24e744
Migrated email filter columns from VARCHAR to TEXT (#14091)
refs https://github.com/TryGhost/Team/issues/1287

Currently we have a hard limit of how large an email filter can be,
which is very restrictive once a site starts using Tiers - by moving
toward a TEXT column, we essentially give the filters unlimited size.

This currently doesn't handle SQLite as there are no limits on VARCHARS
in SQLite.

The down migration is a loop so we don't have to handle values larger than
50 characters
2022-02-04 16:09:35 +02:00
Daniel Lockyer
d14757ec07
Updated lockfile
no issue
2022-02-04 14:49:42 +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
Daniel Lockyer
a1166d575f
Updated migration logging string for correctness
no issue

- we check the presence of `members_free_signup_redirect` here but the
  log line said `members_paid_signup_redirect`
- this must have been missed in review but it's simple enough to fix
2022-02-04 12:54:11 +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
Daniel Lockyer
f55f2b1587
Added check for Ghost-CLI logs in CI
no issue

- we might fail the tests but not produce any logs in Ghost-CLI
- concatenating the logs would then fail because of the lack of existence
  of a directory
- this commit adds a check that files exist before trying to get the
  contents of the files
2022-02-04 09:40:26 +01: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
John O'Nolan
e34d44d52b
Updated DigitalOcean link 2022-02-03 07:36:03 -05: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
Daniel Lockyer
2b5986c2bd Updated Admin to v4.34.3 2022-02-02 15:42:32 +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
Matt Hanley
6d4538cc2b Updated wording on unsubscribe confirmation with paid conditional
refs https://github.com/TryGhost/Team/issues/1228

- We were displaying a message referencing paid subscriptions to all users, which was causing confusion
- We don't have the `member.paid` flag in this context, so we use the match helper on member.status not free
2022-02-02 12:36:41 +00: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
Daniel Lockyer
4714a95748 Updated Admin to v4.34.2 2022-02-01 15:30:00 +00:00
Sam Lord
c7e0cc0bf2
Fixed the TPL variable name used for verification trigger
no issue

- not nice but it get the job done for now
2022-02-01 15:20:20 +00:00
Daniel Lockyer
805bb0b87a
Fixed variable scoping issue with email verification
no issue

- `this` isn't referring to the correct `this` in this scope, and the
  library is an import of the file anyway, so this fixes the undefined
  function call as a result
2022-02-01 13:54:13 +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
Sam Lord
c3eb3cd567 Fix imports triggering verification when below threshold
no issue

Swapped the variable names for importSize and importThreshold
2022-02-01 12:07:37 +00:00
Sam Lord
77f2acaf65 Fix usage of "ghostMailer" in email verification trigger
no issue

Introduced bug when refactoring the verification trigger by referencing an undefined member.
2022-02-01 12:07:32 +00:00
Sam Lord
c9ac6deb9b Fix imports triggering verification when below threshold
no issue

Swapped the variable names for importSize and importThreshold
2022-02-01 12:04:39 +00:00