Skip to content
This repository was archived by the owner on Apr 6, 2022. It is now read-only.

Conversation

tpreusse
Copy link
Contributor

  • activate inactive yearly if available on monthly end (on stripe webhook)
    • based on a scripted added on master: 3747a4b
  • sync nl subscriptions in various places
  • rm reduced membership purchase restriction
    switching from a monthly to a reduced yearly should be allowed. generally the restriction is somewhat arbitrary.

switching from a monthly to a reduce membership should be possible, discussed with lolo
@tpreusse tpreusse temporarily deployed to republik-api-staging February 23, 2018 01:23 Inactive
@coveralls
Copy link

coveralls commented Feb 23, 2018

Pull Request Test Coverage Report for Build 13

  • 0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 59.783%

Totals Coverage Status
Change from base Build 12: 0.0%
Covered Lines: 93
Relevant Lines: 136

💛 - Coveralls

@tpreusse tpreusse requested a review from uxengine February 23, 2018 09:13
inactiveMemberships.sort((a, b) => ascending(a.sequenceNumber, b.sequenceNumber))

const electedMembership = (
inactiveMemberships.find(m => m.voucherCode === null) ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this line necessary considering || !m.voucherCode in line 43?

Copy link
Contributor Author

@tpreusse tpreusse Feb 23, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes because above it ensures that only none give abos or redeemed give abos are considere for activation. Here it says that a reedemed abo should be used first (same logic as January activation).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, so basically a null voucherCode represents redeemed, while a "normal" membership would have an undefined voucherCode, correct? (Just trying to understand)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

normal inactive memberships have a voucherCode string

@tpreusse tpreusse merged commit 33061c8 into master Feb 23, 2018
@tpreusse tpreusse deleted the fixes-before-stitches branch February 23, 2018 10:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants