mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-04 20:52:43 +01:00
f190c42bcd
Summary: Ref T13279. Currently, we store a fairly low-level description of functions and datasets in a chart. This will create problems with (for example) translating function labels. If you view a chart someone links you, it should say "El Charto" if you speak Spanish, not "The Chart" if the original viewer speaks English. To support this, store a slightly higher level version of the chart: the chart engine key, plus configuration parameters. This is very similar to how SearchEngine works. For example, the burndown chart now stores a list of project PHIDs, instead of a list of `[accumulate [sum [fact task.open <project-phid>]]]` functions. (This leaves some serialization code with no callsites, but we may eventually have a "CustomChartEngine" which stores raw functions, so I'm leaving it for now.) As a result, function labels provided by the chart engine are now translatable. (Note that the actual chart is meaningless since the underlying facts can't be stacked like they're being stacked, as some are negative in some areas of their accumulation.) Test Plan: {F6439121} Reviewers: amckinley Reviewed By: amckinley Subscribers: yelirekim Maniphest Tasks: T13279 Differential Revision: https://secure.phabricator.com/D20504 |
||
---|---|---|
.. | ||
PhabricatorAccumulateChartFunction.php | ||
PhabricatorChartAxis.php | ||
PhabricatorChartDataQuery.php | ||
PhabricatorChartDataset.php | ||
PhabricatorChartDisplayData.php | ||
PhabricatorChartFunction.php | ||
PhabricatorChartFunctionArgument.php | ||
PhabricatorChartFunctionArgumentParser.php | ||
PhabricatorChartFunctionLabel.php | ||
PhabricatorChartInterval.php | ||
PhabricatorChartStackedAreaDataset.php | ||
PhabricatorComposeChartFunction.php | ||
PhabricatorConstantChartFunction.php | ||
PhabricatorCosChartFunction.php | ||
PhabricatorFactChartFunction.php | ||
PhabricatorHigherOrderChartFunction.php | ||
PhabricatorScaleChartFunction.php | ||
PhabricatorShiftChartFunction.php | ||
PhabricatorSinChartFunction.php | ||
PhabricatorSumChartFunction.php |