Page MenuHomePhabricator

Cast old duration values for unit tests to float in DifferentialController
ClosedPublic

Authored by BYK on Mar 9 2016, 11:04 PM.
Tags
None
Referenced Files
F15491334: D15452.id37242.diff
Sat, Apr 12, 2:08 AM
F15489854: D15452.id37261.diff
Fri, Apr 11, 12:48 PM
F15489470: D15452.id37242.diff
Fri, Apr 11, 9:19 AM
F15485154: D15452.diff
Wed, Apr 9, 10:10 PM
F15479971: D15452.id.diff
Tue, Apr 8, 10:33 AM
F15476225: D15452.diff
Mon, Apr 7, 4:44 AM
F15476069: D15452.diff
Mon, Apr 7, 3:15 AM
F15468530: D15452.diff
Fri, Apr 4, 1:42 AM
Subscribers

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

BYK retitled this revision from to Cast old duration values for unit tests to float in DifferentialController.
BYK updated this object.
BYK edited the test plan for this revision. (Show Details)
BYK added reviewers: avivey, epriestley.
epriestley edited edge metadata.

This should probably test that duration actually exists. Also not sure why it cropped up now, but whatever. I'll tweak it in the pull.

This revision is now accepted and ready to land.Mar 11 2016, 2:12 AM

I am also making a vaguely related fix I caught elsewhere because I am a loose cannon with no respect for the rules.

+    if (!$diff->getBuildable()) {
+      return null;
+    }
This revision was automatically updated to reflect the committed changes.
src/applications/differential/controller/DifferentialController.php
195

I swear I thought about this but then since it didn't break on our system, I thought it wasn't necessary. Anyways, thanks!