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

#2137 flatten email/pdf reports #10722

Conversation

cbuchli
Copy link

@cbuchli cbuchli commented Oct 10, 2016

Adds a new Flag to Scheduled Reports that makes it possible to flatten the generated reports.

The behaviour is 100% backwards compatible and doesn't need any update-scripts to be run since the default is set to false and the flag isn't marked as mandatory. It's stored in the report's parameters field and thus doesn't change the DB-Scheme neither.

Resolves #2137 in a "quickfix" manner.

Feature supported by EDA Switzerland

@cbuchli
Copy link
Author

cbuchli commented Oct 10, 2016

Pull Request WIP - done

Christoph Buchli added 3 commits October 10, 2016 17:38
…rrors when displayFlat isn't yet set in the Database record of a report.
…ewly added checkbox for flattening reports in the reports-generation form.
@mattab mattab added Pull Request WIP Indicates the current pull request is still work in progress and not ready yet for a review. Needs Review PRs that need a code review labels Oct 10, 2016
@mattab mattab added this to the 3.0.0-b2 milestone Oct 10, 2016
@cbuchli
Copy link
Author

cbuchli commented Oct 11, 2016

@mattab the 'Pull Request WIP' can be removed: I've tested my requirements and removed all side-effects. The Feature is also included in the UI-Test (new Checkbox "Flatten" in addReport mask).

I'll stand by to fix and adjust anything you find during review.

@cbuchli cbuchli force-pushed the feature/2137_3.x-dev_flattenEmailReports branch from 10a4a76 to e5ca9a6 Compare October 25, 2016 20:45
<div piwik-field uicontrol="checkbox"
name="display_flat"
ng-model="manageScheduledReport.report.displayFlat"
title="{{ 'General_Flatten'|translate|e('html_attr') }}">
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if it is enough to show "Flatten" or whether could explain a little. Like Flatten will be only applied to reports that support it, and by default it is shown "hierarchical". Although I think in reports it is not really shown hierarchical by default but only the first level of the report which is not really useful so flatten is quite valuable. I think we need to explain it to users. @mattab maybe an idea?

@tsteur
Copy link
Member

tsteur commented Oct 30, 2016

Worked for me and is useful 👍 Only need to work a little on the wording in the UI I'd say

@tsteur tsteur removed the Pull Request WIP Indicates the current pull request is still work in progress and not ready yet for a review. label Oct 30, 2016
@tsteur tsteur modified the milestones: 3.0.0-b3, 3.0.0-b2 Oct 30, 2016
@Fensterbank
Copy link
Contributor

I'm looking forward to see this merged. 👍

@mattab
Copy link
Member

mattab commented Nov 15, 2016

After testing UI and thinking about all reports that support Flatten, now it feels like we should keep things even more simple while trying to be useful to most people...so i'd go even further and enable flatten for all reports by default, and not make it configurable. So far i could not think of a use case where you'd want the reports hierarchical... can't believe it took us so long to address this! if the need to have it configurable would come up, we could re-use your PR. I'll open a separate PR and close this one. thanks for creating it and hope you will check out some other issues 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PDF/HTML Reports: Expand Actions reports (and some others) by default
4 participants