-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
html ebook links are bogus #929
Comments
Ah, I didn't think hard enough. The html files are proposed for download. Anyway, as you said, these versions will rapidly become obsolete, and they don't contain all the fixes that were introduced since Atlas stopped working. I guess that for now, the sanest path is to disable those downloads. I know nothing of S3 or Heroku. As mentioned in progit/progit2#625 |
I think the "right" way to do it with Heroku would be to have the rake job push the built pdfs up to S3, and then store the link in the database. That seems like a lot of complication (including a new billing source!) for a handful of 10MB files. We could probably get by with sticking them in the database. That said, I'm awfully tempted to just rip out the links completely and see if anybody actually cares. |
Until we can come up with a way to generate and propose the pdfs for download, I'd rather the old files weren't proposed at all. The differences in version are a source of annoying questions. Do you have any data on the number of downloads? |
Since #917, we abuse the
ebook_html
database field to store the sha1 of the last book version we imported. But that field is also used to generate a link from each book page. These now look like https://git-scm.com/book/en/1f92accca99927c6a9c74f6fb620a3541048c30e, which does nothing useful (in some cases it just links back to the same book page, in others it's a 500).The "right" fix is to actually change the database schema to store the sha1 elsewhere. But then what would we put in
ebook_html
? We don't actually build a downloadable HTML version of the book anymore. So I'm wondering if this link should simply go away.That raises a similar question for the pdf, mobi, etc, versions. Those are now out of date with the content shown on the site. It looks like you can now build them straight from the progit2 repo. I wonder if we should be doing so, but I think there's a storage question. They're probably a bit large for shoving into the database. I'm not sure I want to get into automatically posting them to S3, though.
/cc @jnavila
The text was updated successfully, but these errors were encountered: