New issue
Advanced search Search tips

Issue 641612 link

Starred by 4 users

Issue metadata

Status: WontFix
Owner:
Closed: May 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

Rietveld Polymer UI expands context with wrong line numbers.

Project Member Reported by lgar...@chromium.org, Aug 26 2016

Issue description

Chrome 54.0.2837.0
OSX 10.11.6

What steps will reproduce the problem?
(1) Visit https://codereview.chromium.org/2107123002 with the "non-deprecated"/Polymer UI.
(2) Click on patch 5  >website_settings_bubble_controller.mm
(3) Try to expand between lines 666 and 668 (right side of diff)

What is the expected output?
The line that is added inbetween is line 667.

What do you see instead?
Line 629 is added instead.

I can't tell if the actual context lines are wrong, or just the numbering. In any case, this makes the context expansion look very unreliable.
 
Screencast.
line-numbers-rietveld.mov
17.3 MB Download
Note: this happens with any other range I click on in the file, not just that one.
Also, I just checked, and the content that is inserted comes from the wrong line numbers (629 in my example).
Cc: esprehn@chromium.org
Summary: Rietveld Polymer UI expands context with wrong line numbers. (was: Rietveld Polymer UI has expands context with wrong line numbers.)
Labels: -Pri-1 Pri-2
Yeah this is an old bug, the API that rietveld provides for doing content expansion is actually just HTML that the server renders, parses as HTML in python, then transforms into JSON. To insert the context into the Polymer UI I have to them map the lines (which are not source lines, but *UI lines from the old UI* into the line numbers shown in the new UI which map to real source numbers).

I think this is pretty rare, I wouldn't say it's "unreliable" most of the time :P

I'll see if I have some time to figure out if this is something that's fixable. :)
Owner: esprehn@chromium.org
Status: Assigned (was: Untriaged)
> I think this is pretty rare

That would be reassuring. But how can I tell when it does strike?
It's important that context expansion gives me the right result every time it appears to work, or I won't want to trust it.
For what it's worth, context expansion in the Polymer Rietveld UI is now completely broken for me

I'm being paranoid and switching to the deprecated UI and back in order to avoid missing stuff.
lgarron@ - can we put you on the list to be an early polygerrit dogfooder?  I think that is the best answer I can give you right now.
Please! :-)
lgarron@: You're already on the list as the point-of-contact for getting the //net/http directory using PolyGerrit once it is ready for src.git. Are there other subdirectories you'd like to bring over early as well?
Status: WontFix (was: Assigned)
The switch to gerrit means the polymer UI is no longer relevant.

Sign in to add a comment