Page MenuHomePhabricator

Don't show error operations after a successful land operation
ClosedPublic

Authored by epriestley on Oct 26 2015, 9:24 PM.
Tags
None
Referenced Files
F14356080: D14348.diff
Thu, Dec 19, 7:17 PM
Unknown Object (File)
Tue, Dec 17, 9:10 PM
Unknown Object (File)
Fri, Dec 13, 7:15 PM
Unknown Object (File)
Fri, Dec 13, 7:15 PM
Unknown Object (File)
Fri, Dec 13, 7:14 PM
Unknown Object (File)
Fri, Dec 13, 7:01 PM
Unknown Object (File)
Wed, Dec 11, 7:55 PM
Unknown Object (File)
Mon, Dec 9, 10:45 PM
Subscribers
None

Details

Summary

Ref T182. When viewing a revision, if there are several error operations and then a success operation, we currently show the last error. This is misleading.

Instead, don't show anything if there's a success (this may require tuning eventually if you can land multiple times onto different branches or whatever, but should be reasonable for now).

Also make the table a little nicer, particularly for merge failure output.

Test Plan

Screen Shot 2015-10-26 at 2.21.22 PM.png (297×897 px, 45 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Don't show error operations after a successful land operation.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: chad, Mnkras.
Mnkras edited edge metadata.
This revision is now accepted and ready to land.Oct 26 2015, 9:25 PM
This revision was automatically updated to reflect the committed changes.
src/applications/differential/controller/DifferentialRevisionViewController.php
1072

I just realized that its possible for $operation to not be set here, this should be moved up into the foreach loop.

src/applications/differential/controller/DifferentialRevisionViewController.php
1072

Operation should always be set here because $operations is guaranteed nonempty (per line 1056) so $operation will leak out of the loop on line 1064 with some value.

Relying on loops leaking variables is arguably bad form, of course.

src/applications/differential/controller/DifferentialRevisionViewController.php
1072

Very true,

You could save a few instructions by throwing this in the loop also :P then no more relying on leaking variables!