Commit graph

4957 commits

Author SHA1 Message Date
Samuel Clay
216a21a892 Skipping notifications for users not seen in 90 days. 2022-03-02 10:11:30 -05:00
Samuel Clay
dc2fcf190e Formatting with Black 2022-03-02 10:02:48 -05:00
Samuel Clay
20a4487ab9 Merge branch 'master' into magazine
* master:
  Handling missing stories in starring.
2022-02-28 12:50:02 -05:00
Samuel Clay
170529682a Handling missing stories in starring. 2022-02-28 12:39:12 -05:00
Samuel Clay
460de27310 Merge branch 'master' into magazine
* master:
  QuerySet typo
  Allowing multiple story_hashes to be sent to mark story as unread and unstarred. Starring will take longer because of user tags, highlights, and private notes being top level.
2022-02-28 10:50:53 -05:00
Samuel Clay
558ca3f34a QuerySet typo 2022-02-24 12:21:24 -05:00
Samuel Clay
0528f91ada Allowing multiple story_hashes to be sent to mark story as unread and unstarred. Starring will take longer because of user tags, highlights, and private notes being top level. 2022-02-24 11:15:39 -05:00
Samuel Clay
e2cdc90e3f More potential checks for youtube videos in story image preview. 2022-02-23 16:28:16 -05:00
Samuel Clay
f403fb624e Using youtube thumbnails as image url in stories. 2022-02-22 15:50:21 -05:00
Samuel Clay
06c25df199 No longer sending tons of mail to admins. Logging is where that goes. 2022-02-22 10:19:51 -05:00
Samuel Clay
5ed760574d Updating APNS cert instructions to include passphrase 2022-02-20 08:24:43 -05:00
Samuel Clay
7a6037926c Another APNS try. 2022-02-20 08:17:01 -05:00
Samuel Clay
c23d3bcc77 Switching APNS and document cert install. 2022-02-20 08:05:54 -05:00
Samuel Clay
b7afdd7f70 Switching APNS cert. 2022-02-20 07:45:34 -05:00
Samuel Clay
8ec1100129 Switch APNS certs. 2022-02-20 07:35:26 -05:00
Samuel Clay
6315aea480 Moving notifications to new multi-line title format. Also fixing APNS cert. 2022-02-20 07:24:49 -05:00
Samuel Clay
f69a5b16ba Simplifying activation of premium tiers. 2022-02-17 12:27:49 -05:00
Samuel Clay
50d107d897 Adding credit cards to premium upgrade, handling paypal first before stripe payments, and posibly cleaning up how many premium histories we scrub. 2022-02-16 17:11:08 -05:00
Samuel Clay
203a882333 days_of_unread should be default null, so double check at run-time. 2022-02-16 15:46:44 -05:00
Samuel Clay
feff99c504 Merge branch 'master' into pro
* master:
  Showing db error on Profile table
  Adding paypal dependencies for new premium archive and premium pro.
2022-02-16 15:40:59 -05:00
Samuel Clay
0074cf2b53 Showing db error on Profile table 2022-02-16 15:40:51 -05:00
Samuel Clay
17809c4420 Don't cancel paypal subscription on stripe cancelation, only on new active stripe sub. 2022-02-16 13:43:53 -05:00
Samuel Clay
67fd848c5f Bouncing between subscriptions now works in all cases. No proration when switching payment providers though. 2022-02-16 13:27:56 -05:00
Samuel Clay
8dc3573b7d Adding active_provider field to profile to capture most recent payment provider in order to show correction options on feedchooser/premium dialog. Paypal now upgrades, just need to write messaging stating switches should happen at rewewal. 2022-02-16 09:20:43 -05:00
Samuel Clay
01ad0e8656 Paypal refunds are now working. Need to add partial balances when upgrading tiers on paypal. Eventually need to think about refunds for switching providers. 2022-02-10 13:40:07 -05:00
Samuel Clay
0a2a9607f0 Canceling paypal subscriptions correctly. Now need to test switching between the two flawlessly and ensure messaging is always consistent. Also needs refunds. 2022-02-09 12:26:35 -05:00
Samuel Clay
403af0a486 Payments are now reliably going through. Now to handle cancelations adn refunds with the new paypal api. 2022-02-08 21:16:12 -05:00
Samuel Clay
aab86a60d9 Store all seen paypal subscriber ids so we can cancel the second newest one when turning on a new subscription. 2022-02-08 20:56:23 -05:00
Samuel Clay
0dc315b568 Adding paypal ids. Still needs to save old paypal ids when new ones come in. 2022-02-08 18:40:07 -05:00
Samuel Clay
a1517b6266 Adding paypal sub id and paypalrestsdk library. Paypal has what it needs, now to hook up the API which is still unauthorized. 2022-02-08 12:49:40 -05:00
Samuel Clay
c18c16a0c3 Turning off shipping, adding user_id to subscription, and upgrading user. Now need renewals and cancellations. 2022-02-04 17:10:23 -05:00
Samuel Clay
88d07b143c Merge branch 'master' into pro
* master: (31 commits)
  Adding postgres backup log.
  Handling operation failures in flask metrics.
  Locking consul to a working version. Also changing flask status code response to handle custom status codes.
  Explicitly uploading mongo backups
  Only need date once in filename
  Rotating mongo backups
  Using full path for progress.
  Showing full path of postgres backup.
  Separating out restoring backups and storing backups.
  Moving to postgres backup directory.
  Executable postgres backup script.
  Compressing Postgres db sql backup.
  Adding date to tarball to allow for versioning.
  Correcting permissions on mongo backup
  Fixing mongo upload to s3 by using host networking mode.
  Removing unused backup code.
  Forgot import
  Adding progress bar to mongo backup.
  Refactoring aws keys for mongo backups.
  Moving mongo backups
  ...
2022-02-04 13:55:38 -05:00
Samuel Clay
8c58e3aaad Correcting url in widget on standalones. 2022-02-02 16:02:40 -05:00
Samuel Clay
99c4faaa79 Correcting story limit in widget. 2022-02-02 15:44:39 -05:00
Samuel Clay
4df9858eb0 Adding /reader/river_stories_widget which downloads the first image in each story and adds it inline as base64 encoded. 2022-02-02 15:11:50 -05:00
Samuel Clay
7889fe4cf0 Fixing bookmarklet and saved story tags. 2022-01-28 17:05:23 -05:00
Samuel Clay
2ce93043b9 Typo on return url 2022-01-27 12:33:37 -05:00
Samuel Clay
76e2eabda5 With this, all Stripe billing is complete. Subscribe, switch plans, upgrade plans, proration, and cancel plans all work now. Need to hookup Paypal and send upgrade emails. 2022-01-26 16:21:24 -05:00
Samuel Clay
6615745aac Showing next invoice. 2022-01-26 15:51:26 -05:00
Samuel Clay
cebce60096 Cleaning up premium renewal. Needs workflow between upgrading/downgrading plans. 2022-01-26 10:53:56 -05:00
Samuel Clay
26ce1b3e6b Invociing immediately on pro-rated plan switch. 2022-01-25 17:47:46 -05:00
Samuel Clay
07fe59cb57 Upgrading subscriptions with stripe now works, even pro-rated. Need to hook up Paypal and fix all billing inconsistencies. 2022-01-25 17:26:24 -05:00
Samuel Clay
813f5dec9f Adding premium_renewal profile field to track premium cancellations. 2022-01-25 16:08:56 -05:00
Samuel Clay
39047ee938 Merge branch 'master' into pro
* master:
  Task deploy needs single sentry update.
  Turning off PuSH for standalone installs.
2022-01-25 15:46:25 -05:00
Samuel Clay
6a61620d32 Turning off PuSH for standalone installs. 2022-01-25 15:27:29 -05:00
Samuel Clay
71b9b2f3d8 Paypal/stripe return needs user profile for JS. 2022-01-25 10:26:45 -05:00
Samuel Clay
b0f1c5b91b Renaming stripe checkout 2022-01-24 17:33:11 -05:00
Samuel Clay
1b9a6f54d5 Activating premium archive subscription. 2022-01-24 17:23:25 -05:00
Samuel Clay
e47eb575e5 Merge branch 'master' into pro
* master:
  Adding zebra logger.
  Using correct logger.
  Logging stripe webhooks.
  Adding Apple MerchantID for Apple Pay.
2022-01-24 16:38:09 -05:00
Samuel Clay
31936eec4e Using stripe customer if present. 2022-01-24 16:27:37 -05:00