Fabien 'egg' O'Carroll
f3130d9538
Passed request referrer to magic link service ( #408 )
...
refs https://github.com/TryGhost/Team/issues/1174
This paves the way for Ghost to be able to redirect to the referrer
page when dealign with signup magic links. We pass the referrer for
all types of magic links however, to allow extension of this
functionality in the future.
We've also removed the concept of `requestSrc` which has been unused
for a while now.
2022-07-15 11:02:58 +01:00
renovate[bot]
5fc7a90bf9
Lock file maintenance
2022-07-14 20:04:41 +00:00
Naz
ef1c4764d3
Published new versions
...
- @tryghost/members-api@8.2.1
2022-07-14 16:15:02 +01:00
Naz
08b49a3475
Updated method signatures and added JSDocs
...
refs https://github.com/TryGhost/Team/issues/1674
- While preparing the changes had a look around and made small refactors to understand the codebase a little better. In general it's best to keep the method parameters as small and precise as possible instead of passing around a "bag-of-all-the-things" like "data" around
2022-07-15 03:12:35 +12:00
Naz
05105e1173
Updated method signatures and added JSDocs
...
refs https://github.com/TryGhost/Team/issues/1674
- While preparing the changes had a look around and made small refactors to understand the codebase a little better. In general it's best to keep the method parameters as small and precise as possible instead of passing around a "bag-of-all-the-things" like "data" around
2022-07-14 12:54:58 +01:00
Naz
2a7166ffc3
Fixed typo
2022-07-14 12:10:18 +01:00
Simon Backx
3ecff41a11
Published new versions
...
- @tryghost/members-api@8.2.0
2022-07-07 14:15:06 +02:00
Simon Backx
011c7cb0a2
Added support for updating member enable_comment_notifications
...
refs https://github.com/TryGhost/Team/issues/1664
This makes it possible for members to update their comment notification preferences
2022-07-07 14:14:02 +02:00
renovate[bot]
a0294c65b2
Update dependency nock to v13.2.8
2022-06-30 19:55:09 +00:00
Renovate Bot
c9e60ac690
Update dependency nock to v13.2.7
2022-06-15 03:52:01 +00:00
Renovate Bot
f1118ead35
Update dependency nock to v13.2.6
2022-06-03 18:48:31 +00:00
Fabien "egg" O'Carroll
1256dea36e
Published new versions
...
- @tryghost/members-api@8.1.3
2022-06-01 10:43:47 +01:00
Fabien 'egg' O'Carroll
8e2c600612
Fixed checkout session creation for existing members ( #403 )
...
refs https://github.com/TryGhost/Team/issues/1526
We weren't using the `req.body.customerEmail` to load a member and
check their existing tiers, this meant that existing members which
were signed out and attempted to create a stripe checkout session were
able to.
2022-06-01 10:40:52 +01:00
Simon Backx
5bef2a1068
Published new versions
...
- @tryghost/members-api@8.1.2
- @tryghost/members-importer@0.5.16
2022-05-25 13:15:17 +02:00
Simon Backx
b8e43ba675
Removed usage of membersActivityFeed flag
...
refs https://github.com/TryGhost/Team/issues/1616
2022-05-25 10:37:49 +02:00
Simon Backx
9b0259dc6f
Removed usage of dashboardV5 feature flag
...
refs https://github.com/TryGhost/Team/issues/1616
2022-05-25 10:29:55 +02:00
Simon Backx
14a7d1f00f
Cleaned up multipleProducts and multipleNewsletters flags
2022-05-25 10:25:02 +02:00
Naz
0c83a60578
Published new versions
...
- @tryghost/members-api@8.1.1
2022-05-23 18:59:02 +08:00
Naz
9756094ae2
🐛 Fixed signing key mismatching in JWT/JWKS
...
refs https://github.com/TryGhost/Team/issues/1640
closes https://github.com/TryGhost/Members/pull/401/
refs https://forum.ghost.org/t/ghost-jwt-question-possible-bug/30210
- Without `keyid` parameter some of the clien libraries were not able to match the signin key to verify JWT
- Missing `keyid` parameter allows to indicate the key used to secure JWS (as per https://www.rfc-editor.org/rfc/rfc7515#section-4.1.4 ) and resolves the automatic matching issue on the client.
- The `kid` parameter was left in claims to avoid accidental breaking changes.
2022-05-23 18:45:08 +08:00
Naz
900f7951b7
Added test coverage for JWKS token verification
...
refs https://github.com/TryGhost/Team/issues/1640
- Adds coverage for token verification based on public key exposed through the `/.well-known/jwks.json` endpoint
2022-05-23 17:59:33 +08:00
Naz
9e96916a6d
Added basic test coverage for the token service
...
refs https://github.com/TryGhost/Team/issues/1640
- This is groundwork before fixing the referenced bug
2022-05-23 15:59:18 +08:00
Simon Backx
6243b99181
Published new versions
...
- @tryghost/members-api@8.1.0
2022-05-20 12:26:44 +02:00
Simon Backx
62c992c8e3
Improved bulk unsubscribe operation to use member_id column ( #400 )
...
refs https://ghost.slack.com/archives/C02G9E68C/p1652980792270029
When bulk unsubscribing members, the number of deleted newsletter relations are returned instead of the number of members with newsletters that were cleared. This update deletes newsletter relations on member_id, so we can return the count of members instead of newsletter relations that were deleted.
Tests in https://github.com/TryGhost/Ghost/pull/14871
2022-05-20 12:25:58 +02:00
Simon Backx
90fc7f5064
Published new versions
...
- @tryghost/members-csv@1.2.16
- @tryghost/members-importer@0.5.15
2022-05-19 18:11:03 +02:00
Simon Backx
70229e4fd3
Fixed members-csv not using renamed tiers field
2022-05-19 18:09:50 +02:00
Rishabh
f6d9b965db
Published new versions
...
- @tryghost/members-api@8.0.1
2022-05-18 13:13:51 +05:30
Rishabh
63a859587b
Fixed checkout session creation with just offer id
...
- In case of an offer id present in stripe checkout session, the cadence and tier id values can be null
- this fixes the invalid 400 thrown on missing cadence value while creating stripe checkout session for offer
2022-05-18 13:12:40 +05:30
Fabien "egg" O'Carroll
c41f067ea8
Published new versions
...
- @tryghost/domain-events@0.1.14
- @tryghost/express-dynamic-redirects@0.2.13
- @tryghost/magic-link@1.0.26
- @tryghost/member-analytics-service@0.1.16
- @tryghost/member-events@0.4.6
- @tryghost/members-analytics-ingress@0.1.17
- @tryghost/members-api@8.0.0
- @tryghost/members-csv@1.2.15
- @tryghost/members-events-service@0.4.3
- @tryghost/members-importer@0.5.14
- @tryghost/members-ssr@1.0.28
- @tryghost/members-offers@0.11.6
- @tryghost/members-payments@0.3.6
- @tryghost/members-stripe-service@0.10.5
- @tryghost/verification-trigger@0.2.5
2022-05-16 19:29:05 +01:00
Fabien 'egg' O'Carroll
676fca7077
Updated Frontend API to work with Tier & Cadence ( #399 )
...
refs https://github.com/TryGhost/Team/issues/1575
Since we are not exposing the underlying Price data anymore, we need to
update the API to work with Tier and Cadence.
2022-05-16 19:27:23 +01:00
Renovate Bot
a599830920
Update dependency c8 to v7.11.3
2022-05-16 05:20:36 +00:00
Matt Hanley
5c682d6f37
Published new versions
...
- @tryghost/members-api@7.0.2
2022-05-12 09:48:58 +01:00
Matt Hanley
f0798578c4
Fixed issue with filter transform not applying to bulk operations
2022-05-12 09:44:30 +01:00
Aileen Nowak
152a2ea41f
Published new versions
...
- @tryghost/domain-events@0.1.13
- @tryghost/express-dynamic-redirects@0.2.12
- @tryghost/magic-link@1.0.25
- @tryghost/member-analytics-service@0.1.15
- @tryghost/member-events@0.4.5
- @tryghost/members-analytics-ingress@0.1.16
- @tryghost/members-api@7.0.1
- @tryghost/members-csv@1.2.14
- @tryghost/members-events-service@0.4.2
- @tryghost/members-importer@0.5.13
- @tryghost/members-ssr@1.0.27
- @tryghost/members-offers@0.11.5
- @tryghost/members-payments@0.3.5
- @tryghost/members-stripe-service@0.10.4
- @tryghost/verification-trigger@0.2.4
2022-05-10 11:40:41 -04:00
Aileen Nowak
376db4d085
Removed duplicate usage of importer
source
...
no issue
- Setting a dedicated source for imported members was already done with 455778662c
- This unifies the same source but keeps the usage of context setting on init alive
2022-05-10 10:53:19 -04:00
Renovate Bot
7af0eb6fdf
Update dependency sinon to v14
2022-05-09 04:41:01 +00:00
Fabien "egg" O'Carroll
e7e7036f61
Published new versions
...
- @tryghost/members-api@7.0.0
2022-05-04 10:58:01 +01:00
Fabien 'egg' O'Carroll
b717c90b22
Removed hasActiveStripeSubscriptions method ( #396 )
...
refs https://github.com/TryGhost/Team/issues/1147
This endpoint is no longer used in 5.0
2022-05-04 10:56:47 +01:00
Simon Backx
0111e23fb7
Published new versions
...
- @tryghost/domain-events@0.1.12
- @tryghost/express-dynamic-redirects@0.2.11
- @tryghost/magic-link@1.0.24
- @tryghost/member-analytics-service@0.1.14
- @tryghost/member-events@0.4.4
- @tryghost/members-analytics-ingress@0.1.15
- @tryghost/members-api@6.3.1
- @tryghost/members-csv@1.2.13
- @tryghost/members-events-service@0.4.1
- @tryghost/members-importer@0.5.12
- @tryghost/members-ssr@1.0.26
- @tryghost/members-offers@0.11.4
- @tryghost/members-payments@0.3.4
- @tryghost/members-stripe-service@0.10.3
- @tryghost/verification-trigger@0.2.3
2022-05-03 16:40:39 +02:00
Simon Backx
eb8cf49f40
Fixed updating non-existing member internal error ( #395 )
...
refs https://github.com/TryGhost/Team/issues/1580
- When you tried to update a member that doesn't exist, an internal error was thrown
- It should throw a 'not found' error instead
- Optimized when to fetch the initialMember
Tests for 4.x in https://github.com/TryGhost/Ghost/pull/14657
Tests for 5.x in https://github.com/TryGhost/Ghost/pull/14658
2022-05-03 16:38:55 +02:00
Renovate Bot
bddc9a5159
Update dependency c8 to v7.11.2
2022-05-02 21:39:21 +00:00
Fabien "egg" O'Carroll
b8545d2912
Published new versions
...
- @tryghost/domain-events@0.1.11
- @tryghost/express-dynamic-redirects@0.2.10
- @tryghost/magic-link@1.0.23
- @tryghost/member-analytics-service@0.1.13
- @tryghost/member-events@0.4.3
- @tryghost/members-analytics-ingress@0.1.14
- @tryghost/members-api@6.3.0
- @tryghost/members-csv@1.2.12
- @tryghost/members-events-service@0.4.0
- @tryghost/members-importer@0.5.11
- @tryghost/members-ssr@1.0.25
- @tryghost/members-offers@0.11.3
- @tryghost/members-payments@0.3.3
- @tryghost/members-stripe-service@0.10.2
- @tryghost/verification-trigger@0.2.2
2022-05-02 19:11:55 +01:00
Fabien "egg" O'Carroll
4bda71e464
Ignored last_seen_at in BREAD service
...
refs https://github.com/TryGhost/Members/commit/8a40d8e76
This is needed so that the API cannot edit this read only field.
2022-05-02 19:09:47 +01:00
Simon Backx
8a40d8e76b
Fixed member webhooks ( #394 )
...
refs https://github.com/TryGhost/Team/issues/1577
The call to `edit` was not loading the newsletter relations which is needed
by the serializer used by the webhooks service.
Co-authored-by: Fabien "egg" O'Carroll <fabien@allou.is>
2022-05-02 19:07:30 +01:00
Renovate Bot
cddf87863e
Update dependency mocha to v10
2022-05-02 02:29:13 +00:00
Simon Backx
302b72dddd
Published new versions
...
- @tryghost/members-api@6.2.3
2022-04-28 13:17:42 +02:00
Simon Backx
ae10696e95
Fixed issue with new members always subscribing to defaults
...
no issue
The member was updated when setting the geolocation, but that also included setting subscribed to true.
2022-04-28 13:16:30 +02:00
Simon Backx
266fd79168
Published new versions
...
- @tryghost/members-api@6.2.2
2022-04-28 09:33:24 +02:00
Simon Backx
3cb138ea25
Fixed events not having same created_at as members
...
refs https://github.com/TryGhost/Ghost/pull/14621
refs https://ghost.slack.com/archives/C02G9E68C/p1651126990299689?thread_ts=1651072733.859939&cid=C02G9E68C
- Events didn't always have the same created_at as created members
- This caused a test to fail randomly in the main repo
2022-04-28 09:29:41 +02:00
Aileen Nowak
b6c48bb8e2
Published new versions
...
- @tryghost/members-api@6.2.1
- @tryghost/members-importer@0.5.10
2022-04-27 15:44:04 -04:00
Aileen Nowak
ea237ebcee
Used designated source importer
for members event table
...
no issue
Using a designated source for members being added within the `importer` context will better describe the source in our members event table. It's more consistent with the usage of the other possible sources.
2022-04-27 15:27:19 -04:00