Branch: refs/heads/master
Home: https://github.com/openSUSE/software-o-o
Commit: 643dd54706d66e90517db7bdefbd5dd69a8d5c86
https://github.com/openSUSE/software-o-o/commit/643dd54706d66e90517db7bdefbd...
Author: Alexander Graul
Date: 2019-07-11 (Thu, 11 Jul 2019)
Changed paths:
M app/helpers/distribution_helper.rb
Log Message:
-----------
Handle connection error in retrieve_image_size
FaradayMiddleware::FollowRedirects has a default limit of 3 redirects.
This is not always enough with download.opensuse.org's mirrorbrain
infrastructure. A limit of 5 should work around those cases.
If there are still too many redirects or any other HTTP connection
error, a default of "0" is set instead of raising the error which would
stop rendering the page.
Commit: 5f550ccc3d377ec4db09e07b18f6fa97be00ce53
https://github.com/openSUSE/software-o-o/commit/5f550ccc3d377ec4db09e07b18f6...
Author: Alexander Graul
Date: 2019-07-11 (Thu, 11 Jul 2019)
Changed paths:
M app/helpers/distribution_helper.rb
M app/views/distributions/_distribution.html.erb
Log Message:
-----------
Cache image_size requests
Image sizes don't change much but are read every time a user visits a
distribution page.
Commit: 48152e0910b4a0a6ce169ec13f58a3859250e36d
https://github.com/openSUSE/software-o-o/commit/48152e0910b4a0a6ce169ec13f58...
Author: Alexander Graul
Date: 2019-07-12 (Fri, 12 Jul 2019)
Changed paths:
M app/helpers/distribution_helper.rb
M app/views/distributions/_distribution.html.erb
M test/helper/distribution_helper_test.rb
Log Message:
-----------
Move image_size logic from view to helper
There is no need to save the image_size in the view, just passig the
medium to the helper is enough. `short_description` is called with just
a medium (or "type") as the argument, the method finds out on its own if
it needs to image_size or not.
The view reads a bit clearer this way.
Commit: e03a4c5faabe3a8e3d6e329100861f779a1ab994
https://github.com/openSUSE/software-o-o/commit/e03a4c5faabe3a8e3d6e32910086...
Author: Ana María Martínez Gómez
Date: 2019-07-12 (Fri, 12 Jul 2019)
Changed paths:
M app/helpers/distribution_helper.rb
M app/views/distributions/_distribution.html.erb
M test/helper/distribution_helper_test.rb
Log Message:
-----------
Merge pull request #624 from alexandergraul/improve-automatic_image_size
Improve automatic image size
Compare: https://github.com/openSUSE/software-o-o/compare/fd3e7fb724d1...e03a4c5faabe