{"action":"opened","issue":{"url":"https://api.github.com/repos/neurosynth/neurosynth-web/issues/79","labels_url":"https://api.github.com/repos/neurosynth/neurosynth-web/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/neurosynth/neurosynth-web/issues/79/comments","events_url":"https://api.github.com/repos/neurosynth/neurosynth-web/issues/79/events","html_url":"https://github.com/neurosynth/neurosynth-web/issues/79","id":71663710,"number":79,"title":"Track time at which custom analyses were last run to prevent unnecessary computation","user":{"login":"tyarkoni","id":303932,"avatar_url":"https://avatars.githubusercontent.com/u/303932?v=3","gravatar_id":"","url":"https://api.github.com/users/tyarkoni","html_url":"https://github.com/tyarkoni","followers_url":"https://api.github.com/users/tyarkoni/followers","following_url":"https://api.github.com/users/tyarkoni/following{/other_user}","gists_url":"https://api.github.com/users/tyarkoni/gists{/gist_id}","starred_url":"https://api.github.com/users/tyarkoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyarkoni/subscriptions","organizations_url":"https://api.github.com/users/tyarkoni/orgs","repos_url":"https://api.github.com/users/tyarkoni/repos","events_url":"https://api.github.com/users/tyarkoni/events{/privacy}","received_events_url":"https://api.github.com/users/tyarkoni/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"tyarkoni","id":303932,"avatar_url":"https://avatars.githubusercontent.com/u/303932?v=3","gravatar_id":"","url":"https://api.github.com/users/tyarkoni","html_url":"https://github.com/tyarkoni","followers_url":"https://api.github.com/users/tyarkoni/followers","following_url":"https://api.github.com/users/tyarkoni/following{/other_user}","gists_url":"https://api.github.com/users/tyarkoni/gists{/gist_id}","starred_url":"https://api.github.com/users/tyarkoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyarkoni/subscriptions","organizations_url":"https://api.github.com/users/tyarkoni/orgs","repos_url":"https://api.github.com/users/tyarkoni/repos","events_url":"https://api.github.com/users/tyarkoni/events{/privacy}","received_events_url":"https://api.github.com/users/tyarkoni/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/neurosynth/neurosynth-web/milestones/1","html_url":"https://github.com/neurosynth/neurosynth-web/milestones/Custom%20analyses","labels_url":"https://api.github.com/repos/neurosynth/neurosynth-web/milestones/1/labels","id":1058796,"number":1,"title":"Custom analyses","description":"Adds functionality to conduct custom analyses online.","creator":{"login":"tyarkoni","id":303932,"avatar_url":"https://avatars.githubusercontent.com/u/303932?v=3","gravatar_id":"","url":"https://api.github.com/users/tyarkoni","html_url":"https://github.com/tyarkoni","followers_url":"https://api.github.com/users/tyarkoni/followers","following_url":"https://api.github.com/users/tyarkoni/following{/other_user}","gists_url":"https://api.github.com/users/tyarkoni/gists{/gist_id}","starred_url":"https://api.github.com/users/tyarkoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyarkoni/subscriptions","organizations_url":"https://api.github.com/users/tyarkoni/orgs","repos_url":"https://api.github.com/users/tyarkoni/repos","events_url":"https://api.github.com/users/tyarkoni/events{/privacy}","received_events_url":"https://api.github.com/users/tyarkoni/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":19,"state":"open","created_at":"2015-04-08T17:27:05Z","updated_at":"2015-04-28T18:17:32Z","due_on":"2015-04-30T05:00:00Z","closed_at":null},"comments":0,"created_at":"2015-04-28T18:17:32Z","updated_at":"2015-04-28T18:17:32Z","closed_at":null,"body":"To prevent unnecessary re-generation of meta-analysis images every time a user hits the \"Run\" button (i.e., in cases where the custom analysis hasn't actually changed since the last run), we need to add a last_run_at field to the CustomAnalysis model. Then the run() function in the controller should only re-generate the analysis if last_run_at < updated_at."}}