{"action":"created","issue":{"url":"https://api.github.com/repos/samyun/southwest-price-drop-bot/issues/45","repository_url":"https://api.github.com/repos/samyun/southwest-price-drop-bot","labels_url":"https://api.github.com/repos/samyun/southwest-price-drop-bot/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/samyun/southwest-price-drop-bot/issues/45/comments","events_url":"https://api.github.com/repos/samyun/southwest-price-drop-bot/issues/45/events","html_url":"https://github.com/samyun/southwest-price-drop-bot/issues/45","id":389052221,"node_id":"MDU6SXNzdWUzODkwNTIyMjE=","number":45,"title":"Datastore Persistence","user":{"login":"ribordy","id":2159914,"node_id":"MDQ6VXNlcjIxNTk5MTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/2159914?v=4","gravatar_id":"","url":"https://api.github.com/users/ribordy","html_url":"https://github.com/ribordy","followers_url":"https://api.github.com/users/ribordy/followers","following_url":"https://api.github.com/users/ribordy/following{/other_user}","gists_url":"https://api.github.com/users/ribordy/gists{/gist_id}","starred_url":"https://api.github.com/users/ribordy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ribordy/subscriptions","organizations_url":"https://api.github.com/users/ribordy/orgs","repos_url":"https://api.github.com/users/ribordy/repos","events_url":"https://api.github.com/users/ribordy/events{/privacy}","received_events_url":"https://api.github.com/users/ribordy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-09T18:54:09Z","updated_at":"2018-12-24T01:02:42Z","closed_at":null,"author_association":"NONE","body":"My Redis instance was rebooted by Heroku. As a result, I lost all flights I had been tracking. I don't think Redis is usually intended to be used as a persistent data store, but the paid tiers (starting at $15/mo) of the Heroku Redis add-on do provide persistence and backups. I imagine most users looking to utilize this would be unwilling to pay that cost.\r\n\r\nI haven't poked around much to see how data is being stored, but perhaps it's worth exploring something like Mongo or Postgres?\r\n\r\n(Mostly looking to start a dialog to flesh out any unseen hurdles before I take some time to further investigate)\r\n\r\nI think a postgres DB configured with an ID column and a JSON blob column could more or less serve as a drop-in replacement for Redis"},"comment":{"url":"https://api.github.com/repos/samyun/southwest-price-drop-bot/issues/comments/449673522","html_url":"https://github.com/samyun/southwest-price-drop-bot/issues/45#issuecomment-449673522","issue_url":"https://api.github.com/repos/samyun/southwest-price-drop-bot/issues/45","id":449673522,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTY3MzUyMg==","user":{"login":"samyun","id":4411707,"node_id":"MDQ6VXNlcjQ0MTE3MDc=","avatar_url":"https://avatars0.githubusercontent.com/u/4411707?v=4","gravatar_id":"","url":"https://api.github.com/users/samyun","html_url":"https://github.com/samyun","followers_url":"https://api.github.com/users/samyun/followers","following_url":"https://api.github.com/users/samyun/following{/other_user}","gists_url":"https://api.github.com/users/samyun/gists{/gist_id}","starred_url":"https://api.github.com/users/samyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samyun/subscriptions","organizations_url":"https://api.github.com/users/samyun/orgs","repos_url":"https://api.github.com/users/samyun/repos","events_url":"https://api.github.com/users/samyun/events{/privacy}","received_events_url":"https://api.github.com/users/samyun/received_events","type":"User","site_admin":false},"created_at":"2018-12-24T01:02:42Z","updated_at":"2018-12-24T01:02:42Z","author_association":"OWNER","body":"Huh. Seems like you're right - I thought that the Redis datastore was persistent, but according to the documentation, it's not. \r\n\r\nYou're right - a Postgres or Mongo db would probably be better, but with how busy I've been recently, and with the other bugs to fix, this is something that's going to be pretty low priority. If you, or anyone, wants to jump in and make the change, feel free :) "}}
{"actor":{"display_login":"samyun"}}