Page MenuHomePhabricator

Select the domain (X-axis range) for charts before pulling data
ClosedPublic

Authored by epriestley on Apr 17 2019, 1:09 PM.
Tags
None
Referenced Files
F13050737: D20442.id48799.diff
Fri, Apr 19, 3:10 AM
F13050736: D20442.id48797.diff
Fri, Apr 19, 3:10 AM
F13050735: D20442.id48749.diff
Fri, Apr 19, 3:10 AM
F13050734: D20442.id.diff
Fri, Apr 19, 3:10 AM
Unknown Object (File)
Thu, Apr 11, 9:29 AM
Unknown Object (File)
Thu, Apr 11, 4:17 AM
Unknown Object (File)
Thu, Apr 4, 6:42 PM
Unknown Object (File)
Wed, Mar 27, 1:59 AM
Subscribers

Details

Summary

Depends on D20441. Ref T13279. Currently, we pull all the data, then decide what the X-axis should look like.

Since users will reasonably want to do stuff like "show me march-april 2018" in the future, we need to move toward flipping this around so that we can support cases where the domain is specified by the user.

For actual chart functions (like "constant(3)" or "cos(x)"), we must also know the domain before we pull data, since there are an infinite number of places where we can evaluate the function "constant(3)".

See note in T13279 about continunity.

Test Plan

Screen Shot 2019-04-17 at 6.02.47 AM.png (861×976 px, 156 KB)

Diff Detail

Repository
rP Phabricator
Branch
chart6
Lint
Lint Passed
SeverityLocationCodeMessage
Advicesrc/applications/fact/chart/PhabricatorFactChartFunction.php:127XHP16TODO Comment
Unit
Tests Passed
Build Status
Buildable 22619
Build 31001: Run Core Tests
Build 31000: arc lint + arc unit

Event Timeline

amckinley added inline comments.
src/applications/fact/controller/PhabricatorFactChartController.php
36

No setYAxis?

124–127

No list($domain_min, $domain_max)?

This revision is now accepted and ready to land.Apr 17 2019, 11:00 PM
src/applications/fact/controller/PhabricatorFactChartController.php
36

What, you think I'm just made of axes over here? That axes grow on trees?

This revision was automatically updated to reflect the committed changes.
src/applications/fact/controller/PhabricatorFactChartController.php
36

Macro gimli:  AND MY AXIS