Last modified: 2013-06-27 14:52:32 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T49519, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47519 - Gerrit actively blocks reviewing images and other media files
Gerrit actively blocks reviewing images and other media files
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Git/Gerrit (Other open bugs)
wmf-deployment
All All
: High major (vote)
: ---
Assigned To: Nobody - You can work on this!
: upstream
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-22 21:51 UTC by Isarra
Modified: 2013-06-27 14:52 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Isarra 2013-04-22 21:51:39 UTC
Gerrit doesn't just not include effective tools for reviewing/diffing images and other media, it also makes it inordinately hard to view old and new versions by putting them in archives.

If there is no configuration that can be changed to make it so images and whatnot can be displayed inline or at very least directly downloaded, I propose we raise a mob and burn down upstream because this is just ridiculous.
Comment 1 Bartosz Dziewoński 2013-04-22 21:53:41 UTC
Hm, they used to be displayed in side-by-side diff a few months ago at least, but they are no more.

Live example: https://gerrit.wikimedia.org/r/#/c/54136/
Comment 2 Brion Vibber 2013-04-22 21:58:08 UTC
There *is* a direct download link on the diff view -- it's the funky icon with the blue arrow to the right of the patch revision numbers. Yeah, easy to discover eh?

Could... use some love.

Also this doesn't work well for 'odd' file types such as the .ico files generally used for favicons. (See eg <https://gerrit.wikimedia.org/r/#/c/60338/1/docroot/bits/favicon/wikidata.ico> where it offers a *zip file* of the .ico download.)

Personally I just check out the change in a local repo copy and look at the file manually. :P
Comment 3 Chad H. 2013-04-22 22:06:20 UTC
This definitely used to work.
Comment 4 christian 2013-04-24 20:35:40 UTC
(In reply to comment #2)
> Also this doesn't work well for 'odd' file types such as the .ico files

.ico files were recognized as application/octet-stream. Hence, there were
not shown.

Pushed a fix for the .ico problem to:
https://gerrit-review.googlesource.com/#/c/45010/
Comment 5 christian 2013-04-24 20:38:00 UTC
As for the general problem of showing images in diffs:

* For unified diffs, the change in ustream is at
    https://gerrit-review.googlesource.com/#/c/45000/

* For side-by-side diffs, this seems to have never been implemented.
  Now it is at
    https://gerrit-review.googlesource.com/#/c/45007/
Comment 6 Andre Klapper 2013-05-17 12:58:48 UTC
(In reply to comment #5)
> As for the general problem of showing images in diffs:
> * For unified diffs, the change in ustream is at
>     https://gerrit-review.googlesource.com/#/c/45000/
> * For side-by-side diffs, this seems to have never been implemented.
>     https://gerrit-review.googlesource.com/#/c/45007/

Christian:
Both upstream patches have been merged, are there plans to backport/deploy to the WM Gerrit instance (or has this happened already)?
Comment 7 Chad H. 2013-05-17 13:01:11 UTC
We're working on putting together a new build, these patches will be included in that.
Comment 8 Chad H. 2013-06-27 14:52:32 UTC
This has been fixed in our latest build we deployed, 2.7-rc2-505-g7502a46.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links