Giter VIP home page Giter VIP logo

digestif's People

Contributors

jc avatar

Stargazers

jd avatar

Watchers

James Cloos avatar

digestif's Issues

Handle invalid or unexpected responses from source APIs

Errors in the log files suggest that Flickr can return an unexpected response. The site breaks because we don't have failsafes in place. I've seen this happen when trying to retrieve the name of the photostream.

At the very least we should not return server 500.

  • Log the output of API to be able to program against the output
  • Return a failover string (flickr id? instagram id) when get an unexpected response from the API

Improve open rate

Idea: if we notice digests are not being opened (mandrill api call for opened status, or url never visited) we should send an email reminding them to check the spam folder or to unsubscribe if they are no longer interested.

Limit the number of times this email is sent.

Configuration file for private keys/data

All private keys and data are hardcoded. In order to push the code into a public repository this data should be placed in a configuration file which is not committed.

Configuration for the following, also consider ramifications of regenerating these keys:

  • Flickr consumer key and secret
  • Instagram consumer key and secret
  • Mandrill API key
  • Sendgrid API username and password
  • Flask secret
  • hashids secret
  • MySQL database URI (includes username and password)

Handle rejection status code from email service

Some subscribers have been added to the rejection blacklist. The digest is never marked as delivered and is sent again every day.

Possibilities:

  1. add a rejection count and once the count exceeds k mark do not attempt to resend
  2. on rejection just discard the digest and update the subscription sent dates
  3. on rejection remove the user

...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.