{"action":"created","issue":{"url":"https://api.github.com/repos/gedankenstuecke/snpr/issues/200","labels_url":"https://api.github.com/repos/gedankenstuecke/snpr/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/gedankenstuecke/snpr/issues/200/comments","events_url":"https://api.github.com/repos/gedankenstuecke/snpr/issues/200/events","html_url":"https://github.com/gedankenstuecke/snpr/issues/200","id":109908991,"number":200,"title":"FileLink?","user":{"login":"Calvyn82","id":9093519,"avatar_url":"https://avatars.githubusercontent.com/u/9093519?v=3","gravatar_id":"","url":"https://api.github.com/users/Calvyn82","html_url":"https://github.com/Calvyn82","followers_url":"https://api.github.com/users/Calvyn82/followers","following_url":"https://api.github.com/users/Calvyn82/following{/other_user}","gists_url":"https://api.github.com/users/Calvyn82/gists{/gist_id}","starred_url":"https://api.github.com/users/Calvyn82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Calvyn82/subscriptions","organizations_url":"https://api.github.com/users/Calvyn82/orgs","repos_url":"https://api.github.com/users/Calvyn82/repos","events_url":"https://api.github.com/users/Calvyn82/events{/privacy}","received_events_url":"https://api.github.com/users/Calvyn82/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-05T23:54:41Z","updated_at":"2015-10-06T02:26:02Z","closed_at":null,"body":"I'm looking through the models for low-hanging fruit on unit tests or refactoring and I came across FileLink.\r\n\r\nhttps://github.com/gedankenstuecke/snpr/search?utf8=%E2%9C%93&q=filelink\r\n\r\nWhat exactly is this doing, and what are the two controllers doing with it? I'm not seeing it show up in the views anywhere. Is some gem or something using it and I'm not seeing where?"},"comment":{"url":"https://api.github.com/repos/gedankenstuecke/snpr/issues/comments/145725580","html_url":"https://github.com/gedankenstuecke/snpr/issues/200#issuecomment-145725580","issue_url":"https://api.github.com/repos/gedankenstuecke/snpr/issues/200","id":145725580,"user":{"login":"philippbayer","id":413885,"avatar_url":"https://avatars.githubusercontent.com/u/413885?v=3","gravatar_id":"","url":"https://api.github.com/users/philippbayer","html_url":"https://github.com/philippbayer","followers_url":"https://api.github.com/users/philippbayer/followers","following_url":"https://api.github.com/users/philippbayer/following{/other_user}","gists_url":"https://api.github.com/users/philippbayer/gists{/gist_id}","starred_url":"https://api.github.com/users/philippbayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philippbayer/subscriptions","organizations_url":"https://api.github.com/users/philippbayer/orgs","repos_url":"https://api.github.com/users/philippbayer/repos","events_url":"https://api.github.com/users/philippbayer/events{/privacy}","received_events_url":"https://api.github.com/users/philippbayer/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T02:26:02Z","updated_at":"2015-10-06T02:26:02Z","body":"IMO this is old overhang - we used to display the link to the zip-file of all genotypings using this one, since it returns \r\n\r\n    #<ActiveRecord::Relation [#<FileLink id: 1, description: \"all genotypes and phenotypes archive\", url: \"/data/zip/opensnp_datadump.201406061816.zip\", created_at: \"2011-12-13 01:13:54\", updated_at: \"2014-06-06 20:47:08\">]>\r\n\r\nThat way, we always had a link to the newest genotyping zip in the database. But this is now handled by `Zipfulldata.public_path`. \r\n\r\nI think FileLink can go from the looks of it? The controller itself is unchanged from 2013, the genotypes controller lines even go back to 2012"}}