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
F14037685: D15452.diff
Sun, Nov 10, 6:20 PM
F13999872: D15452.diff
Thu, Oct 24, 5:41 PM
F13974890: D15452.id.diff
Oct 18 2024, 7:49 AM
F13959194: D15452.id37242.diff
Oct 14 2024, 6:14 PM
F13958192: D15452.id37261.diff
Oct 14 2024, 1:23 PM
Unknown Object (File)
Oct 7 2024, 1:39 AM
Unknown Object (File)
Sep 21 2024, 3:35 AM
Unknown Object (File)
Sep 20 2024, 4:53 PM
Subscribers

Diff Detail

Repository
rP Phabricator
Branch
fix-duration
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 11104
Build 13751: arc lint + arc unit

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!