Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyliusReportBundle #2422

Merged
merged 102 commits into from
Feb 12, 2015
Merged

SyliusReportBundle #2422

merged 102 commits into from
Feb 12, 2015

Conversation

Zales0123
Copy link
Member

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Fixed tickets
License MIT
Doc PR Sylius/Sylius-Docs#251

SyliusReportBundle - flexible reports system, based on data fetchers and renderers. Now it's extremely easy to create a report with whatever data you want and nice look. Some default data fetchers and renderers already implemented, but adding another ones is a piece of cake. Find out more: Sylius/Sylius-Docs#251
syliusreportbundle1
syliusreportbundle2
syliusreportbundle3
syliusreportbundle4

@stloyd
Copy link
Contributor

stloyd commented Feb 2, 2015

Guys, looks interesting, but seriously you should squash those commits few tiems, over 90 is way to much to easily review ;)

@@ -0,0 +1,41 @@
<?php

namespace Sylius\Bundle\CoreBundle\DataFetcher;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing license.

@a2xchip
Copy link

a2xchip commented Feb 3, 2015

nice bundle

$dateInterval = new \DateInterval($configuration['interval']);
$numberOfPeriods = $configuration['start']->diff($configuration['end']);

for ($i = 0; $i <= $numberOfPeriods->format($configuration['periodFormat']); $i++) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should avoid function call in loop, assign it to variable:

$numberOfPeriods = $configuration['start']->diff($configuration['end'])->format($configuration['periodFormat']);
for ($i = 0; $i <= $numberOfPeriods; $i++) {
}

/**
* @param Request $request
*
* @return Response
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be Symfony\Component\HttpFoundation\Response - add use statement

@pjedrzejewski
Copy link
Member

@Zales0123 You use PHP 5.4 only syntax (array access) in TableRenderer and spec fails on 5.3. (see travis) Please remove these and it will turn green.

@peteward
Copy link

Just a bit of visual feedback - do the Time Period dropdown and the Filter button really need to be that loooooooooooooong?

private $emails = array(
'order_comment',
'order_confirmation',
'customer_welcome',
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove, wrong rebase.

pjedrzejewski pushed a commit that referenced this pull request Feb 12, 2015
@pjedrzejewski pjedrzejewski merged commit a7f383e into Sylius:master Feb 12, 2015
@pjedrzejewski
Copy link
Member

Thanks guys, nice work! 👍

@a2xchip
Copy link

a2xchip commented Feb 15, 2015

👍

pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants