{"action":"opened","number":5854,"pull_request":{"url":"https://api.github.com/repos/spree/spree/pulls/5854","id":26840753,"html_url":"https://github.com/spree/spree/pull/5854","diff_url":"https://github.com/spree/spree/pull/5854.diff","patch_url":"https://github.com/spree/spree/pull/5854.patch","issue_url":"https://api.github.com/repos/spree/spree/issues/5854","number":5854,"state":"open","locked":false,"title":"Making in_stock? cache expirable after 24 hours","user":{"login":"softr8","id":127449,"avatar_url":"https://avatars.githubusercontent.com/u/127449?v=3","gravatar_id":"","url":"https://api.github.com/users/softr8","html_url":"https://github.com/softr8","followers_url":"https://api.github.com/users/softr8/followers","following_url":"https://api.github.com/users/softr8/following{/other_user}","gists_url":"https://api.github.com/users/softr8/gists{/gist_id}","starred_url":"https://api.github.com/users/softr8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/softr8/subscriptions","organizations_url":"https://api.github.com/users/softr8/orgs","repos_url":"https://api.github.com/users/softr8/repos","events_url":"https://api.github.com/users/softr8/events{/privacy}","received_events_url":"https://api.github.com/users/softr8/received_events","type":"User","site_admin":false},"body":"in_stock is cached forever and sometimes the inventory is modified externally or something happens that get's out of sync, with this, at least it'd be expired after a day and recalculated","created_at":"2015-01-05T18:19:49Z","updated_at":"2015-01-05T18:19:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spree/spree/pulls/5854/commits","review_comments_url":"https://api.github.com/repos/spree/spree/pulls/5854/comments","review_comment_url":"https://api.github.com/repos/spree/spree/pulls/comments/{number}","comments_url":"https://api.github.com/repos/spree/spree/issues/5854/comments","statuses_url":"https://api.github.com/repos/spree/spree/statuses/ceb7426c536b4d8d70ced84510cda934f62c4473","head":{"label":"softr8:master","ref":"master","sha":"ceb7426c536b4d8d70ced84510cda934f62c4473","user":{"login":"softr8","id":127449,"avatar_url":"https://avatars.githubusercontent.com/u/127449?v=3","gravatar_id":"","url":"https://api.github.com/users/softr8","html_url":"https://github.com/softr8","followers_url":"https://api.github.com/users/softr8/followers","following_url":"https://api.github.com/users/softr8/following{/other_user}","gists_url":"https://api.github.com/users/softr8/gists{/gist_id}","starred_url":"https://api.github.com/users/softr8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/softr8/subscriptions","organizations_url":"https://api.github.com/users/softr8/orgs","repos_url":"https://api.github.com/users/softr8/repos","events_url":"https://api.github.com/users/softr8/events{/privacy}","received_events_url":"https://api.github.com/users/softr8/received_events","type":"User","site_admin":false},"repo":{"id":10919543,"name":"spree","full_name":"softr8/spree","owner":{"login":"softr8","id":127449,"avatar_url":"https://avatars.githubusercontent.com/u/127449?v=3","gravatar_id":"","url":"https://api.github.com/users/softr8","html_url":"https://github.com/softr8","followers_url":"https://api.github.com/users/softr8/followers","following_url":"https://api.github.com/users/softr8/following{/other_user}","gists_url":"https://api.github.com/users/softr8/gists{/gist_id}","starred_url":"https://api.github.com/users/softr8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/softr8/subscriptions","organizations_url":"https://api.github.com/users/softr8/orgs","repos_url":"https://api.github.com/users/softr8/repos","events_url":"https://api.github.com/users/softr8/events{/privacy}","received_events_url":"https://api.github.com/users/softr8/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/softr8/spree","description":"Spree is a complete open source e-commerce solution for Ruby on Rails.","fork":true,"url":"https://api.github.com/repos/softr8/spree","forks_url":"https://api.github.com/repos/softr8/spree/forks","keys_url":"https://api.github.com/repos/softr8/spree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/softr8/spree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/softr8/spree/teams","hooks_url":"https://api.github.com/repos/softr8/spree/hooks","issue_events_url":"https://api.github.com/repos/softr8/spree/issues/events{/number}","events_url":"https://api.github.com/repos/softr8/spree/events","assignees_url":"https://api.github.com/repos/softr8/spree/assignees{/user}","branches_url":"https://api.github.com/repos/softr8/spree/branches{/branch}","tags_url":"https://api.github.com/repos/softr8/spree/tags","blobs_url":"https://api.github.com/repos/softr8/spree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/softr8/spree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/softr8/spree/git/refs{/sha}","trees_url":"https://api.github.com/repos/softr8/spree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/softr8/spree/statuses/{sha}","languages_url":"https://api.github.com/repos/softr8/spree/languages","stargazers_url":"https://api.github.com/repos/softr8/spree/stargazers","contributors_url":"https://api.github.com/repos/softr8/spree/contributors","subscribers_url":"https://api.github.com/repos/softr8/spree/subscribers","subscription_url":"https://api.github.com/repos/softr8/spree/subscription","commits_url":"https://api.github.com/repos/softr8/spree/commits{/sha}","git_commits_url":"https://api.github.com/repos/softr8/spree/git/commits{/sha}","comments_url":"https://api.github.com/repos/softr8/spree/comments{/number}","issue_comment_url":"https://api.github.com/repos/softr8/spree/issues/comments/{number}","contents_url":"https://api.github.com/repos/softr8/spree/contents/{+path}","compare_url":"https://api.github.com/repos/softr8/spree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/softr8/spree/merges","archive_url":"https://api.github.com/repos/softr8/spree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/softr8/spree/downloads","issues_url":"https://api.github.com/repos/softr8/spree/issues{/number}","pulls_url":"https://api.github.com/repos/softr8/spree/pulls{/number}","milestones_url":"https://api.github.com/repos/softr8/spree/milestones{/number}","notifications_url":"https://api.github.com/repos/softr8/spree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/softr8/spree/labels{/name}","releases_url":"https://api.github.com/repos/softr8/spree/releases{/id}","created_at":"2013-06-24T20:34:59Z","updated_at":"2014-12-31T02:31:36Z","pushed_at":"2014-12-31T02:31:33Z","git_url":"git://github.com/softr8/spree.git","ssh_url":"git@github.com:softr8/spree.git","clone_url":"https://github.com/softr8/spree.git","svn_url":"https://github.com/softr8/spree","homepage":"http://spreecommerce.com","size":65724,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"spree:master","ref":"master","sha":"8cf2a04c260d4f955252e783dd9cc54e67f4aded","user":{"login":"spree","id":56702,"avatar_url":"https://avatars.githubusercontent.com/u/56702?v=3","gravatar_id":"","url":"https://api.github.com/users/spree","html_url":"https://github.com/spree","followers_url":"https://api.github.com/users/spree/followers","following_url":"https://api.github.com/users/spree/following{/other_user}","gists_url":"https://api.github.com/users/spree/gists{/gist_id}","starred_url":"https://api.github.com/users/spree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spree/subscriptions","organizations_url":"https://api.github.com/users/spree/orgs","repos_url":"https://api.github.com/users/spree/repos","events_url":"https://api.github.com/users/spree/events{/privacy}","received_events_url":"https://api.github.com/users/spree/received_events","type":"Organization","site_admin":false},"repo":{"id":3314,"name":"spree","full_name":"spree/spree","owner":{"login":"spree","id":56702,"avatar_url":"https://avatars.githubusercontent.com/u/56702?v=3","gravatar_id":"","url":"https://api.github.com/users/spree","html_url":"https://github.com/spree","followers_url":"https://api.github.com/users/spree/followers","following_url":"https://api.github.com/users/spree/following{/other_user}","gists_url":"https://api.github.com/users/spree/gists{/gist_id}","starred_url":"https://api.github.com/users/spree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spree/subscriptions","organizations_url":"https://api.github.com/users/spree/orgs","repos_url":"https://api.github.com/users/spree/repos","events_url":"https://api.github.com/users/spree/events{/privacy}","received_events_url":"https://api.github.com/users/spree/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spree/spree","description":"Spree is a complete open source e-commerce solution for Ruby on Rails.","fork":false,"url":"https://api.github.com/repos/spree/spree","forks_url":"https://api.github.com/repos/spree/spree/forks","keys_url":"https://api.github.com/repos/spree/spree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spree/spree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spree/spree/teams","hooks_url":"https://api.github.com/repos/spree/spree/hooks","issue_events_url":"https://api.github.com/repos/spree/spree/issues/events{/number}","events_url":"https://api.github.com/repos/spree/spree/events","assignees_url":"https://api.github.com/repos/spree/spree/assignees{/user}","branches_url":"https://api.github.com/repos/spree/spree/branches{/branch}","tags_url":"https://api.github.com/repos/spree/spree/tags","blobs_url":"https://api.github.com/repos/spree/spree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spree/spree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spree/spree/git/refs{/sha}","trees_url":"https://api.github.com/repos/spree/spree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spree/spree/statuses/{sha}","languages_url":"https://api.github.com/repos/spree/spree/languages","stargazers_url":"https://api.github.com/repos/spree/spree/stargazers","contributors_url":"https://api.github.com/repos/spree/spree/contributors","subscribers_url":"https://api.github.com/repos/spree/spree/subscribers","subscription_url":"https://api.github.com/repos/spree/spree/subscription","commits_url":"https://api.github.com/repos/spree/spree/commits{/sha}","git_commits_url":"https://api.github.com/repos/spree/spree/git/commits{/sha}","comments_url":"https://api.github.com/repos/spree/spree/comments{/number}","issue_comment_url":"https://api.github.com/repos/spree/spree/issues/comments/{number}","contents_url":"https://api.github.com/repos/spree/spree/contents/{+path}","compare_url":"https://api.github.com/repos/spree/spree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spree/spree/merges","archive_url":"https://api.github.com/repos/spree/spree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spree/spree/downloads","issues_url":"https://api.github.com/repos/spree/spree/issues{/number}","pulls_url":"https://api.github.com/repos/spree/spree/pulls{/number}","milestones_url":"https://api.github.com/repos/spree/spree/milestones{/number}","notifications_url":"https://api.github.com/repos/spree/spree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spree/spree/labels{/name}","releases_url":"https://api.github.com/repos/spree/spree/releases{/id}","created_at":"2008-03-10T14:45:35Z","updated_at":"2015-01-05T17:17:05Z","pushed_at":"2015-01-05T17:17:05Z","git_url":"git://github.com/spree/spree.git","ssh_url":"git@github.com:spree/spree.git","clone_url":"https://github.com/spree/spree.git","svn_url":"https://github.com/spree/spree","homepage":"http://spreecommerce.com","size":126043,"stargazers_count":5814,"watchers_count":5814,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2706,"mirror_url":null,"open_issues_count":137,"forks":2706,"open_issues":137,"watchers":5814,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spree/spree/pulls/5854"},"html":{"href":"https://github.com/spree/spree/pull/5854"},"issue":{"href":"https://api.github.com/repos/spree/spree/issues/5854"},"comments":{"href":"https://api.github.com/repos/spree/spree/issues/5854/comments"},"review_comments":{"href":"https://api.github.com/repos/spree/spree/pulls/5854/comments"},"review_comment":{"href":"https://api.github.com/repos/spree/spree/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/spree/spree/pulls/5854/commits"},"statuses":{"href":"https://api.github.com/repos/spree/spree/statuses/ceb7426c536b4d8d70ced84510cda934f62c4473"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}