Page MenuHome

Looper feature parity with the Development Fund implementation
AbandonedPublic

Authored by Anna Sirota (railla) on Apr 16 2020, 12:15 AM.

Details

Summary

Strategy:

  • Close existing diffs
    • D7240
    • D7243
    • D7244
      • Regenerate the Braintree token as part of the invalid form response (done by reusing Sybren's get_token from blender-fund
      • Address preferred_currency
      • Address reCaptcha
    • D7245
  • Create new branch
  • Do improvements there
  • Ask for review

Open Tasks:

  • Are subscriptions with automatic and manual both supported by Braintree payment gateway?
  • Verify missing geolocation tests

Diff Detail

Repository
rL Looper

Event Timeline

Francesco Siddi (fsiddi) requested review of this revision.Apr 16 2020, 12:15 AM
Francesco Siddi (fsiddi) created this revision.
Francesco Siddi (fsiddi) retitled this revision from Looper feature parity with the Dev Fund implementation to Looper feature parity with the Development Fund implementation.Apr 16 2020, 12:21 AM
Francesco Siddi (fsiddi) edited the summary of this revision. (Show Details)
Francesco Siddi (fsiddi) edited the summary of this revision. (Show Details)
Sybren A. Stüvel (sybren) added inline comments.
README.md
9

I think this is not the same as "subscriptions for which payment is directly managed by you". These three lines describe "automatic", "manual", and "managed". In your version, they describe "automatic", "manual", and "automatic or manual".

Francesco Siddi (fsiddi) edited the summary of this revision. (Show Details)
  • Update README.md
Francesco Siddi (fsiddi) marked an inline comment as done.Apr 27 2020, 6:43 PM
Francesco Siddi (fsiddi) added inline comments.
README.md
9

Addressed in updated diff.

Francesco Siddi (fsiddi) edited the summary of this revision. (Show Details)Jun 7 2020, 8:38 PM
This revision was not accepted when it landed; it landed in state Needs Review.Jun 7 2020, 10:59 PM
This revision was automatically updated to reflect the committed changes.
Francesco Siddi (fsiddi) marked an inline comment as done.
  • Update README.md
  • Update README.md
  • Update README.md
  • Deps: Move attrs from dev to main
  • Fix typo in README.md
  • Add comment about "black" package
  • Update .gitignore
  • Fix typo
  • Add EMAIL_SUPPORT setting
  • Port Braintree token generation from blender-fund
Sybren A. Stüvel (sybren) requested changes to this revision.Jun 9 2020, 10:53 AM

Lots of comments on what is my own code ;-)

looper/views/add_payment_method.py
93–97

Constructing the error message from a gateway error should be a separate function.
Probably something for a future cleanup commit, though.

looper/views/tokens.py
42

datetime.timedelta(minutes=10) should be stored in a 'constant' at the top of the file, so it can get a descriptive name, something like GATEWAY_TOKEN_EXPIRY.

tests/test_checkout.py
61

Rename test_client_token_happy to test_fresh_session

71

Rename to test_token_in_session__missing_expiry

83

Rename to test_token_in_session__expired

95

Rename to test_token_in_session__not_expired.

98

See comment above about the constant: here datetime.timedelta(minutes=5) should then be replaced with something like GATEWAY_TOKEN_EXPIRY / 2.

105

This comment is nonsense, it is trustworthy so the cached token should be used.

This revision now requires changes to proceed.Jun 9 2020, 10:53 AM
Anna Sirota (railla) commandeered this revision.Feb 11 2021, 2:51 PM
Anna Sirota (railla) updated this revision to Diff 33861.
  • Include devfund's GeoLite2;
  • Address review comments:
    • Better test names;
    • Nonsensical comment removed.
Anna Sirota (railla) marked 7 inline comments as done.Feb 11 2021, 2:54 PM
This revision is now accepted and ready to land.Feb 11 2021, 3:18 PM

Patches linked from here were either salvaged in some form or abandoned, this can be closed now.