Page MenuHomePhabricator

Installing the Sprints extension results in an error if you don't have any Sprints yet
Closed, DeclinedPublic

Description

Steps to reproduce

  • Install the sprints extension

Expected results

  • I expect that a friendly message is shown, not an error screen or a screen that looks like it is a problem with the extension itself.

Actual results

  • I get this error

Unhandled Exception ("SprintException")

There are no Sprints to show yet
To Create a Sprint, go to /project/create/ and make sure that the "Is Sprint" box has been checked

5 sprint storage/SprintListDataProvider.php : 30 SprintQuery::getSprintPHIDs()
4 sprint controller/SprintListController.php : 15 SprintListDataProvider::execute()
3 phabricator aphront/configuration/AphrontApplicationConfiguration.php : 257 SprintListController::handleRequest()
2 phabricator aphront/configuration/AphrontApplicationConfiguration.php : 169 AphrontApplicationConfiguration::processRequest()
1 /srv/phab/phabricator/webroot/index.php : 17 AphrontApplicationConfiguration::runHTTPRequest()

From the error log

[Mon Oct 03 17:00:23.328115 2016] [:error] [pid 13682] [client 10.68.21.68:41126] [2016-10-03 17:00:23] EXCEPTION: (SprintException) There are no Sprints to show yet\nTo Create a Sprint, go to /project/create/ and make sure that the "Is Sprint" box has been checked at [<sprint>/query/SprintQuery.php:148]
[Mon Oct 03 17:00:23.328868 2016] [:error] [pid 13682] [client 10.68.21.68:41126] arcanist(), phabricator(), phutil(), sprint(), wmf-ext-misc(head=4305a9bb0300650ea40de433261c7e59cc88e4bc, ref.master=rPHDEPb9ef898b41d5)
[Mon Oct 03 17:00:23.328879 2016] [:error] [pid 13682] [client 10.68.21.68:41126] #0 <#2> SprintQuery::getSprintPHIDs() called at [<sprint>/storage/SprintListDataProvider.php:30]
[Mon Oct 03 17:00:23.328882 2016] [:error] [pid 13682] [client 10.68.21.68:41126] #1 <#2> SprintListDataProvider::execute() called at [<sprint>/controller/SprintListController.php:15]
[Mon Oct 03 17:00:23.328886 2016] [:error] [pid 13682] [client 10.68.21.68:41126] #2 <#2> SprintListController::handleRequest(AphrontRequest) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:257]
[Mon Oct 03 17:00:23.328894 2016] [:error] [pid 13682] [client 10.68.21.68:41126] #3 phlog(SprintException) called at [<phabricator>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:41]
[Mon Oct 03 17:00:23.328897 2016] [:error] [pid 13682] [client 10.68.21.68:41126] #4 PhabricatorDefaultRequestExceptionHandler::handleRequestException(AphrontRequest, SprintException) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:671]
[Mon Oct 03 17:00:23.328901 2016] [:error] [pid 13682] [client 10.68.21.68:41126] #5 AphrontApplicationConfiguration::handleException(SprintException) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:262]
[Mon Oct 03 17:00:23.328904 2016] [:error] [pid 13682] [client 10.68.21.68:41126] #6 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:169]
[Mon Oct 03 17:00:23.328916 2016] [:error] [pid 13682] [client 10.68.21.68:41126] #7 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phabricator>/webroot/index.php:17]

Event Timeline

Reedy renamed this task from Installing the Sprints extension results in an error if you doint have any Sprints yet to Installing the Sprints extension results in an error if you don't have any Sprints yet.Oct 3 2016, 5:03 PM

Steps to reproduce

  • Install the sprints extension

Please always provide version information of extensions and the main software itself to allow others to reproduce the conditions.

Ah, there is stuff like 4305a9bb0300650ea40de433261c7e59cc88e4bc in the task summary at least, sorry...

Aklapper triaged this task as Lowest priority.Feb 26 2017, 6:33 PM

The Phabricator-Sprint-Extension is not under active development anymore and is unmaintained. It is about to be archived (see T275325). Reflecting reality by declining this ticket.
For the records, in the Wikimedia Phabricator installation, reports and charts have been customized (see e.g. https://phabricator.wikimedia.org/project/reports/5/ ).