[TYPO3-team-core-v5] Work Package Listing -- Feedback needed

Bastian Waidelich bastian at typo3.org
Mon Mar 18 12:17:55 CET 2013


Aske Ertmann wrote:

Hi again,

> I also wanted to change the label for estimated time to "Amount: 20 work days", like it was in the first draft.

BTW: Instead of adding a "calculation ViewHelper" I'd calculate the days 
in the controller in order to keep the template simpler (it's just a 
minor minor thingy of course, but since all the code is public we should 
be a good example) – i can push a follow up if you want.


> Another thing is that I created a new Query in forge with these settings http://i.imgur.com/wBIozKt.png, to get a json result I could use for what I needed..
> Do you agree with the sorting? Basically it means that all the new packages is at the bottom and then the packages with a due date longest in the future is on top.
> It can easily be changed of course, but the options are somewhat limited though.

I don't get the difference to for 
http://forge.typo3.org/projects/typo3neos-distribution-base/issues?query_id=435 
– at least, that's what should be the default for this one too (instead 
of adding a new query).
IIRC we tried to achieve that on T3BOARD but the target versions are 
internally sorted by release date (which we didn't want to set *g).


> [...] since the script sends a request to forge, which is sometimes a little slow, we should definitely cache this page for like an hour or so.

Definitely! Maybe encapsulate

$workPackagesAsString = 
file_get_contents('http://forge.typo3.org/projects/typo3neos-distribution-base/issues.json?query_id=443');
$workPackages = json_decode($workPackagesAsString);
$this->view->assign('workPackages', $workPackages->issues);

to

$this->view->assign('workPackages', $workPackageService->getAll());

(or similar)
and add cache and work day calculation there.

Let me know if I should take over the PHP part

-- 
Bastian Waidelich
--
Core Developer Team

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-team-core-v5 mailing list