Christopher Johnson (WMDE) has uploaded a new change for review. https://gerrit.wikimedia.org/r/206147
Change subject: sets default start and end date for Sprints to now if unset ...................................................................... sets default start and end date for Sprints to now if unset Change-Id: I4b6e7325e69901af6dcd7a618f5d79d7238ed1ba --- M src/query/SprintQuery.php 1 file changed, 10 insertions(+), 8 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/phabricator/extensions/Sprint refs/changes/47/206147/1 diff --git a/src/query/SprintQuery.php b/src/query/SprintQuery.php index e133cd1..c8d14e1 100644 --- a/src/query/SprintQuery.php +++ b/src/query/SprintQuery.php @@ -45,10 +45,11 @@ $start = idx($aux_fields, 'isdc:sprint:startdate') ->getProxy()->getFieldValue(); if (is_null($start)) { - $help = pht('To do this, go to the Project Edit Details Page'); - throw new BurndownException("The project \"".$this->project->getName() - ."\" is not set up for Sprint because " - ."it has not been assigned a start date\n", $help); + // $help = pht('To do this, go to the Project Edit Details Page'); + // throw new BurndownException("The project \"".$this->project->getName() + // ."\" is not set up for Sprint because " + // ."it has not been assigned a start date\n", $help); + return PhabricatorTime::getNow(); } else { return $start; } @@ -58,10 +59,11 @@ $end = idx($aux_fields, 'isdc:sprint:enddate') ->getProxy()->getFieldValue(); if (is_null($end)) { - $help = pht('To do this, go to the Project Edit Details Page'); - throw new BurndownException("The project \"".$this->project->getName() - ."\" is not set up for Sprint because " - ."it has not been assigned an end date\n", $help); +// $help = pht('To do this, go to the Project Edit Details Page'); +// throw new BurndownException("The project \"".$this->project->getName() +// ."\" is not set up for Sprint because " +// ."it has not been assigned an end date\n", $help); + return PhabricatorTime::getNow(); } else { return $end; } -- To view, visit https://gerrit.wikimedia.org/r/206147 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I4b6e7325e69901af6dcd7a618f5d79d7238ed1ba Gerrit-PatchSet: 1 Gerrit-Project: phabricator/extensions/Sprint Gerrit-Branch: master Gerrit-Owner: Christopher Johnson (WMDE) <christopher.john...@wikimedia.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits