Page MenuHomePhabricator

Return empty data if fact dimension is missing, not yet available
ClosedPublic

Authored by artms on Oct 21 2019, 1:36 PM.
Tags
None
Referenced Files
F18869364: D20861.id.diff
Tue, Nov 4, 11:24 AM
F18859074: D20861.diff
Sun, Nov 2, 12:00 AM
F18813097: D20861.id.diff
Oct 20 2025, 2:01 PM
F18809201: D20861.id49732.diff
Oct 19 2025, 11:58 AM
F18765668: D20861.id49777.diff
Oct 7 2025, 12:26 PM
F18744957: D20861.diff
Oct 3 2025, 4:47 AM
F18705458: D20861.id.diff
Sep 28 2025, 11:29 AM
F18570953: D20861.id49777.diff
Sep 10 2025, 4:13 AM
Subscribers

Details

Summary

On fresh installation which doesn't have yet any task closed you will not be able to open charts because of error below:
Fixes:

[Mon Oct 21 15:42:41 2019] [2019-10-21 15:42:41] EXCEPTION: (TypeError) Argument 1 passed to head_key() must be of the type array, null given, called in ..phabricator/src/applications/fact/chart/PhabricatorFactChartFunction.php on line 86 at [<phutil>/src/utils/utils.php:832]
[Mon Oct 21 15:42:41 2019]   #0 phlog(TypeError) called at [<phabricator>/src/aphront/handler/PhabricatorAjaxRequestExceptionHandler.php:27]
[Mon Oct 21 15:42:41 2019]   #1 PhabricatorAjaxRequestExceptionHandler::handleRequestThrowable(AphrontRequest, TypeError) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:797]
[Mon Oct 21 15:42:41 2019]   #2 AphrontApplicationConfiguration::handleThrowable(TypeError) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:345]
[Mon Oct 21 15:42:41 2019]   #3 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:214]
[Mon Oct 21 15:42:41 2019]   #4 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phabricator>/webroot/index.php:35

To fix issue - lets return empty data set instead

Test Plan
  1. Create fresh phabricator installation
  2. Create fresh project
  3. Try viewing charts

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable